I have a Master-Detail relationship with Accounts and Locations.

I am able to create the child using upsert, but when I try to update the Account__c field I get

(INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: Account__c. 
Please check the security settings of this field and verify that it is read/write 
for your profile or permission set.)

Profile and permission set look OK, from what I can tell.

Using Restforce.

  • 3
    Sounds like you're trying to reparent a child. Did you check that you are allowed to do so? (check the MD field on the child object) Apr 19 '19 at 16:54
  • @SebastianKessel - Thank you. That was it. Can you create an answer?
    – B Seven
    Apr 19 '19 at 16:59
  • 1
    Done. Glad it worked! Apr 19 '19 at 17:00

Sounds like you're trying to reparent a child.

Go to the MD field on the child's object and check the box that would allow you to do so.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.