Reply
Regular Contributor
swaran
Posts: 16

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.

Trusted Contributor
Rajesh Shah
Posts: 296

Re: Urgent help migration error:"RowCause filed not writable"

Is the Organisation wide setting same for the object in both the environment?
Regular Contributor
swaran
Posts: 16

Re: Urgent help migration error:"RowCause filed not writable"

Its same in both the instances
Trusted Contributor
zindalabhinav
Posts: 178

Re: Urgent help migration error:"RowCause filed not writable"

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