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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Column names not updating for the data getting through ODBC connection

I am using MongoDB ODBC connection as a data source. columns names in my MongoDB collection will be changing frequently. but the Power Bi shows the same column names that are load initially even the all the column names are changed.

3 REPLIES 3
AngelinaHansen
New Member

Open the Transform Data Window > Advanced Editor > Change the api version to 14 the previous version [ApiVersion = 14].   

Anonymous
Not applicable

HI @Anonymous,

In fact, this is a common issue causing by the cache mechanism of power query.

AFAIK, power query will cache previous data structure into query steps, it will return an error for 'column filed keys not matched' if new records did not match with cached structure. You need to check 'change type' and other query steps to fix the column name which updated.

In addition, you can also add a custom step with 'RenameColumns' function to replace the source table name with a default name list, it will prevent small changes on table structure. (column name changes)

    RenameColumns = Table.RenameColumns(Source,List.Zip({Table.ColumnNames(Source),{"OrderDate","Region","Rep","Item","Units","UnitCost","Total"}})),

BTW, you can take a look at the following link to know more bout this:

Datasource column name changed 

Regards,

Xiaoxin Sheng

edhans
Super User
Super User

If you are talking about Power Query in Power BI, did you do a REFRESH ALL to the screen? Power Query caches data to make development faster, but changes on the server may not be reflected, including changes in numbers. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.