NeigerDesign
Forum Replies Created
-
@trekcheck
The “Error” message you and I are referring to is just one of the log messages that come up when you make any changes to (or even just view) the ObjectSync plugin.It turns out that my problem was that ObjectSync was only going to transfer records from Salesforce that had been modified since the last sync (which was usually zero). If you want to force all records to sync from SF to WP, then you can try out the support doc @jonathanstegall linked me to.
If you want to test to see if that would fix the problem, just make a change in SF to one of the contacts’ fields you are syncing. See if it then pulls into WP.
Thank you! I was able to pull the records after running the “update objectList” command.
Thank you for clarifying that Jonathan. I appreciate the fast response!
I see that these each of logs are just a summary of what the API requests are anytime some information is referenced in Salesforce. Several are logs are created every time I update a fieldmap, or view the authorize tab.
To narrow down the problem I’ve erased every log, and manually triggered the “object_sync_for_salesforce_pull_check_records” scheduled task, so that I can see specifically what logs are generated when it runs. And I got only two.
The first log generated tells me that the total size of the request is zero (see below). I only have one WordPress object created, and there are several hundred that need to be created by the plugin.
SOQL query that was sent to Salesforce SELECT xxxxx_ID__c, Id, LastModifiedDate, CreatedDate FROM Account WHERE RecordTypeId IN ('0123t000000N9fqAAC') AND LastModifiedDate > 2021-07-26T19:28:40Z ORDER BY LastModifiedDate ASC LIMIT 25 API result from Salesforce Array ( [code] => 200 [data] => Array ( [totalSize] => 0 [done] => 1 [records] => Array ( ) ) [from_cache] => [cached] => [is_redo] => )The only reason I can guess for the array to be zero, is if it's only trying to pull records that have been modified in the last 5 minutes, and it's not looking for missing records at all. Am I correct? If so, how do I pull the total list?