Insert Error
Insert Errors are errors encountered when a record created in the mobile app fails to synchronize online. Insertion of records in online can fail for a variety of reasons such as Salesforce Validation Rule failure, Apex trigger failure, Data Model constraint violations (missing mandatory field, invalid value, missing field), “Storage limit exceeded” error, and so on.
For example, if there is a Salesforce validation rule configured on the Work Order object that expects the Problem Description field to be not blank and a work order record created in the mobile app with this field set to blank, is synced, the data sync will fail. This is because the validation rule will fail on the server in-turn causing the insert to fail. The following sync conflict error is displayed in the mobile apps:
In order to resolve this conflict, follow these steps:
Retry - Choose this if you want to address error through one of the below steps:
By editing the record and clicking the View record displayed in the Sync Conflict screen (for instance, when the error is because of a Salesforce validation rule similar to the example described above)
By making changes in online (for instance, when you deactivate a Salesforce validation rule)
By doing a configuration sync (for instance, if a custom field available in mobile app is no longer there online).
Lose my changes and use server version - Choose this if you have to discard your local changes and restore the record from online.
Decide Later - Choose this if you want to address this sync error at a later point and allow other sync activities to continue. This option is selected by default and is a temporary solution only.
Was this helpful?