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?
Hi,
Facing exactly same issue.
1.0 is clearly not an option anymore
but htis regression needs to be fixed
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.
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.