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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
fingalbrad
Helper I
Helper I

DataSource.Error Changed from excel file on network drive to excel file in sharepoint

Hi I have an excel file stored locally on my computer. I have saved the same file to sharepoint and I am trying to change my source from the local file to the share point file in the query editor by clickin on the little cog next to source in the applied steps. I changed the URL to the share point file and open file as excel workbook and I get this error. Any idea what is happening?

 

 

Capture.JPG

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @fingalbrad ,

The way to get excel file in local and in sharepoint is different.

Local file:

1.PNG

Sharepoint:

2.PNG

So, I suggest you change the whole code after Source= to change your data.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @fingalbrad ,

The way to get excel file in local and in sharepoint is different.

Local file:

1.PNG

Sharepoint:

2.PNG

So, I suggest you change the whole code after Source= to change your data.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
d_gosbell
Super User
Super User

So typcially a file on Sharepoint will have a http address like:

 

eg.

http://myserver.com/sites/site1/library/mydocument.xslx

 

You can often change this to a unc style path and then your existing Power Query code will continue working. You do this by replacing the leading "http://" with "\\" and swapping all the forward slashes "/" to backward slashes "\"

 

eg.

\\myserver.com\sites\site1\library\mydocument.xslx

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.