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

Query can't use data from file which is open

Hi All,

 

i try to get data from an opened file to my query, but it shows, that "it is being used by another process", so i can't do this. 

 

How do i allow Query to use data from opened filed?

 

Details: 

 

I've got one file "Liste.xlsx", Password-Protected on an SharePoint. I've got my "Query.xlsx" on another SharePoint.

The "Query.xlsx" shall read information from my data source "Liste.xlsx". 

I open it via VBA and then i want my Query to refresh, after all i wanted to close the workbook again to keep it all the time protected. 

 

Does anyone have an idea why it can't be used while file is open?

 

QueryError.png

3 REPLIES 3
otravers
Community Champion
Community Champion

Have a look at this video:

https://www.youtube.com/watch?v=ssqVE3tshXI

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Hi @otravers

 

the video described another problem: when you want to do a refresh in a protected sheet in the same file. But my problem is, that i have an protected file (which i unprotect by using VBA), but then can't be reefreshed anymore, "beacause it is being used by another process"

 

Best regards Marie

otravers
Community Champion
Community Champion

That other file needs to be closed (i.e. not open in Excel) while PQ is querying it.

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

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.

Top Solution Authors