Medium severityschema
Power BI Refresh Error:
207
What does this error mean?
A query references a column that does not exist in the specified table or view.
Common causes
- 1A column was renamed or dropped in the table but the query was not updated
- 2ADF column mapping references a source column that no longer exists
- 3dbt model references a column that was removed from the upstream source
How to fix it
- 1Step 1: Check the current columns: SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'YourTable' ORDER BY ORDINAL_POSITION;
- 2Step 2: Update the query to use the new column name, or add the missing column to the table if it was dropped accidentally.
- 3Step 3: In ADF, refresh the schema in the dataset settings and update the column mappings in the copy activity.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-207-database-engine-error