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, 2019 at 16:54
  • @SebastianKessel - Thank you. That was it. Can you create an answer?
    – B Seven
    Apr 19, 2019 at 16:59
  • 1
    Done. Glad it worked! Apr 19, 2019 at 17:00

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .