Error: 400 response from Oracle Rest API- Unable to parse payload

 Error:

Adapter: BizTalk WCF web HTTP adapter

Process flow: Sending a json message via post methd

I was getting a 400 response from Oracle API with an error stating that unable to parse the payload.

Root cause:

There was an issue with the payload sent to the API. Line items were sent as an object instead of an array of objects

Incorrect payload:


Correct payload:



Fix

Set Max occurs to unbounded for Lineitems root node



Comments

Popular posts from this blog

Error: Number of included segments do not match

REST API Calls with Query Parameters in BizTalk: A Step-by-Step Guide

EDI X12 Trading partner configuration in BizTalk