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.
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:
Repeat this process for all formula fields involved in the Workflow Rule, Validation Rule, or Process Builder that references division operations.
000384754

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.