INVALID_FIELD_FOR_INSERT_UPDATE

The request tries to write to a field that cannot be written. The message reads Unable to create/update fields: <field>.

Common causes

  • The field is a formula, roll-up summary, auto-number or system field.
  • Field-level security makes the field read-only for the user.
  • A master-detail field is being changed and reparenting is not allowed.
  • Audit fields such as CreatedDate are included without the right permission.

How to fix

  • Remove the field from the mapping or payload.
  • Grant edit access to the field through a permission set.
  • Enable “Allow reparenting” on the master-detail field if children should move between parents.
  • To load audit fields, enable “Set Audit Fields upon Record Creation” and assign that permission to the loading user.

You may also like...