Medium severitydata flow
Power BI Refresh Error:
DF-Executor-InvalidType
What does this error mean?
A data type mismatch occurred in the data flow — a column or expression is being used as a type it is not.
Common causes
- 1A column is mapped to a sink column of an incompatible type without an explicit cast — for example, a string column mapped to an integer sink column
- 2An expression function receives a column of the wrong type — e.g., a string column in an arithmetic expression or a date column in a string function
- 3The source schema type for a column changed (e.g., from integer to string) and downstream expressions still treat it as an integer
- 4A parameter passed to the data flow has a different type than declared in the data flow parameter definition
How to fix it
- 1Check the ADF activity run output for the column name and type mismatch detail — the error names the column and the conflicting types.
- 2Add a Derived Column transformation before the sink to explicitly cast the column to the expected type: use `toInteger()`, `toDecimal()`, `toString()`, or `toDate()` as appropriate.
- 3If the source sends mixed types in the same column (e.g., integers and strings), add a conditional expression: `iif(isString(col), toInteger(col), col)`.
- 4In the sink Mapping tab, verify the source column type is compatible with the target column type and adjust the sink schema if needed.
- 5Enable debug mode to preview the column at the point of failure and confirm the actual data types being processed.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-troubleshoot-guide