What you’ll see

Salesforce returned an error: duplicate field selected: Industry

Salesforce returned an error: No such column 'Industy' on entity 'Account'. …

Why it happens

A field the template asks for is invalid. Usually one of these:

  • the field name is misspelled, or uses the field's label instead of its API name
  • a custom field is missing its __c ending, or a managed-package field is missing its prefix
  • the same field is listed twice in one query
  • the field exists, but your user can't see it (field-level security). Salesforce reports this the same way as a field that doesn't exist.

How to fix it

  1. Find the field named in the message in the template. To copy correct field names, see Copy merge fields with the Merge Field Helper.
  2. Check its API name in Salesforce Setup → Object Manager → the object → Fields & Relationships, and correct the template.
  3. If the message says "duplicate field selected", remove the repeated field from that query.
  4. If the API name is right, ask your administrator to check that your profile or permission set can read the field. See Give users access.

Who can fix it

  • A Salesforce admin (or whoever builds the template): corrects the field name in the template, or gives your profile or permission set read access to the field.
  • Docs Made Easy support: if the field name is correct, you can read the field, 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 the field name
  • the template name and the solution name or ID
  • the query text, if the field is in a custom query
  • your Salesforce Org ID (How to share your Org ID)
  • the time it happened, with your time zone