Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ThiagoDuarte
Helper I
Helper I

Invalid column name after editing SQL

Hello,

 

I have a report running on a SQL base managed by other team in my company

 

There were some changes to the SQL database. A few columns were added. Now my report won't refresh. If I try to open and refresh it on Desktop application I get this error:

 

ThiagoDuarte_0-1623239032985.png

 

"rpp_deviceweight" is one of the columns that were added to the SQL (last update)

 

I reloaded this table from SQL server. This column is showing in my Power Query view and it's on my native query editor

 

ThiagoDuarte_1-1623239269514.png

ThiagoDuarte_2-1623239299283.png

 

Any ideas on how to solve it?

 

Thanks

1 ACCEPTED SOLUTION

Hello

 

I think that might work but my report is way too big and complex to start from scratch.

 

I did get it to work though. I deleted all the tables that suffered any changes and then I reconected to them(direct query) . After that I recreated all the relationships (on these tables).

 

It works now!

 

Best Regards,

 

Thiago Duarte

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@ThiagoDuarte , In the case of the latest version, power bi is able to handle add remove columns automatically. But in older version you may have handle it manually

 

How to manage when column is added or removed at source: https://www.youtube.com/watch?v=h0yLtceT0i4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L&index=2

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I'm running on:

ThiagoDuarte_0-1623240113429.png

 

I think this is the lastest update. 

 

EDIT:

The solution on the video won't work

 

I'm using direct query

In advanced editor I can't see all the columns on my table. Instead I see this:

 

ThiagoDuarte_0-1623240868276.png

 

 

 

Hi, @ThiagoDuarte 

Since you have made changes to the data in the data, it is best to recreate the report.

You can also refer to this related document to edit  M query in advanced editor.

DataSource-Error-Invalid-column-name 

 

 

Best Regards,
Community Support Team _ Eason

Is there any new development in 2025?  I have the same issue after some columns were deleted from a underlying table, and the table in the report uses directquery.  And the deleted columns are not used in the report.

Is it possible to handle it without deleting the table and re-add it back, or without recreating the report?  I tried refreshing the data in the report, and it did not refresh the table structure.  The error stays.

Hello

 

I think that might work but my report is way too big and complex to start from scratch.

 

I did get it to work though. I deleted all the tables that suffered any changes and then I reconected to them(direct query) . After that I recreated all the relationships (on these tables).

 

It works now!

 

Best Regards,

 

Thiago Duarte

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors