You need to sign in to do that
Don't have an account?
Nate lindo
getting System.SObjectException: Field is not writeable: Contact.<unique text field> for tests
It is running as the current user which has SA rights. Any thoughts on why this would occur?
Hi,
You can take references from the below link:
https://developer.salesforce.com/forums/?id=906F00000009MrpIAE
https://salesforce.stackexchange.com/questions/41034/test-code-assistance-on-orders-system-sobjectexception-field-is-not-writeable
Thank You
I think you are trying to update RelationId field on the contact is not updatable and hence you are getting the errors.
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
The field I am trying to update is a custom unique free text field. Those articles did not appear to be relevent.