What you’ll see

Salesforce returned an error: insufficient access rights on object id

The text after "Salesforce returned an error:" varies.

Why it happens

Your Salesforce user isn't allowed to read or save something the document needs. For example: a related record shared with others but not you, a field you can't see, or the record you're trying to save the generated file to.

How to fix it

  1. Check that you can open the record (and its related records) in Salesforce yourself.
  2. Ask your Salesforce administrator to check the following. Give users access: licenses, permission sets and the connected app covers the Docs Made Easy side.
    • Object and field permissions on your profile or permission sets
    • Sharing: that you have access to the record and related records
    • Files: that you can create files on the record the document is saved to
  3. Try again after the access is updated.

If the document is saved to Files, see Where generated documents go for which record it's saved to.

Who can fix it

  • You: check that you can open the record and its related records.
  • A Salesforce admin: fixes object and field permissions, sharing and file access, and checks your Docs Made Easy license and permission set.
  • Docs Made Easy support: if your admin confirms you have access to everything the document uses and the message still appears.

What to send support

  • the Error code and Reference from the message (copy the whole message if you can)
  • the full text after "Salesforce returned an error:", including any record ID
  • a link to the record you generated from, and your username
  • the solution name or ID
  • your Salesforce Org ID (How to share your Org ID)
  • the time it happened, with your time zone