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
CloudConversionCloudConversion 

"Field is not writeable" Error on Custom Object in Sites?

We're getting "Field is not writeable" errors when we try to set field values via an ActionFunction on a custom object, where the Site has access to modify those fields.

 

Any idea why this might be happening and how to fix??

 

Thanks,

Jon

Best Answer chosen by Admin (Salesforce Developers) 
CloudConversionCloudConversion

Ok, we found the issue!  This particular object was "In Development".  Once we deployed it, the fields were writable...

 

Thanks,

Jon

All Answers

Shashikant SharmaShashikant Sharma

Seems nothing to do with your field level permission but you are trying to modify a field which is not writable , 

 

like 

 

you can not write createddate, lastmodifiedby, id, formula fields, master detail relationship , please check if the type of field is allowed to do updation ( writing another value)..

CloudConversionCloudConversion

Thanks for the reply Shashikant.  This actually works perfectly when logged in as the system administrator, so the field is definitely writable.  It's just that when we try to write to the field from the Sites controller that we get the error.  However, we have given full permissions to the Sites profile to read, create, edit and delete this custom object.

 

Any other ideas?

 

Thanks,

Jon

CloudConversionCloudConversion

Ok, we found the issue!  This particular object was "In Development".  Once we deployed it, the fields were writable...

 

Thanks,

Jon

This was selected as the best answer
cooldamselcooldamsel
I have the same problem. My field is a pick list and am not able to update the value. Could you please prove a solution to overcome this problem?