You built a Power Query that imports an Excel worksheet, promotes the first row to headers, and then applies a Changed Type step. The source file owner later renames the header 'Unit Price' to 'UnitCost'. The next scheduled refresh fails with the message:
Expression.Error: The column name 'Unit Price' of the table wasn't found.
You need to fix the import error and keep every downstream step exactly as it is. What should you do in Power Query?
Edit the Changed Type step so that it references 'UnitCost' instead of 'Unit Price'.
Delete the existing query and rebuild it from scratch to match the new header names.
Switch the query's storage mode from Import to DirectQuery to avoid schema validation during refresh.
Insert a Rename Columns step immediately after the Source step that renames 'UnitCost' back to 'Unit Price'.
Adding a Rename Columns step right after Source converts the new header 'UnitCost' back to 'Unit Price'. Because all following steps still refer to 'Unit Price', they can execute without modification. Rebuilding the query would resolve the error but is unnecessary and time-consuming. Editing or disabling the Changed Type step would still leave later steps referencing the old column name, so those steps would also need to be changed. Switching to DirectQuery does not address missing-column errors; the schema must still match during refresh.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why does the Rename Columns step fix the issue in Power Query?
Open an interactive chat with Bash
How does Power Query handle schema changes during data refresh?
Open an interactive chat with Bash
When should you rebuild a query instead of using transformations like Rename Columns?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Prepare the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .