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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
prathyoo
Helper III
Helper III

Sharepoint connector 2.0 and child list items

Because of the performance issue with Sharepoint connector 1.0, we have been trying to switch to version 2.0 of the connector. We have a list that afe organized into folders and list items are within each folder. Connector version 1.0 brings back every item in the list i.e. folders, child folders, child items, grand child items (in sub folders). But the version 2.0 of the connector only brings back the top level folders and without the ability to get the child item records.

 

The version 1.0 is unusable as a simple list of 100 records is taking 10 minutes to refresh. Making any changes to the M-Query and even refreshing the preview takes forever.

 

Is there any solution that we could use?

 

5 REPLIES 5
ThomasElkem
Frequent Visitor

Hi,

Facing exactly same issue.

1.0 is clearly not an option anymore

but htis regression needs to be fixed

prathyoo
Helper III
Helper III

I have resolved the performance issue by followng the steps as mentioned in this videeo -

 

Get SharePoint List Data with Power BI ... Fast - YouTube

 

But, after that the issue was that on publishing the report, the refresh failed with the error - 

 

This dataset includes a dynamic data source. Since dynamic data sources aren't refreshed in the Power BI service, this dataset won't be refreshed. Learn more: https://aka.ms/dynamic-data-sources.

 

Now, after further research I found the blog from Chris Webb - Chris Webb's BI Blog: Web.Contents(), M Functions And Dataset Refresh Errors In Power BI Chris Webb'...

 

Using that, I changed the step Custom1 to use query parameters as follows -

 

Custom1 = Table.AddColumn(#"Changed Type", "Items", each Json.Document(Web.Contents(baseurl& "/items", [Headers=[Accept="application/json"],Query=[#"$skipToken"="Paged=TRUE",p_ID=[Skip],#"$top"="5000"]]))),

 

With this change the refresh error was also resolved.

v-zhangti
Community Support
Community Support

Hi, @prathyoo 

 

Please refer to the following links in the hopes of helping you.
Power Query SharePoint Online list connector - Power Query | Microsoft Learn

Solved: sharepoint folder and list - Microsoft Power BI Community

 

Best Regards,

Community Support Team _Charlotte

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

@v-zhangti  - Our folder is not folders in a Sharepoint Document library but folders in the Sharepoint List.

We have the same problem in a document library as well. If I want to retrieve the information stored on custom columns of files inside a folder, I have to use the 1.0 version of the API, which is too slow.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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