Skip to content
Bug Barometer
All issues
Solution Deployed

Uncategorized

Field Integrity Exception when saving a Lightning Component in Developer Console which references User Fields

Summary

In your Summer '19 Sandbox in Developer Console: if you try to make a change and save a Lightning component which queries the user object and it's fields you will sometimes receive a Field Integrity Exception Error relating to one of the fields being queried.

Eg:
FIELD_INTEGRITY_EXCEPTION
Failed to save TestUserrole.cmp: Invalid definition for null:TestUserRole: No such relation 'UserRole' 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

OR:
FIELD_INTEGRITY_EXCEPTION
Failed to save OneTrainingCmp.cmp: Invalid definition for null:classControllerForWWCustomer: Select Id, LanguageLocaleKey FROM User where ^ ERROR at Row:1:Column:12 No such column 'LanguageLocaleKey' 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

OR so on

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed with 135 reports

    Nov 30, 2026