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
GiantsFan1989
Frequent Visitor

PowerBI Semantics Model - Error When Refreshing

Hi All,

 

I am new to PowerBI and, for the most part, self taught.  I have created a few reports in the PowerBI App and published the reports to my personal workspace to test functionality.  When I try to refresh the data (the data is held on a company SharePoint) from the semantics model, I get the following error message each time - "Scheduled refresh is disabled because at least one data source is missing credentials. To start the refresh again, go to this dataset's settings page and enter credentials for all data sources. Then reactivate scheduled refresh."

 

When I click on the Semantics Model settings and go to the Data Source Credentials, it is greyed out.  I am attaching a bunch of screenshots to show you the data source settings in my .pbix file and the connections page on the Desktop site.

 

Is this a permissions problem?  Is it an issue with the path name?

 

SharePoint Excel File .pbix permissionsSharePoint Excel File .pbix permissionsConnection errorConnection errorSharePoint website .pbix permissionsSharePoint website .pbix permissionsSemantics Model Data source connection greyed outSemantics Model Data source connection greyed outConnections settings greyed outConnections settings greyed out

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @GiantsFan1989 

Based on the first screenshot, Power BI is connected to the local copy of the file stored in SharePoint. You will need to connect to the version stored in SharePoint and then republish the pbix.  You will need to change your Source applied step from

Excel.Workbook(File.Contents("localpath.xlsx"), null, true)

to

Excel.Workbook(Web.Contents("sharepointpath.xlsx"), null, true)

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

7 REPLIES 7
danextian
Super User
Super User

Hi @GiantsFan1989 

Based on the first screenshot, Power BI is connected to the local copy of the file stored in SharePoint. You will need to connect to the version stored in SharePoint and then republish the pbix.  You will need to change your Source applied step from

Excel.Workbook(File.Contents("localpath.xlsx"), null, true)

to

Excel.Workbook(Web.Contents("sharepointpath.xlsx"), null, true)

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

This worked.  Thank you!

MasonMA
Solution Sage
Solution Sage

Weird. This is usually how i set it up below, but for gateway etc. we have platform team and it's usually their responsibility to configure them. 

MasonMA_1-1751488000094.png

 

I may have to get my data analytics or IT team involved.  Is that on the desktop site?

Desktop site? Admin/IT may configure this on their Azure Portal, but for me it's in the setting of my semantic model:) 

MasonMA
Solution Sage
Solution Sage

@GiantsFan1989 

You may change the Credential type under 'Edit Permission' to 'Organizational Account' and give it another try.

Switched, re-published the report, same result unfortunately.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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