Read the whole response, not the message
Salesforce returns an array of error objects, each with a statusCode, a message and a fields array naming the API names involved. The fields array is the useful part: it gives the exact API name to send, which is frequently not what the label suggests — a custom field labelled "Account Level" has an API name like Account_Level__c, and a lookup field's API name ends in Id where its label does not.
A create with several problems returns several entries, so fixing the first and retrying can produce the same status code naming a different field two or three times over. Parse the whole array.
POST /services/data/v66.0/sobjects/Contact
Authorization: Bearer ACCESS_TOKEN
{ "FirstName": "Ada", "Email": "ada@example.com" }
# -> 400
# [ { "message": "Required fields are missing: [LastName]",
# "errorCode": "REQUIRED_FIELD_MISSING",
# "fields": ["LastName"] } ]
# Confirm the API name and whether the field is truly required:
GET /services/data/v66.0/sobjects/Contact/describe
# -> fields[] entry:
# { "name": "LastName", "label": "Last Name",
# "nillable": false, <- cannot be null
# "createable": true,
# "defaultedOnCreate": false }
#
# nillable false + defaultedOnCreate false = genuinely required on create.
Five places a requirement can come from
Only the first is visible in the describe, which is why the error so often names a field that the metadata says is optional.
Field metadata: nillable false means the field cannot be null. This is the straightforward case and the describe confirms it.
Page layout: a field marked required on a layout is enforced for UI edits and generally not for API writes. If someone points at the layout as the explanation for an API failure, that is usually the wrong lead.
Field-level security: if the integration user's profile cannot see or edit the field, a value sent for it is dropped before validation runs — and a required field then appears missing even though the payload contained it. This one is invisible from the client and is the cause people find last.
Validation rules: a rule can make a field conditionally required, so the same payload succeeds for one record and fails for another. The message is usually the rule's own text rather than REQUIRED_FIELD_MISSING, but not always.
Flows and Apex triggers: a before-save flow or trigger can set or demand fields, and it runs as part of your write. A requirement that appears only in one org, on one object, and matches nothing in the metadata is usually this.
Where the requirement lives, and how to confirm it
| Source | Applies to API writes? | How to confirm |
|---|
| Field metadata (nillable false) | Yes | describe: nillable, defaultedOnCreate |
| Page layout required | Generally no | Setup → Page Layouts |
| Field-level security | Yes — silently drops the value | describe AS THE INTEGRATION USER: createable/updateable |
| Validation rule | Yes | Setup → Object → Validation Rules |
| Flow / Apex trigger | Yes | Setup → Flows; Apex triggers on the object |
Run the describe as the integration user
This is the step that resolves the field-level-security case, and it is skipped almost every time. The describe response is permission-aware: createable and updateable reflect what the authenticated user may do, so the same call returns different answers for an admin and for the integration user.
Running it as an admin shows a field that is perfectly writable and hides the actual problem completely. Run it with the integration's own token, and a field showing createable false is the whole answer — the fix is a profile or permission-set change in Salesforce, not anything in the payload.
Reproduce with a minimal payload
Strip the create down to the fields the describe says are genuinely required and send it as the integration user. If the minimal payload succeeds, add fields back a few at a time until it fails — the field that breaks it is interacting with a validation rule, a flow or field-level security, and you have narrowed five possibilities to one in a handful of requests.
If the minimal payload fails, the requirement is coming from something that runs on every write regardless of content: a trigger, a before-save flow, or a required field the describe reported that the payload is still missing.
Test against a sandbox where possible, and against the same record type the production write uses. Record types change which fields are required through layouts and can change which validation rules apply, so a test on the default record type can pass while the real write fails.
What not to do
Do not resolve this by sending empty strings for every field the error might be about. On an update that overwrites real CRM data with blanks — a far more expensive mistake than the failed write — and on a create it converts REQUIRED_FIELD_MISSING into a different validation error without addressing anything.
Do not retry an unchanged payload. REQUIRED_FIELD_MISSING is never transient; the identical request produces the identical response, so it belongs in a dead-letter branch with its fields array preserved, and the retry budget belongs to rate limits and server errors.
Do not remove the validation rule or relax field-level security to make an integration work without understanding why they exist. They usually encode a business requirement, and the integration is the thing that should change.
If the payload clearly contains the field the error says is missing, stop looking at the payload. That combination means field-level security is dropping the value before validation — confirm it with a describe run as the integration user.
Upserts hit this differently from inserts
An upsert against an external ID field can surface REQUIRED_FIELD_MISSING in a way a plain update never does, and the reason catches people out. When the external ID matches an existing record the operation is an update and only the fields you send are touched; when it matches nothing the operation becomes an insert, and every genuinely required field on the object must now be present in the same payload.
So a workflow that sends only the fields that changed works perfectly for records that already exist and fails for new ones — which looks like an intermittent fault tied to no obvious pattern, until someone notices that every failure is a record Salesforce had not seen before.
Send the full set of required fields on every upsert, not just the changed ones. It costs nothing on the update path, where the values are simply rewritten with what they already contain, and it removes the insert-path failure entirely.
The external ID field itself needs care too: it must be marked as an external ID in Salesforce, and it should be unique. If more than one record carries the same external ID value the upsert fails with an ambiguity error rather than a missing-field one, which is a different problem with a similarly confusing presentation.
Where these facts come from