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.
private ZonedDateTime LastActivityDate;
private ZonedDateTime LastViewedDate;
private ZonedDateTime LastReferencedDate;
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.