Error while doing upsert operation using camel-salesforce component
Issue
- We are performing upsert operation on salesforce using dto.
<from id="_from:SalesforceUpdate" uri="timer://foo?repeatCount=1"/>
<log id="_log:salesforceupdate" message="Salesforce Update at ${date:now:yyyy-MM-dd'T'HH:mm:ss}"/>
<to id="_to:salesforceupdate" uri="salesforce:upsertSObject?sObjectIdName=Name"/>
When we are providing valid data, it's working, but when we provide invalid data it's not working and giving the following exception.
{message:'Error parsing JSON response: Can not deserialize instance of org.apache.camel.component.salesforce.api.dto.CreateSObjectResult out of START_ARRAY token
.
.
.
- Expected Output:
It should not give exception , it should provide error message provided by Salesforce.
Environment
- Red Hat Jboss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.