This article explains the "No such column" error that occurs when querying an existing custom field via SOQL on the Salesforce Platform. This issue is primarily caused by a lack of read access to the field in the running user's Profile or Permission Set.
This error occurs when the user running the query does not have read access to the field being queried. To resolve this issue, grant Field-Level Security (Read Access) for the target field in the user's Profile or Permission Set. The following steps show how to grant permission in a Profile.
■ Steps to Grant Field-Level Security
When "Enhanced Profile User Interface" is enabled
1. Click the gear icon in the upper right corner and select [Setup].
2. In the Quick Find box, enter "Profiles" and click [Profiles] from the search results.
3. Click on the Profile assigned to the user experiencing the error.
4. On the profile settings page, click [Object Settings] and select the target object.
5. Click [Edit].
6. Find the field you are querying and check the "Read Access" checkbox.
7. Click [Save].
When "Enhanced Profile User Interface" is disabled
1. Click the gear icon in the upper right corner and select [Setup].
2. In the Quick Find box, enter "Profiles" and click [Profiles] from the search results.
3. Click on the Profile assigned to the user experiencing the error.
4. In the *[Field-Level Security] section, find the object you are querying and click [View].
5. Click [Edit].
6. Find the field you are querying and check the "Read Access" checkbox.
7. Click [Save].
If you are managing user access with Permission Sets, grant read access for the relevant field from [Object Settings] within the target Permission Set, similar to the steps above.
Please confirm with your System Administrator that this configuration change complies with your organization's security policies.
005131284

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.