You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OIC - handling nested Json array is failing when internal array is empty

edited Nov 14, 2019 8:45AM in Integration 3 comments

Summary

OIC - handling nested Json array is failing when internal array is empty

Content

Hi,

 

I have a service provider response that should be mapped as-is to the OIC integration response.

I used a straight forward mapping.

If the nested array ("LineList") is empty, I get the following error:

{
  "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\nTranslation Failure.\nFailed to translate XML to JSON. Cannot write end element: PlatformId\nThe data does not conform to the NXSD schema. Please correct the problem.\n",
  "o:errorCode" : "TRANSLATION-ERROR-01",
  "o:errorDetails" : [ {
    "type" : "NA",
    "instance" : "NA",
    "title" : "NA",
    "o:errorPath" : "NA",
    "o:errorCode" : "NA"
  } ]
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!