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
agiga
Regular Visitor

Model object names must be non-empty error message

Hi,

 

First time user working with an excel file.  I'm making changes to the query as I clean-up the data for reporting and am getting the message "Model object names must be non-empty" when applying my query changes.

 

Some of the changes I have made include:

- Changing null values to zero

- Removing rows

- Merging columns

- Transposing data

 

Thank you!

15 REPLIES 15
thomas_hess
Advocate I
Advocate I

Have tried a proven Power BI file and the same data source used a month ago when it worked. Now get this error message. My take is, it a Power BI BUG, as usual. Obviously Power BI - however - creates an additional column when importing data from a proven csv-file.

 

Solution: Click on transform data and delete the artificial row at the right end and then apply and save, then it works.

Syndicate_Admin
Administrator
Administrator

If the file shows up blank, then you should download it from MS Teams. Go to your download file. Right click on the downloaded file and select properties. In the top text box with the file name, replace the last value (mine showed .4) to .pbix and that should convert the file type to PowerBi and you can then download it into PowerBi 

Syndicate_Admin
Administrator
Administrator

For those who persistently encounter the error even though you are sure there is no empty headers in Power BI (which happened to me), you must go back to the source instead. For me, it was Excel and I deleted (not just clear) all columns that are not used even though they look empty. Problem solved. 

Bwidener
Frequent Visitor

Basically, this error is saying that you can't have empty column headers. Find all of your columns that are empty and delete them from your excel sheet first. 

Yggdrasill
Responsive Resident
Responsive Resident

One of your column might not have any name. You can give the colum a name in the query editor and try again.

One easy way to spot a column without a name is to pick "Choose Columns" from the "Home" Tab - You'll see a blank column which is the root of your problem.

linners
Regular Visitor

Hi Had same error msg. It turned out to be a result of a pivoting action done with a large api dataset in Query creating a new column with no header. Removed column and error fixed.

RickW3b
New Member

I had this error today.

From a db export in xls format 

There was an extra blank column that i deleted

Anonymous
Not applicable

This was the issue on mine too. Thanks for the info.
aadit042
New Member

Hi, 

 

I am getting same error. 

 

I tried deleting the last changes I have made. But the issue is still there. 

Clarita
Advocate I
Advocate I

Hello,

I had got the same error. The cause was that I promoted first row as header, but in a couple of columns it was empty, so I got the error. I renamed the missing columns and it was solved.

Hope it helps.

Same thing happened to me, but with a merge that created a column without name.

No horse with no name, no column without name either.

 

Jose

Anonymous
Not applicable

This seems like it could also be the reason I am getting the error message....new to Power BI and this was helpful. I hope it works! Thanks for posting and responding.
mahimabedi
Responsive Resident
Responsive Resident

Facing the same issue. Any update on this?

I ran into the same issue tonight. I went back into "edit queries" and removed the last few changes I made (using the "x" by the applied steps), to the last know good step.  Then I made one change at a time closing and applying each time.  Until everything worked.

 

I hope that works for you.

ankitpatira
Community Champion
Community Champion

@agiga May I ask where are you making these changes. If you've used PBI dekstop to connect to data source then changed columns in data source and you try to refresh in powerbi it will not work. I would suggest you import raw data source as it is, and make below changes you've mentioned in powerbi via query editor.

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.