---
schema_version: "1"
id: 57cd22f3070b4b94b4dbfaa62efd40209d98a134430e59d65351cf9b974c7e28
title: Troubleshoot REQUIRED_FIELD_MISSING Errors in Flows
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/automate_flow_troubleshoot_required_field_missing.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.automate_flow_troubleshoot_required_field_missing.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bfcf9bbcc8a4c470c5d88ec99d417a5bc453d059fef4d11809dda9a0983e345a
description: When a flow attempts to create or update a record without populating all required fields, you receive a REQUIRED_FIELD_MISSING error.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Troubleshoot REQUIRED\_FIELD\_MISSING Errors in Flows

When a flow attempts to create or update a record without populating all required fields, you receive a REQUIRED\_FIELD\_MISSING error.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:left;vertical-align:top;" id="d29026e61">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e61 ">To open, edit, create, activate or deactivate a flow using all flow types,
              elements, and features available in Flow Builder, including Einstein and Agentforce
              for Flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e61 ">Manage Flow</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e61 ">To view object field definitions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e61 ">View Setup and Configuration</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e61 ">To view debug logs:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e61 ">View All Data</td>

          </tr>
        </tbody>
      </table>

The REQUIRED\_FIELD\_MISSING error occurs when a flow tries to create or update a Salesforce record but doesn't provide values for all fields marked as required. This error can occur in various flow scenarios and contexts.

To troubleshoot and resolve this error:

- Understand the common scenarios that cause this error
- Identify which field is missing
- Find all the required fields for an object
- Apply solutions and recommendations to prevent the error

