You need to sign in to do that
Don't have an account?
Marco Antonio Galvao Guimaraes
Summer 19' Issue: Failed to save Component.cmp Invalid definition for null:ComponentController: field__c, ManagerId FROM User ^ ERROR at (...) No such column 'ManagerId' on entity 'User'
On this saturday (04/05/2019) the Summer 19' has arrived.
For us arrived with issues...
After the new release enters, in all our Components, related with "User" we receive this error:
Failed to save TestUserError_Deletar.cmp: Invalid definition for null:TestUserErrorController: Field__c, ManagerId FROM User WHERE Id =:UserInfo.getUserId() ^ ERROR at Row:1:Column:74 No such column 'ManagerId' on entity 'User'.
We try security configuration, try without sharing class.
Only works when we use only custom fields in the query.
Any one face this error?
Thanks !
For us arrived with issues...
After the new release enters, in all our Components, related with "User" we receive this error:
Failed to save TestUserError_Deletar.cmp: Invalid definition for null:TestUserErrorController: Field__c, ManagerId FROM User WHERE Id =:UserInfo.getUserId() ^ ERROR at Row:1:Column:74 No such column 'ManagerId' on entity 'User'.
We try security configuration, try without sharing class.
Only works when we use only custom fields in the query.
Any one face this error?
Thanks !
We will get the exception when you try to save by adding controller to components.
Please let me know if you find any solution.
Thanks in Advance!!!
Guys the Salesforce find a solution:
Check this Know Issue with workaround:
https://success.salesforce.com/issues_view?title=field-integrity-exception-when-saving-a-lightning-component-in-developer-console-which-references-user-fields&Id=a1p3A000001SGub
Workaround
Use Metadata Api or VS Code and SFDX to deploy changes to your lightning components
Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.