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
Radhika pawar 5Radhika pawar 5 

Field is not writeable: RI_VOL_THR_INFO__c.RI_School_Card__c

School report card is a parent
teacher is a child
please guide me for this error Field is not writeable: RI_VOL_THR_INFO__c.RI_School_Card__c
Controller:
Virendra ChouhanVirendra Chouhan
HI Radhika

Is it Master Deatils Relationship between School report card and Teacher ?

IF yes Then Parent Field in Child object is not Writeable Until you are not checked Re-Parenting option in filed detail page.

Regards
Viru
James LoghryJames Loghry
Radhika,  Is this a trigger or apex class you're having issues with?  If so, could you post a code snippet?

I notice you're trying to write to a parent relationship's field, but specifying __c instead of __r, so that's likely the problem here.

Try changing RI_VOL_THR_INFO__c.RI_School_Card__c to RI_VOL_THR_INFO__r.RI_School_Card__c
Radhika pawar 5Radhika pawar 5
I am not using RI_VOL_THR_INFO__c.RI_School_Card__c
RI_VOL_THR_INFO__c is my  child
RI_School_Card__c is my parent
my concept is:  i want to save my parent child relationship records.
In that I m using Controller and Visualforce page only.
1:Only parent record is save when i m Trying to insert the record in both relation of master detail That time i got this Error RI_VOL_THR_INFO__c.RI_School_Card__c
Please suggest me .

Thanks
Rad
Virendra ChouhanVirendra Chouhan
Hi Rad,

please give us code snippet !