Forum Discussion

Purva_2504's avatar
Purva_2504
New Member
2 months ago
Solved

Power BI Service Refresh Failing for Dynamic SharePoint Web.Contents (Works in Desktop)

Dear Microsoft Team,   I’m facing an issue with Power BI Service refresh when using dynamic SharePoint APIs via Web.Contents, while the same dataset refreshes successfully in Power BI Desktop. �...
  • v-saisrao-msft's avatar
    v-saisrao-msft
    2 months ago

    Hi Purva_2504,

    The fact that the query refreshes in Power BI Desktop but fails in the Service suggests the issue may be with how the Service handles dynamically built SharePoint paths, rather than with authentication. Even if TenantRoot and RelativePath are fixed, the Service may still treat the source as dynamic when RelativePath values are assembled from site URLs retrieved during query execution. As a troubleshooting step, hard-code a single project site path in RelativePath and test the refresh in the Service. If that works, it would indicate that dynamic path generation is contributing to the refresh failure.

     

    Thank you.