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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Manash27
Frequent Visitor

Power Bi Report unable to refresh linked to Sharepoint Excel

Hello everyone,

I'm encountering a peculiar issue with my published Power BI report. I have a pbix file connected to an Excel file on SharePoint. The report functions flawlessly in Power BI Desktop and refreshes without any problems. However, when I publish it to a workspace, the scheduled refresh fails.

I have other Power BI reports linked to SharePoint that can be refreshed without any issues. There is no issue in datasource credentials and gateway settings.

Error message

 

Data source error: {"error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"Web: Request failed: https://xxxx.sharepoint.com/sites/xxxxxx/Shared Documents/General/RP Forms/Appointments of Safety and BBS-FOD_Champions_xlsx/_api/contextinfo"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.ValueError.DataSourceKind","detail":{"type":1,"value":"Web"}},{"code":"Microsoft.Data.Mashup.ValueError.DataSourcePath","detail":{"type":1,"value":"https://xxxxx.sharepoint.com/sites/xxxxxx/Shared%20Documents/General/RP%20Forms/Appointments%20of%20..."}},{"code":"Microsoft.Data.Mashup.ValueError.Reason","detail":{"type":1,"value":"DataSource.Error"}}],"exceptionCulprit":1}}} Table: Cost center Mapping.

1 REPLY 1
v-jialongy-msft
Community Support
Community Support

Hi @Manash27 

 

Please check the method in the following post:

File Configuration

  • Created an Excel spreadsheet in Excel Online. Saved to a Sharepoint document library. *NOTE* This spreadsheet MUST be formatted as a table to work.
  • Created a PowerBI Report directly in the PowerBI Service website
    • Clicking My Workspace > +Create in the top right corner > Report > Import New Data > Files > Get > Sharepoint - Team Sites > Paste in Sharepoint URL > Connect  > Load the newly created spreadsheet that's saved in the Sharepoint document library

PowerBI Setup

  • After loading in the above, I created a handful of visualizations in the Dataset and the saved as a new report
  • Checking the Schedule Refresh option of the Dataset shows that OneDrive refresh is enabled. Note that Scheduled Refresh was not an option

Testing

  • Went back to the Excel spreadsheet that is saved on Sharepoint Online and added some random data using Excel Online
  • Checked the report about an hour later on the PowerBI Service website and saw that it accurately reflected the changes that were made to the spreadsheet on Sharepoint Online 

Solved: Automatic Refresh not working when connecting to S... - Microsoft Fabric Community

 

 

 

 

 

Best Regards,

Jayleny

 

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

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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