Handling Null value in the mapping
Content
Hi,
In my integration, I got the Null value as response in one of my source as shown below. I used this field in my mapper to map to target.
{ "x_total_deposit": 1000, "x_avail_deposit": null, "x_return_status": "S" }
I got the Translation error when I invoke the OIC API, since null value is mapped to end response field.
{ "type" : "10.5.3", "title" : "exception occurred while translating the response into the accepted media type.", "detail" : "oracle.cloud.connector.api.CloudInvocationException: ORABPEL-15236\n\n", "o:errorCode" : "TRANSLATION-ERROR-01", "o:errorDetails" : [ { "type" : "NA", "instance" : "NA", "title" : "NA", "o:errorPath" : "NA", "o:errorCode" : "NA" } ] }
Tagged:
1