Welcome to the Alteryx Knowledge Base
Created/Edited -
- Alteryx Designer
-
- All Versions
- Base64 Encoder
- Dynamic Rename
- Dynamic Select
- Filter
- Formula
- Multi-Field Formula
- Multi-Row Formula
- Test
In the formula or function, there is a data type mismatch; e.g. using a numeric operator on a string variable, or a spatial function on a date variable.
Verify that the variables used are the correct data type for the formula or function. This error evaluates the expression as a whole. In the below example, it is attempting to filter based on whether the result of the CountWords() function is equal to five. However, it is trying to count the words in [X1], a numeric variable. Therefore, the error is that a number [numeric variable] is provided where a string [variable] is required.
The char(number) will tell you the position of the incompatible variable, as well as the red squiggly line.
In the case of the Multi-Field Formula, Multi-Row Formula, Dynamic Rename, and Test tools, clicking Go at the bottom right corner of the tool configuration will place your cursor on the position of the incompatible variable (see second figure).
For more information see data types or functions.