function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jennifer TangJennifer Tang 

How to find out why records are not being created or updated via API?

We have our product connected to Salesforce so that we can see customer usage information in SFDC. This is done via API. 

Lately, records have not been getting created in the Account object, and Account updates are happening sporadically. We can't seem to find a pattern as to why some accounts are getting updated, while others are not. We are also not getting any error codes for the accounts that aren't getting updated, which is odd. 

We also create records under a custom object, and the update there is random as well. 

What is the best way to figure out what could be happening if we're not getting any error codes? Thanks so much for your help! 
LakshmanLakshman
You can set debug logs on the user which does the callout and check for the log for which the records are not getting updated.  If no log is generated for such scenario then you need to check your connected app logic if it is having any exception.