Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Illegal character ((CTRL-CHAR, code 31)) Error in POST API call — 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

Illegal character ((CTRL-CHAR, code 31)) Error in POST API call

Received Response
8
Views
5
Comments
edited Feb 12, 2021 3:21PM in Sales 5 comments

Summary

Calling REST API to create custom child record of opportunity

Content

https://INSTANCE_URL:443/crmRestApi/resources/latest/opportunities/##OptyNum##/child/TradeInEquipmentsCollection_c

The above one is the REST API URL which created in web service connection. Below is the Request Payload of the API,

{"AssetDCL_Id_c": 300000323440088,"Opportunity_Id_c": 300004145009227}

While calling the API from before update trigger of Asset object getting an error as 

Exception in expression "oracle.apps.crmCommon.assetImport.publicModel.entity.AssetEO" trigger "AssetCheck" : oracle.binding.expr.ServiceInvocationException Unexpected exception caught: org.codehaus.jackson.JsonParseException, msg=Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: [email protected]; line: 1, column: 2]: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: [email protected]; line: 1, column: 2]

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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