I am trying to run a simple SOQL on a custom object:

SELECT Id, Course_Link__c
FROM Course__c

But instead I am getting an error saying:

SELECT Id, Course_Link__c ^ ERROR at Row:1:Column:12 No such column 'Course_Link__c' on entity 'Course__c'...

I checked this field in the Setup section for this object and surprisingly see it there. I event copy-pasted the API name of the field and re-run the query, but still saw no effect. setup section for Course__c

When I checked this fields in the Developer Console (Ctrl + Shift + O > Look Up Course.obj), I found that Course_Link__c was missing:

developer console

Does anybody know why the Course_Link__c field is not recognized by Developer Console? In general, why Salesforce exposes such strange behavior?

  • Click the field name, then "Field Accessibility". Is the field available for your profile? May 22 '18 at 15:02
  • Can you check the FLS has been given and secondly are you executing same DE from Developer console? May 22 '18 at 15:02

Make sure that this field is actually visible to your user via Field Level Security.

  1. Click the field name in your Setup UI to view the field definition detail.
  2. On this detail view, there will be a Set Field-Level Security button.
  3. Make sure Visible is selected for your Profile.
  • You save my day - thanks a lot!
    – Unkas
    Sep 10 at 17:13

This is usually if the system administrator profile does not have access to Read access to the fields .

I would recommend checking the Field Level Security for the System Administrator Profile for the field Course_Link__c

  • your answer is correct, but I am accepting Adrian's since it provides a bit more step-by-step instruction.
    – Eduard
    May 22 '18 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.