Medium severityconfiguration
Power BI Refresh Error:
QueryUnsupportedCommandBehavior
What does this error mean?
The SQL command behavior specified in the copy activity source is not supported by ADF. Only sequential reads are supported for the configured source type.
Common causes
- 1Unsupported command behavior in query
- 2Integration runtime configuration is incorrect or outdated
- 3Authentication credentials or permissions are insufficient
- 4The feature or setting is not supported for the selected connector or copy mode
How to fix it
- 1Open the copy activity source settings in ADF Studio and check the 'Query' or 'Stored procedure' configuration — ADF only supports sequential SELECT reads for this connector type and does not support non-query behaviors.
- 2If the source uses a stored procedure that performs writes, deletes, or multi-result set operations, refactor it into a SELECT-only stored procedure — ADF reads the first result set returned.
- 3Remove any SET statements, transaction controls, or DDL commands from the source query — ADF passes the query to the driver with sequential read behavior only.
- 4For pre-copy scripts (e.g., truncating a staging table), use the 'Pre-copy script' field in the sink settings or add a Script activity before the copy — do not include it in the source query.
- 5Validate the configuration change using the 'Validate' button before re-running the pipeline.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/connector-troubleshoot-guide