- **[Problems, Solutions, and Prevention Techniques for Required Field Errors](https://help.salesforce.com/s/articleView?id=platform.automate_flow_troubleshoot_required_field_missing.htm&release=264.0.0&type=5)**  
    Identify common required field problems, apply solutions, and follow prevention techniques to avoid REQUIRED\_FIELD\_MISSING errors.
- **[Identify Which Field Is Missing](https://help.salesforce.com/s/articleView?id=platform.automate_flow_troubleshoot_required_field_missing.htm&release=264.0.0&type=5)**  
    When you receive a REQUIRED\_FIELD\_MISSING error, use these techniques to identify which field caused the error.
- **[Find Required Fields for an Object](https://help.salesforce.com/s/articleView?id=platform.automate_flow_troubleshoot_required_field_missing.htm&release=264.0.0&type=5)**  
    To prevent REQUIRED\_FIELD\_MISSING errors, before building a flow, identify the required fields for the object's records. There are two options: use Schema Builder or create a record on the object, but don't save it. Either option shows the required fields, but Schema Builder also shows system populated fields that you don't include in a flow.

#### See Also

- [Creating a Salesforce Record from a Flow](https://help.salesforce.com/s/articleView?id=platform.flow_build_data_create.htm&release=264.0.0&type=5 "To create a Salesforce record, use the Create Records element. You can also use a Quick Action element of type Create, but it has limited functionality.")
- [Customize What Happens When a Flow Fails](https://help.salesforce.com/s/articleView?id=platform.flow_build_logic_fault.htm&release=264.0.0&type=5 "Learn how fault paths customize what happens when a flow fails. Choose how to notify admins, guide users, and take a follow-up action.")
- [Test or Troubleshoot Flows with the Flow Builder Debugger](https://help.salesforce.com/s/articleView?id=platform.flow_test_debug.htm&release=264.0.0&type=5 "For flows that don't use Test Mode, use the Debug option to test or troubleshoot the flow. Review step-by-step details of how the flow runs and the path it takes.")

## Problems, Solutions, and Prevention Techniques for Required Field Errors

Identify common required field problems, apply solutions, and follow prevention techniques to avoid REQUIRED\_FIELD\_MISSING errors.

This table provides a reference for troubleshooting required field errors. Each row describes a common problem, the solution to fix it, and techniques to prevent it in future flows.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
            <col style="width:33.33333333333333%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d29026e219">Problem</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d29026e222">Solution</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d29026e225">Prevention Technique</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="Problem" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e219 ">
                <p><strong>Creating Records Without All Required Fields</strong></p>
                <p>When using a Create Records element, Flow Builder doesn't indicate which fields the
                  object requires. If you don't manually set all the required fields, the flow fails
                  at run time.</p>
                <p style="margin-bottom:0;"><strong>Example:</strong> A flow creates a Contact record but doesn't populate the required Last Name field.</p>
              </td>

              <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e222 ">
                <p><strong>Check Required Fields Before Building</strong></p>
                <p>Before you configure a Create Records or Update Records element, check the object's
                  required fields in Object Manager. Populate all required fields either directly in
                  the element, through Assignment elements, or from screen input.</p>
                <p>Alternatively, a Quick Action element of type Create shows which fields the action
                  layout requires. However, Quick Action elements limit available fields to the action
                  layout and don't store the created record's ID.</p>
                <p style="margin-bottom:0;">Set default values for required fields if you're not populating them in another way
                  within the flow.</p>
              </td>

              <td data-label="Prevention Technique" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e225 ">
                <p style="margin-bottom:0;">Maintain a checklist of required fields for objects commonly used in your flows.
                  Consult Object Manager or the object's page layout before building flows that create
                  or update records.</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Problem" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e219 ">
                <p><strong>Screen Flows Not Populating Required Fields</strong></p>
                <p>When a screen flow collects information to create a record, required fields can go
                  unpopulated if the screen doesn't include them and the flow doesn't set them in
                  another way.</p>
                <p style="margin-bottom:0;"><strong>Example:</strong> A screen flow for creating Cases includes fields for Subject and
                  Description, but the screen doesn't include the required Status field, and the Create Records
                  element doesn't set it.</p>
              </td>

              <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e222 ">
                <p><strong>Add Required Fields to the Screen or Populate Them in the Flow</strong></p>
                <p style="margin-bottom:0;">Add record fields directly from the object to the screen. Record fields
                  automatically inherit their requiredness from the object definition. For required
                  fields that users don't set, populate them directly in the Create Records element or
                  with an Assignment element earlier in the flow.</p>
              </td>

              <td data-label="Prevention Technique" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e225 ">
                <p style="margin-bottom:0;">When designing screen flows, review the object definition in Object Manager to
                  identify all required fields. Add required fields to the screen, or provide default
                  values in the flow for fields users don't set.</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Problem" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e219 ">
                <p><strong>Screen Flow Updates Clearing Required Fields</strong></p>
                <p>In a screen flow, if a user leaves a field blank and the flow uses that blank value
                  to update a record, the update overwrites the existing value with blank. If that
                  field is required, the update fails.</p>
                <p style="margin-bottom:0;"><strong>Example:</strong> A screen flow makes it possible for users to edit Account fields. A
                  user leaves the Company field blank. The Update Records element uses the blank
                  screen value to update the Company field, which fails because Company is
                  required.</p>
              </td>

              <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e222 ">
                <p><strong>Make Screen Fields Required or Use a Decision</strong></p>
                <p style="margin-bottom:0;">Mark screen components for required fields as required so users can't leave them
                  blank. For optional screen fields that update required record fields, use a Decision
                  element to check whether the value is blank. If blank, route to a different Update
                  Records element that updates only the other fields.</p>
              </td>

              <td data-label="Prevention Technique" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e225 ">
                <p style="margin-bottom:0;">Test update operations with various record states to make sure that the required
                  fields remain populated. Identify which screen fields map to required record fields
                  and mark them as required on the screen.</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Problem" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e219 ">
                <p><strong>Record Type and Validation Rule Requirements</strong></p>
                <p>Different record types can have different required fields. Validation rules can
                  also make fields conditionally required. A flow can work for one record type but
                  fail for another.</p>
                <p style="margin-bottom:0;"><strong>Example:</strong> A flow creates opportunities with the "Enterprise" record type,
                  which requires more custom fields that the "Standard" record type doesn't
                  require.</p>
              </td>

              <td data-label="Solution" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e222 ">
                <p><strong>Test with Multiple Record Types</strong></p>
                <p style="margin-bottom:0;">If your object has record types and the flow creates records of multiple record
                  types, test the flow with each record type to make sure that the flow populates all
                  type-specific required fields. Use decision elements to handle different record
                  types with different logic paths if needed.</p>
              </td>

              <td data-label="Prevention Technique" class="slds-cell-wrap" style="vertical-align:top;" headers="d29026e225 ">
                <p style="margin-bottom:0;">Document the record types and validation rules that affect your flows. Review field
                  requiredness for each record type during flow design. Include record type testing in
                  your flow testing checklist.</p>
              </td>

            </tr>
          </tbody>
        </table>

### General Prevention Guidelines

- **Implement fault paths:** Add a fault path to Create Records and Update Records elements. Use the fault path to show a helpful error message to users or to log the error for Salesforce admin review.
- **Test thoroughly before activation:** Use Debug mode to test the flow with various data scenarios, including edge cases where some fields can be empty.
- **Use description fields:** Add descriptions to your flow elements noting which required fields the flow populates and where the values come from.
- **Monitor flow errors:** Regularly review flow error emails and logs to catch issues early.

## Identify Which Field Is Missing

When you receive a REQUIRED\_FIELD\_MISSING error, use these techniques to identify which field caused the error.

1. Check the error message.
    
    The REQUIRED\_FIELD\_MISSING error usually specifies which field was missing. Look for the field API name in the error details.
2. Use debug mode.
    
    Run the flow in debug mode and examine the debug details when the error occurs. The debug log shows which element failed and includes the specific field name. For more information, see [Test or Troubleshoot Flows with the Flow Builder Debugger](https://help.salesforce.com/s/articleView?id=platform.flow_test_debug.htm&release=264.0.0&type=5 "For flows that don't use Test Mode, use the Debug option to test or troubleshoot the flow. Review step-by-step details of how the flow runs and the path it takes.").
3. Review Apex debug logs.
    
    For record-triggered flows, check the [Apex debug logs](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_view_apex_debug_logs.htm). Search for "REQUIRED\_FIELD\_MISSING" to find the exact field that caused the failure.
4. Check email notifications.
    
    Flow error emails sent to the flow owner include the field name and error details.

## Find Required Fields for an Object

To prevent REQUIRED\_FIELD\_MISSING errors, before building a flow, identify the required fields for the object's records. There are two options: use Schema Builder or create a record on the object, but don't save it. Either option shows the required fields, but Schema Builder also shows system populated fields that you don't include in a flow.

To review required fields in Schema Builder, follow these steps.

Before building a flow, identify the required fields for the object's records. There are two options: use Schema Builder or create a record on the object, but don't save it. Either option shows the required fields, but Schema Builder also shows system populated fields that you don't include in a flow.

You now have a list of required fields for the object. Use this information when building flows to make sure that you populate all required fields.

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_tip.png)

Tip For custom objects, check both system-defined required fields (like Name) and custom required fields created by your organization.