I have 2 approval processes on an object and the record in context when submitting had
name = "test", gender = "female"
Important: numberoflocations (one of the criteria in the entry criteria) is a formula field and it ended up as a divide by 0 error and the approval process halted (I guess)and threw an exception message.
Workflow or Approval Process Formula Error The formula in the "Approval process 1" rule or process is invalid due to the following:
java.lang.ArithmeticException: Division undefinedClick here to return to the previous page.
Coming to the approval processes:
Process order = 1
Approval process 1 entry criteria
AND (name = "test", gender = male, numberoflocations <= "10")
Process order = 2
Approval process 2 entry criteria
AND (name= "test", gender =female , numberoflocations > "10")
My questions:
Why did the process continue into Approval process 1 even though the gender was female?
Assuming process order mattered and it stepped into the first process, does the process not quit as soon as it encounters the first false condition in the approval process criteria?
Does it step through all the conditions in the entry criteria and finally evaluates if the process is valid for the transaction?