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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
kosv
Regular Visitor

Different Column Names when importing Sharepoint List via OData

I am importing data from a local Sharepoint List with the OData connector in PowerBI Desktop. I receive the column names like 'ID', 'Modified Date' etc and transform the data to change names, remove unwanted rows and so on. 

 

After publishing my report, a colleague wanted to do some adaptions to the report, downloaded the pbix and opened it in PowerBI-Desktop. However, on her machine the data extraction fails because certain columns are not found. The reason is that the column names are suddenly in the local language and for example 'ID' is now 'Id'. We both operate the same version of PowerBI Desktop.

 

Does anyone has an idea what is going on and how to fix it?

1 ACCEPTED SOLUTION
FarhanJeelani
Super User
Super User

Hi @kosv  ,This issue is typically caused by regional settings and localization differences in Power BI Desktop or the underlying SharePoint environment. Even if you both use the same Power BI Desktop version, differences in regional settings (either in Power BI, Windows, or SharePoint) can result in column names being localized when connecting via OData.

How to Fix This:

1. Disable Column Renaming Based on Locale in Power Query:

  • In Power Query Editor, go to File > Options and settings > Query Options.
  • Under Current File > Regional Settings, ensure that the locale is set consistently for both machines.
  • Check the box "Always allow data previews to download in the background" and ensure that the column renaming option is consistent.

Also, look for a setting called "Never rename columns based on locale" (available in the OData feed options). Enable it to prevent automatic column renaming during OData import.

 

2. Manually Force Column Names in Power Query:

In Power Query Editor, use the Table.RenameColumns function to explicitly rename each column after the data is imported, regardless of the locale. For example:

Table.RenameColumns(Source, {{"Id", "ID"}, {"ModifiedDate", "Modified Date"}})

This ensures that no matter the locale, the column names will always be consistent.

 

3. Ensure Regional Settings Match:

  • Verify that both you and your colleague have the same regional settings in:
  • Power BI Desktop (Options > Regional Settings).
  • Windows OS Regional Settings.

SharePoint Language Settings (in SharePoint, check under Site Settings > Regional Settings).

 

4. Recreate OData Connection with Locale Option:

Recreate the OData connection with an explicit Accept-Language header in the OData query if possible.

In Advanced Options while connecting via OData, add the following line to ensure English is enforced:

Accept-Language: en-US

 

5. Avoid Using Auto-Detect Column Types:

In Power Query, disable auto-detect column types and headers if necessary. This avoids unintended changes during refresh.

 

Please mark this post as solution if it helps you. Appreciate Kudos.

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @kosv ,

Agree with FarhanJeelani's reply!
And @kosv , I would like to add a possible solution:
In addition to the display name, a column in a SharePoint list also has an internal name that does not change with the language or regional settings, so you can use the internal name in Power Query to avoid localization issues.
https://learn.microsoft.com/en-us/microsoft-365/community/sharepoint-naming-guidelines#internal-name... 
https://blog.softartisans.com/2009/12/08/list-of-internal-names-for-sharepoint-fields 

You can find the internal name of a column in a SharePoint list by going into the list settings, or by using the SharePoint REST API to get the details of a column, which includes the internal name:
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-r... 

In the Power Query Editor, replace the column names with the internal names. For example, change 

#"Renamed Columns" = Table.RenameColumns(Source, {{"ID", "NewID"}})

into

#"Renamed Columns" = Table.RenameColumns(Source, {{"_ID", "NewID"}})

where _ID is the internal name of the column.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

FarhanJeelani
Super User
Super User

Hi @kosv  ,This issue is typically caused by regional settings and localization differences in Power BI Desktop or the underlying SharePoint environment. Even if you both use the same Power BI Desktop version, differences in regional settings (either in Power BI, Windows, or SharePoint) can result in column names being localized when connecting via OData.

How to Fix This:

1. Disable Column Renaming Based on Locale in Power Query:

  • In Power Query Editor, go to File > Options and settings > Query Options.
  • Under Current File > Regional Settings, ensure that the locale is set consistently for both machines.
  • Check the box "Always allow data previews to download in the background" and ensure that the column renaming option is consistent.

Also, look for a setting called "Never rename columns based on locale" (available in the OData feed options). Enable it to prevent automatic column renaming during OData import.

 

2. Manually Force Column Names in Power Query:

In Power Query Editor, use the Table.RenameColumns function to explicitly rename each column after the data is imported, regardless of the locale. For example:

Table.RenameColumns(Source, {{"Id", "ID"}, {"ModifiedDate", "Modified Date"}})

This ensures that no matter the locale, the column names will always be consistent.

 

3. Ensure Regional Settings Match:

  • Verify that both you and your colleague have the same regional settings in:
  • Power BI Desktop (Options > Regional Settings).
  • Windows OS Regional Settings.

SharePoint Language Settings (in SharePoint, check under Site Settings > Regional Settings).

 

4. Recreate OData Connection with Locale Option:

Recreate the OData connection with an explicit Accept-Language header in the OData query if possible.

In Advanced Options while connecting via OData, add the following line to ensure English is enforced:

Accept-Language: en-US

 

5. Avoid Using Auto-Detect Column Types:

In Power Query, disable auto-detect column types and headers if necessary. This avoids unintended changes during refresh.

 

Please mark this post as solution if it helps you. Appreciate Kudos.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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