Forum

Power Query error -...
 
Notifications
Clear all

Power Query error - DataSource.Error: The process cannot access the file 'C:\xxxx' because it is being used by another process.

5 Posts
2 Users
0 Reactions
39 Views
 KM
(@kasey)
Posts: 27
Eminent Member
Topic starter
 

https://www.myonlinetraininghub.com/vlookup-in-power-query-using-list-functions

Hi

I followed the instructions in the link above and it works perfectly! My issue is I use the 2nd file hence why I get the error. How can I do similar to the above without getting the error?

Thank you!

 
Posted : 02/09/2025 7:17 pm
Riny van Eekelen
(@riny)
Posts: 1301
Member Moderator
 

@kasey

When you connect PQ to data in another file, that other file may not be open when you edit/refresh the queries that connect to that file. You'll get this error:

image

So, make sure that the 'other' file is closed when you work in the file with the queries.

 
Posted : 02/09/2025 8:14 pm
 KM
(@kasey)
Posts: 27
Eminent Member
Topic starter
 

Thanks

My question is how can I solve my issue? What work around can I do? I use both files

I am weak on PQ

 
Posted : 02/09/2025 8:23 pm
Riny van Eekelen
(@riny)
Posts: 1301
Member Moderator
 

@kasey Oh sorry! I though that was obvious. Close the other file, work on the query(ies), Refresh and the error will not occur.

 
Posted : 02/09/2025 9:16 pm
 KM
(@kasey)
Posts: 27
Eminent Member
Topic starter
 

Yes, obviously. I was hoping for a work around

 
Posted : 02/09/2025 9:57 pm
Share: