function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Flow error - The Value isn't compatible with the variable's data type.

I have a flow that has an input value setup as a number.  I am calling the flow from a button and passing in a field value.  The field is setup as a formula field of type number with 2 decimal places.   When I launch the Flow I get this error message:
"The value 20,460,026.4 is being provided for variable inNumber but isn't compatible with the variable's data type (Number)."

Any reason why a numeric formula field would not be recognized by a Flow as a number?

Gaurav HandooGaurav Handoo
Hi Debra

Could you check following points for the Variable defined in the flow:
  1. Scaling of the number field should be same as that of Formula Field of the object.
  2. Input/Output type should either be "Input and Output" or "Input Only".

Hope this helps. Please mark as best answer if it does.