I want to subtract 365 days(1 year) from a Date which is in the below format using a script mediator and get the resultant Date in the same format. Following is the code I’ve tried: But it prints Expected Date Or is it possible to achieve this without using Script Mediator? What else can I try apart from using a
Tag: wso2
String contains control character ERROR in script mediator – WSO2 EI 6.5.0
I’m receiving JSON payload from customer, sometimes incoming payload value is lengthy and contains multiple special characters in some field eg (description). Sample Payload: API Code Snippet: Facing String contains control character ERROR in script mediator when some special character comes in the payload. Log: Found this, But not sure this will help or not. How to handle this ?