Scenario:

Upon mapping Captured on lead field with Salesforce field, for each trigger (API call) lead details was not syncing from LeadSquared to Salesforce because of below exception.

Exception message


[{"sourceWithTargetId":"d524c7ee-526a-4114-bf3b-289cd787213f","fieldMapping":"Captured_On__c:2017-11-27 00:00:00,mx_Captured_On","errorMessage":"Invalid date: 2017-11-27 00:00:00"}]


Soultion

When we verified the issue got to know that though “Captured on” date field is set to capture only date information in LeadSquared and Salesforce app, LeadSquared was posting the date information in this “Date+Time” format, example: 2017-11-27 00:00:00. Since there was a mismatch in date format, lead details were not syncing into Salesforce. However, after following the workaround as suggested by Shainki, for now the issue has been resolved. Since this seems to be an issue from our end, hence bringing this to your notice.