Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.7.3
-
None
-
Unknown
Description
org.apache.camel.component.salesforce.api.SalesforceException: Error parsing JSON response: Cannot deserialize value of type java.time.ZonedDateTime from String "2021-01-08": Failed to deserialize java.time.ZonedDateTime: (java.time.format.DateTimeParseException) Text '2021-01-08' could not be parsed at index 10
at [Source: (ByteArrayInputStream); line: 1, column: 475] (through reference chain: com.r3.integration.salesforce.dto.Project__c["LastActivityDate"])
There are few fields in the base class that is generated as ZonedDateTime but these are Dates hence parsing fails. This happens when we try to get objects which have activities tracking enabled against them in salesforce.
AbstractSObjectBase :
private ZonedDateTime LastActivityDate;
private ZonedDateTime LastViewedDate;
private ZonedDateTime LastReferencedDate;
https://help.salesforce.com/articleView?id=000326119&type=1&mode=1
I am testing this on camel version 3.7.3. But I have checked in 3.9 and the AbstractSObjectBase is the same there as well. So I guess this issue persists in the latest versions as well.