Skip to main content
Question

TypeScript call API Error ODP_DESERIALIZATION_ERROR


Hello, my first week dealing with ifs
I am trying to automate work flow. it creates work order when I try it with postman  but when I try to do it pragmatically It shows error in Application messages in ifs UI

I am using following 

Header

{ "Content-Type" : "application/json", 

"Authorization" : "Bearer ACCESS_TOKEN" 

}

url: https://my_company.ifs.cloud/

endpoint: /int/soapgateway

and I am sending my json as body for creating a work order

I

 IT gives Following Error in Application messages on UI 
ODP_DESERIALIZATION_ERROR Error while de-serializing contents.

Any Help would be appreciated

 

Forum|alt.badge.img+10
  • Hero (Partner)
  • August 22, 2023

@alikhanan  Could you fully post your postman call? and show the code snippet?

We als noticed the ODP_DESERIALIZATION_ERROR in another call

What cloud version are you on?

 

Forum|alt.badge.img+10
  • Hero (Partner)
  • August 22, 2023

So you can solve it by adding following to your headers

 

Accept: application/json;odata.metadata=full;IEEE754Compatible=true
Content-Type: application/json;IEEE754Compatible=true

 

If you doing a post call, make sure that if your body is empty to add {} to your body (Eg for a state change)

 

See

https://community.ifs.com/framework-experience-infrastructure-cloud-integration-dev-tools-50/integration-projection-throwing-error-odp-deserialization-error-with-complex-parameter-list-3366?postid=79511#post79511
 

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings