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
Priyadarshi NayakPriyadarshi Nayak 

Invalid Variable Error

Product has a variable named "ExternalId' 
While setting its value in a new object it throws Invalid Variable error.
Refer attached screenshot (red underlined).
Any point why this error. 

screen 1
screen -2
Anjita MaheshwariAnjita Maheshwari
Hi Priyadarshi,

Does your profile have access of this field? Please check the FLS of this field and let me know if your profile have access of the field but still facing the issue.

Thanks,
Anjita
Priyadarshi NayakPriyadarshi Nayak
Thank Anjita
The user has System Administrator profile. The field externalId has exactly same setting with other fields that does give any compilation error. Please refer attached screenshot.screen 3