We have lightning components which are fetching user data from apex. After sandbox upgraded to preview summer'19 these components are throwing error when trying to edit. error screenshot - Is anybody aware about the reason and resolution.
I also experienced this same issue in one my of custom lightning component. Where it was throwing the same error - There is no such column "ContactId" on User entity;
After struggling the whole day I got a solution for this.
It is just to recompile APEX Classes.
Steps to fix it:
- Login to Salesforce org
- Go to setup.
- Enter "Apex Classes" in the quick search. And then click "Apex Classes".
- You will see "Compile all classes" link there, just go and press it.
- Once it completes, go to the component and make the changes and save it. Now it should not show any error.