I've got this ticket duplication script to work for the most part, but there is an odd exception with the templates that I just can't seem to figure out.
I have attached the simplified script as I am using it, and a screenshot at the bottom of the input and error when running the script.
I get this error on some templates.
{'response_status': {'status_code': 4000, 'messages': [{'status_code': 4001, 'field': 'template', 'type': 'failed', 'message': 'Invalid Input'}], 'status': 'failed'}}
This is with the field values copied from the original request ID as per the script in the article.
With all the other field values exactly the same, the script WORKS with these values:
- 'template': {'is_service_template': False, 'service_category': None, 'name': 'Customer Care - Template', 'id': '1201'}
- 'template': {'is_service_template': False, 'service_category': None, 'name': 'Order - Template', 'id': '601'}
And the script FAILS with these values:
- 'template': {'is_service_template': False, 'service_category': None, 'name': 'Technical - Template', 'id': '1501'}
- 'template': {'is_service_template': False, 'service_category': None, 'name': 'Test template 2', 'id': '4501'}
- 'template': {'is_service_template': False, 'service_category': None, 'name': 'Abc testing', 'id': '4501'}
I did re-write the template names in case that there were any invisible/unusual characters that couldn't be parsed properly.
Any insight would be greatly appreciated.