Welcome to the Alteryx Knowledge Base

Error: Parse Error at char(n): Type mismatch. (1) provided where a (2) is required.
user

Created/Edited - 9/23/2026 by Darlene Delgado | Alteryx

Summary
Error: Parse Error at char(n): Type mismatch. (1) provided where a (2) is required.
Environment
  • Alteryx Designer
    • All Versions
  • Base64 Encoder
  • Dynamic Rename
  • Dynamic Select
  • Filter
  • Formula
  • Multi-Field Formula
  • Multi-Row Formula
  • Test
Cause

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. 

 
Resolution

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.  
 

Parse1.jpg

The char(number) will tell you the position of the incompatible variable, as well as the red squiggly line.  
 Parse2.jpg 

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.



Was this article helpful?