Medium severitydata source
Power BI Refresh Error:
SqlDataTypeNotSupported
What does this error mean?
The SQL column data type is not supported by ADF for this copy operation. Types like geography, hierarchyid, and sql_variant cannot be directly read or written.
Common causes
- 1The SQL table contains a column with a type not supported by ADF (geography, geometry, hierarchyid, sql_variant, xml)
- 2A sink column is mapped to a type that the destination SQL database does not support
- 3The column type was recently changed and the ADF dataset schema was not refreshed
How to fix it
- 1Identify the unsupported column in the ADF activity run error output.
- 2Exclude the unsupported column from the copy by modifying the column mapping in the copy activity.
- 3If the column value is needed, cast it to a supported type (e.g., CAST(geog_col AS nvarchar(max))) in a source query.
- 4Refresh the dataset schema in ADF Studio after the source table schema changes.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/connector-troubleshoot-synapse-sql