Skip to main content

How to resolve a data type mismatch in a business rule / convert a number type to a money type

A data mismatch between the data type of a data source and the Business Rule's output type is highlighted with a red icon.  To know what the data type of the data source is, place the cursor over the

Updated over 2 weeks ago

A data mismatch between the data type of a data source and the Business Rule's output type is highlighted with a red icon. To know what the data type of the data source is, place the cursor over the icon.

mceclip0.png

To find the Business Output Type, expand the Details section at the top of the new business calculation screen. The Output Type field towards the end of the section. When using "Money" as the business rule's output type, the most likely reason for the mismatch is that the output type of the logic step is "Number".

mceclip2.png

In most cases, the way to resolve the data type mismatch is to remove the created function in this case the Housing Allowance Table Lookup and replace it with a Maths function.

mceclip0.png

When Math is selected a Data Source, a pop-up window is displayed giving the possibility of performing one out of four actions: Create New, Copy Existing, Select Existing and Run Existing. Press [Create New] which allows you to perform calculations between different operators but is also used to set a currency to a number field types.

mceclip4.png

After clicking [Create New], the Maths pop up window appears. Enter a name for the function.

mceclip2.png

Change the Output Type to Money and then select Table Lookup to create the Maths Operation.

mceclip6.png

Press [Select Existing].

mceclip7.png

And select the Table Lookup from the drop down list before pressing [Select Existing].

mceclip8.png

After pressing [Select Existing], the name of the Table Lookup appears in the Maths Operation section. Lastly, select a currency and then press [Save]. In this example, a database field was selected but it is possible to use any currency such as from a data table using the Table Lookup option or a Fixed Value.

mceclip9.png

A money icon appears besides the field and the data mismatch is resolved.

mceclip10.png
Did this answer your question?