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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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