Hi,
We are trying to setup enhanced error mechanism for the Error BODs generating out of ION.
By using an activation policy, the Reason and other BOD details are passed to a workflow.
This workflow calls an ION Python Scripting API. (This API eliminates the unwanted details from the reason and returns error in a pretty format)
However, the reason received by Error BOD contains
and probably other line feed characters.
The ION Scripting API takes in a json as the request payload. Now when the above "Reason" from Error BOD is passed as one of the input variable in the json request payload, the script execution fails because of line feed characters.
Would like to know is there any way to avoid the line feed characters, or probably replace them in the workflow itself using Expressions?
If not, what can be a better way to call Python scripts through ION Workflows?
Regards,
Hitesh.