Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
How to get error message from HCM Rest API in OIC — Cloud Customer Connect
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

How to get error message from HCM Rest API in OIC

Received Response
19
Views
3
Comments
edited Sep 2, 2020 11:46AM in Integration 3 comments

Summary

We cannot get the user friendly error from HCM Rest Api when getting a 400 Bad request i OIC

Content

We have tried to use the HCM Cloud Adapter i OIC calling rest Api for Create Absence record. We made a scope i OIC and are catching the fault by RestApiInvocation handler and listed all the values from the responce:

Type = http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
Instance = <![CDATA[The value of the attribute Employer or AbsenceType isn't valid..A 400 Bad Request Error indicates that the target service is unable (or refuses) to process the request sent by the client (Oracle Integration Cloud), due to an issue that is perceived by the server to be a client problem. You can trace the cURL representation of the request sent to the target service from the Oracle Integration Cloud server logs. Try invoking the target service using cURL. It may also be that one of the intermediaries (proxy, LBR) could be returning this code.  ]]>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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