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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Refresh from Excel file in One Drive For Business

Please help!
My PowerBI Desktop combines SQL query from on-premises SQL Server and definitions taken from Excel file stored in One Drive for Business. Works perfect!
I've installed the on-premises gateway on the SQL Server machine.
When I publish my Desktop model to the service - I have this error in dataset:
 
"Something went wrong
 Your data gateway (Power BI – personal) is offline or couldn't be reached.
Please try again later or contact support. If you contact support, please provide these details."
 
 
When I publish report that only has the SQL queries without OneDriveforBusiness - everything works, I am able to schedule the refresh.
Only when I add the "= Excel.Workbook(Web.Contents(..." query for One Drive for Business - then it shows me the error and I am not able to refresh.
 
Please help - what am I missing?
Thank you
Michael
4 REPLIES 4
Anonymous
Not applicable

 

Please help
My PowerBI Desktop combines SQL query from on-premises SQL Server and definitions taken from Excel file stored in One Drive for Business. Works perfect!
I've installed the on-premises gateway on the SQL Server machine.
When I publish my Desktop model to the service - I have this error in dataset:
 
"Something went wrong
 Your data gateway (Power BI – personal) is offline or couldn't be reached.
Please try again later or contact support. If you contact support, please provide these details."
 
 
When I publish report that only has the SQL queries without OneDriveforBusiness - everything works, I am able to schedule the refresh.
Only when I add the "= Excel.Workbook(Web.Contents(..." query for One Drive for Business - then it shows me the error and I am not able to refresh.
 
Please help - what am I missing?
Thank you
Michael
Anonymous
Not applicable

There is a current limitation within Power BI whereby if you use a Data Gateway for 1 source in a project, you need to use it for all of your sources in that project.

Solution:  Add your one drive file or folder into your On-Premise data gateway data source list

Anonymous
Not applicable

Thanks @Anonymous for your reply.

I've tried to add the data source to my on-prem gateway but I cannot see any option to set OAuth 2 credentials.

I've checked "File", "Web", "Sharepoint" - no OAuth2 option...

Please help...

Thanks!

Michael

Anonymous
Not applicable

Authentication method of Windows is what i've been using.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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