Loading

Error 'Division undefined System Code External entry point'

Udgivelsesdato: Jun 17, 2026
Beskrivelse

When saving or activating a record in Salesforce, you may encounter the following error message or a variation of it:

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY. The formula in the "SomeWorkflowOrValidationOrFormulaField" rule or process is invalid due to the following: Division undefined: (System Code) External entry point


What this error means:

Despite the word "Division" in the error, this error is not related to the Salesforce Divisions feature (used to segment data by business unit). Instead, this error indicates that a formula field involved in a Workflow Rule, Validation Rule, or Formula Field is dividing a number by zero because the "Blank Field Handling" setting is configured to "Treat blank fields as zeroes."

Example scenario: A formula field is used as the criteria for a Workflow Rule and specifies FieldA / FieldB. If the value calculated for FieldB equals 0 at runtime (because it is blank and blank fields are treated as zeroes), Salesforce throws the "Division undefined" error. This can occur on any object where formula fields perform division operations without accounting for blank or zero denominators.

Løsning

To resolve the "Division undefined" error, change the formula field's Blank Field Handling setting from "Treat blank fields as zeroes" to "Treat blank fields as blank."

Steps to update Blank Field Handling on a formula field:

  1. Navigate to Setup.
  2. Go to Object Manager and select the relevant object.
  3. Click Fields & Relationships and open the formula field referenced in the error message.
  4. In the formula editor, locate the Blank Field Handling section.
  5. Change the setting from "Treat blank fields as zeroes" to "Treat blank fields as blank."
  6. Save the formula field.
  7. Re-test the operation that previously triggered the error to confirm it is resolved.

Repeat this process for all formula fields involved in the Workflow Rule, Validation Rule, or Process Builder that references division operations.

Vidensartikelnummer

000384754

 
Indlæser
Salesforce Help | Article