You need to sign in to do that
Don't have an account?
Meeta Bijlani
No such column 'MobilePhone' on entity 'Lead'
I am getting this error for some users only and not for all. Its working fine for some users
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Go to Setup -> Profiles -> <select the profile of affected users> -> Look for Standard Field level security -> Go to Lead - > Click on view -> Look for MobilePhone
and see what is the FLS for that profile
All Answers
When are the affected users getting this error? can you please post a screen shot of this error message together with the exact use case so its easier to understand the issue.
This is the query:
Select Id,FirstName,LastName,MobilePhone,Phone,Email,Status,leadSource,Title,Country,Fax,description,ConvertedAccountId,city,LastActivityDate,Street,State,Company,PhotoUrl from Lead
SoapFault - faultcode: 'sf:INVALID_FIELD' faultstring: 'INVALID_FIELD:
Select Id,FirstName,LastName,MobilePhone,Phone,Email,Status,leadSource
^
ERROR at Row:1:Column:30
No such column 'MobilePhone' on entity 'Lead'. 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.' faultactor: 'null' detail: org.kxml2.kdom.Node@40a7dad0
change the api versions as highlted above and try..hope this information help
I am assuming that field is hidden for the users who are facing this issue.
Please check to see if the affected users have access to the field mentioned in the error on the UI..check their profile to see the FLS setting for this object field.
Also, confirm if this was ever working for the affected users in the past..and the issue has cropped recently.
Go to Setup -> Profiles -> <select the profile of affected users> -> Look for Standard Field level security -> Go to Lead - > Click on view -> Look for MobilePhone
and see what is the FLS for that profile