ERROR: Insufficient access rights

Issue

The user sees an error message stating ‘insufficient access rights’. This error message may also be accompanied by other error messages, such as Error 142, an indication of a validation error which causes a sync failure.

Solution

Pulsar downloads all of the metadata (including layouts, schema, and field permissions) and applies them when the user is working with data when completely offline. Occasionally a user may see a message like the one below. This usually means, they lost the permission on the parent record and are unable to create child records against that parent record. Unfortunately, Pulsar has no way of knowing this information, so at the sync time, the user will have to make a decision to follow one of two actions:

  • Email the logs to the internal salesforce support team and ask for the permission on the parent record, so they can successfully sync their records

-or- 

  • Abandon the record, so the sync can go on to syncing the rest of the data.

Example Logs

In this example, the error is not accompanied by an error code.

[20-06-12 23:10:38][INFO ][0x104141840] - Starting resolve (RESOLVE_OP_CREATE,Object Name,CURIUM_1591827545164_179,(Unknown),) [20-06-12 23:10:38][INFO ][0x104141840] - [UI] - Showing Alert - Title: Fix offline created record  Message: Salesforce refused a record you created while offline ((Unknown)) with this reason: "insufficient access rights on cross-reference id"

In this next example, the insufficient access rights error is accompanied by Error 142 and a sync failure. Note that after the insufficient access rights error, there is an id number listed. The support team can check whether the user has the proper access to the particular item represented by that id.

[23-08-07 18:15:02][ERROR][0x16f74f000] - doSObjectCreated Store_Call__c failed (142) [23-08-07 18:15:02][ERROR][0x16f74f000] - resolveCreate failed (142) [23-08-07 18:15:02][ERROR][0x16f74f000] - resolveCreateConvert failed (142) [23-08-07 18:15:02][ERROR][0x16f74f000] - syncResolveIfNecessary failed (142) [23-08-07 18:15:02][INFO ][0x16f74f000] - integrateAfterSync called [23-08-07 18:15:02][INFO ][0x16f74f000] - copyVarsToOtherInstance called [23-08-07 18:15:02][INFO ][0x16f74f000] - copyVarsToOtherInstance complete [23-08-07 18:15:02][INFO ][0x16f74f000] - integrateAfterSync: skipped due to sync failure (142) [23-08-07 18:15:02][ERROR][0x16f74f000] - sfsub->sync() failed (142) [23-08-07 18:15:02][INFO ][0x16f74f000] - insufficient access rights on cross-reference id: 0014100001KZiFn

Â