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
swaranswaran 

Urgent help migration error:"RowCause filed not writable"

Am Migrating code from one instance to a different instance.

 

Am migration a trigger code on a custom object. When I try to deploy the trigger code to another sandbox, am getting error as

 

"Field is not writeable: <<custom object name>>__Share.RowCause"

 

Any help is highly appreciated.

Rajesh ShahRajesh Shah
Is the Organisation wide setting same for the object in both the environment?
swaranswaran
Its same in both the instances
Abhinav GuptaAbhinav Gupta

Seems you are updating the  <<custom object name>>__Share record and including the RowCause field in the update too :  <<custom object name>>__Share.RowCause. RowCause field is not updateable once the record is created. If you need to change it, delete the previous  <<custom object name>>__Share record and create new one.

 

More detailed synopsis here : http://www.tgerm.com/2012/01/field-is-not-writeable-sharerowcause.html