Loading

Salesforce Error: 'Can't change the data type because it's referenced in the following Flows'

Julkaisupäivä: Jun 25, 2026
Kuvaus

When a custom field is referenced in one or more Flows, Salesforce prevents you from changing that field's data type. Attempting to do so displays the error: "Can't change the data type because it's referenced in the following Flows." Note: Deactivating the Flow does not resolve the issue — the field reference must be removed from the Flow.
Steps to Reproduce:

  1. Create a simple Flow referencing a custom field (for example, use any custom field within a Record Lookup element).
  2. Try to change the data type of that field (for example, from Text to Number).
  3. The error "Can't change the data type because it's referenced in the following Flows" appears.
Ratkaisu

This error occurs because Salesforce prevents changing the data type of a custom field that is actively referenced in one or more Flows. The only way to resolve this is to remove the field reference from the Flow before changing the data type.
To avoid re-creating the complete Flow, follow these steps:

  1. Open the Flow referenced in the error message.
  2. Search all elements to locate the affected field.
  3. Remove the affected field from those elements.
  4. Save the Flow as a new version.
  5. Delete the older version where the field was referenced.

After completing these steps, you can change the data type of the affected field without error.
Important Note
Deleting the entire Flow would also resolve the issue, but is not recommended unless the Flow is no longer needed.

Lisäresurssit

 

Knowledge-artikkelin numero

000387461

 
Ladataan
Salesforce Help | Article