DataSource.Error: Could not find a part of the path

Plukey

Board Regular
Joined
Apr 19, 2019
Messages
138
Office Version
  1. 2016
Platform
  1. Windows
NOTE: I'm the owner of a project, but recently moved to a different department. I'm no longer on their shared drive but, still can access it. I'm helping them out till they train someone to take over the reports. Meanwhile when I refresh the Query connections from my PC from a different drive it gives that error listed above. A co-worker that is on the original drive/Path can update with no issues. Is there any known reason that Power Query would lose the ability to connect to a file from a different drive/ PC?

Example: The 'G:\ is department specific & I'm no longer able to use (G)

original 'G:\ departmentXXX\part of the Path
My current 'H:\departmentXXX\part of the Path

When I update it says it cant find 'G:\departmentXXX\part of the Path but if i change it to 'H:\departmentXXX\part of the Path it'll update. Just not sure if that will prevent them from updating.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hey Plukey
It will prevent them from updating, You need to use true paths in your code not drives
for instance:
Instead of
K:\Data\Milestones\Foxnews.txt
Use
\\TheServername\MasterData\Data\Milestones\Foxnews.txt

This way your code will never have to rely on drive names to run its code
 
Upvote 0
Solution

Forum statistics

Threads
1,223,675
Messages
6,173,749
Members
452,533
Latest member
Alex19k

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top