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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors