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
sai007sai007 

Save Failed. Error Select id,Name,FullPhotoUrl From User Where Id

Hi, If I use the below query in one of my methods in Apex call, I'm not getting any error. But when I'm trying to call the method in LWC and trying to save my changes I'm getting the following error 

Save Failed. Error Select id,Name,FullPhotoUrl From User Where Id ^ ERROR at Row:1:Column:16 No such column 'FullPhotoUrl' 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

this is the SOQL query that I'm using: - 
"select id,Name,FullPhotoUrl From User Where Id =: Userinfo.getUserId()"
I tried this in the query editor I'm getting my results as expected. can someone help me with that why I'm getting when I'm saving my changes in the LWC javascript controller?

Thanks in advance.
 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Sai,

Can you check if the API name of the field is correct?

Thanks.