function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sedaarpalisedaarpali 

No such column 'AccountId' on entity 'User'

Hi All,
We are getting "No such column 'AccountId' on entity 'User'.If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source" error when we are trying to save a controller class. We have been using this controller for a while and it just worked fine. But yesterday we had to change it and we couldn't save it again. Does anyone have this issue before?
Best Answer chosen by sedaarpali
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

I tried to research your problem and found that this is a known issue. Keep watching this issue until get fixed.

https://success.salesforce.com/issues_view?id=a1p3A000001SGubQAG&title=field-integrity-exception-when-saving-a-lightning-component-in-developer-console-which-references-user-fields

Workaround suggested by Salesforce:

Use Metadata API or VS Code and SFDX to deploy changes to your lightning components.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

I tried to research your problem and found that this is a known issue. Keep watching this issue until get fixed.

https://success.salesforce.com/issues_view?id=a1p3A000001SGubQAG&title=field-integrity-exception-when-saving-a-lightning-component-in-developer-console-which-references-user-fields

Workaround suggested by Salesforce:

Use Metadata API or VS Code and SFDX to deploy changes to your lightning components.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
sedaarpalisedaarpali
Hello Khan,
Thanks for your reply. It helps too much.