Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16447

camel-salesforce - Error in parsing some fields in AbstractSObjectBase

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.3
    • Fix Version/s: 3.10.0
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jawwad124 Jawad Ahmad
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: