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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.