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
sohananahid
Post Partisan
Post Partisan

DataSource. Eror: can't access the file, being used by another process?

Hi all: Good day! I have 3 data sources: 2 db tables and 1 local excel file.

When I go to the 'Query Editor' to do some edit: I am getting this error on the local excel file: "DataSource.Error: the process cannot access the file' abc.xlsx' because it is being used by another process." The file is closed, not being used by any other process except by this Power BI dashboard that I am using it as a 3rd data source! 

Could anyone help why the error is being thrown! Much appreciated in advance! 🙂

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Something is using that Excel file. If it is sync'd via OneDrive, OneDrive for Business, or SharePoint, something has it open, even if in a Web View. If all else fails, reboot if some process on your PC has it open. but if someone else has it open on their PC, you will get that error on yours if it is in OneDrive, etc.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
edhans
Super User
Super User

Something is using that Excel file. If it is sync'd via OneDrive, OneDrive for Business, or SharePoint, something has it open, even if in a Web View. If all else fails, reboot if some process on your PC has it open. but if someone else has it open on their PC, you will get that error on yours if it is in OneDrive, etc.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Hello edhance

 

i face the same problem, and yes it's on onedrive, my question is what is the solution? is there any thing else other than using it out of Onedrive?

thanks.

mmmmm

 

i got it now , the data source has to be closed then refresh your report, it worked for me

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.