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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Different api version missing some folder.

Hi,

with api 14 with code below, it is missing LGU+ contents in the folder. 

 

jeongkim_0-1751457910835.png

let
Source = SharePoint.Contents("https://nokia.sharepoint.com/sites/korea-pmo-pbi-data-repository", [ApiVersion = 14]),
#"Documents" = Source{[Name="Documents"]}[Content],
#"KR Cell Status" = #"Documents"{[Name="KR Cell Status"]}[Content],

 

 

wherease, api 15, it is not missing any. 

The reason I tried it with 14 was I heard 14 might not missing all the contents and better, but not sure. 

 

My SP site was created in 2023. Should I keep using api version 15? 

 

jeongkim_1-1751458076135.png

 

let
Source = SharePoint.Contents("https://nokia.sharepoint.com/sites/korea-pmo-pbi-data-repository", [ApiVersion = 15]),
#"Shared Documents" = Source{[Name="Shared Documents"]}[Content],
#"KR Cell Status" = #"Shared Documents"{[Name="KR Cell Status"]}[Content],

1 ACCEPTED SOLUTION
burakkaragoz
Super User
Super User

Hi @Anonymous ,

 

Thanks for the detailed explanation and screenshots — they really help clarify the issue.

What you're seeing is actually a known behavior difference between API version 14 and 15 in the SharePoint.Contents function.

Here’s what’s likely happening:

  • API 14 was designed for compatibility with older SharePoint structures and sometimes misses modern folders or libraries, especially in newer SharePoint Online sites (like yours, created in 2023).
  • API 15 is the newer and more reliable version for modern SharePoint sites. It handles modern document libraries, nested folders, and metadata more consistently.

Even though some sources suggest API 14 might be more stable, in practice:

  • It can fail to enumerate certain folders (like your LGU+ folder).
  • It may not fully support modern SharePoint features introduced in recent years.

Recommendation:

Stick with API version 15 — especially since your site is relatively new and you're seeing complete results with it. Unless you have a specific legacy compatibility requirement, API 15 is the safer and more future-proof choice.

Let me know if you want help optimizing your query structure or filtering specific folders dynamically.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.


This response was supported by AI for translation and text editing.

View solution in original post

1 REPLY 1
burakkaragoz
Super User
Super User

Hi @Anonymous ,

 

Thanks for the detailed explanation and screenshots — they really help clarify the issue.

What you're seeing is actually a known behavior difference between API version 14 and 15 in the SharePoint.Contents function.

Here’s what’s likely happening:

  • API 14 was designed for compatibility with older SharePoint structures and sometimes misses modern folders or libraries, especially in newer SharePoint Online sites (like yours, created in 2023).
  • API 15 is the newer and more reliable version for modern SharePoint sites. It handles modern document libraries, nested folders, and metadata more consistently.

Even though some sources suggest API 14 might be more stable, in practice:

  • It can fail to enumerate certain folders (like your LGU+ folder).
  • It may not fully support modern SharePoint features introduced in recent years.

Recommendation:

Stick with API version 15 — especially since your site is relatively new and you're seeing complete results with it. Unless you have a specific legacy compatibility requirement, API 15 is the safer and more future-proof choice.

Let me know if you want help optimizing your query structure or filtering specific folders dynamically.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.


This response was supported by AI for translation and text editing.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.