REQUIRED_FIELD_MISSING in Salesforce: what it means and how to fix it
Short answer: REQUIRED_FIELD_MISSING means Salesforce rejected the record because a field that must always have a value was left empty. The brackets at the end of the message list the missing fields. Common culprits are standard fields like Contact LastName, custom fields marked Required, and master-detail fields that need a parent record.
Salesforce enforces required fields on every save, whether the record comes from a user, an integration or a bulk job. A field can be required because Salesforce defines it that way, because an admin ticked Required on a custom field, or because it is the master side of a master-detail relationship. If any of those fields is empty, the record is rejected:
REQUIRED_FIELD_MISSING: Required fields are missing: [LastName]
The bracketed list names every missing field on that row, using API names, so it is usually a quick error to diagnose.
Why it happens
- Standard fields with no default.
LastNameon Contact and Lead,Nameon Account, andStageNameandCloseDateon Opportunity must be supplied on insert. - Custom fields marked Required. An admin can make a custom field required at the field level, which applies to every API call.
- Master-detail parents. Children loaded before their parents, or with a parent column left blank, have no master to point at.
- Mapping gaps. The source file has the data but the import mapping skips the column, or maps it to a different field.
- Blank cells. Rows where the source system had no value, for example contacts with only a first name, fail even though the column exists.
- Schema drift between orgs. The target org requires a field the source org doesn't have or doesn't require.
How to fix it
- Read the bracketed fields. They are the exact API names to look for in your file and mapping.
- List the object's required fields. Use a describe call or Object Manager to see which fields every insert has to include.
- Fill or default the values. Supply real data where it exists, and a clear placeholder where it doesn't, for example "Unknown" for a missing last name.
- Load parents first so every master-detail field on child rows can reference an existing record.
- Check the mapping, especially after renaming columns or switching tools.
- Relax the field in a sandbox only if the requirement doesn't apply to test data, and only in an org you control.
How Syntharil handles it
Syntharil classifies REQUIRED_FIELD_MISSING as a schema or configuration error. When seeding, it treats a field as required when the org's describe says it isn't nillable and isn't defaulted on create, and it generates objects parent-first. Lookups are filled from parent records created earlier in the same job, so a required lookup to an object that isn't part of the job is left empty. If an AI-generated value for a required field comes back empty, Syntharil asks once more, then writes a placeholder such as "Account 12" so the row can still insert, and records a warning on the run. Every row is sent to the Bulk API with the same set of columns, which stops a sparse first row from dropping a column for the whole batch. Marking a required field as Skip in the field configuration leaves it empty, and Salesforce rejects those rows. In replication, the fields copied are the ones you can create in the source org, so a field that exists and is required only in the target arrives empty, and those rows are rejected until you give the field a default or relax the requirement in that sandbox.
FAQ
Are page layout required fields enforced for API loads?
No. A field marked required only on a page layout is enforced in the Salesforce user interface, not through the API. REQUIRED_FIELD_MISSING comes from fields required at the field level, from standard fields Salesforce always requires, and from master-detail relationships.
How can I tell which fields are required before loading?
Describe the object and look for fields that are createable, not nillable and not defaulted on create. Those are the fields every insert must supply. Required custom fields also show the Required checkbox in Object Manager.
Why do I get REQUIRED_FIELD_MISSING when my CSV has the column?
The column may be mapped to the wrong field, misspelled, or blank in the failing rows. Some tools also build the CSV header from the first record only, so a field missing from that first row can disappear from the whole batch.
Does a master-detail field always cause REQUIRED_FIELD_MISSING when empty?
Yes. A detail record can't exist without its master, so the master-detail field is required on insert. Load the parent first and supply its ID or an External ID reference on every child row.
Why does a REQUIRED_FIELD_MISSING load work in one org and fail in another?
Each org decides which custom fields are required, and a sandbox can mark a field required that production leaves optional, or the reverse. A field that exists only in the target org is never in your source data at all.