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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Power BI Service: Data Gateway: Connection Error: Unable to connect to data source {0}

Hello All,

I'm a new to Power BI and learning through the courses available with Udemy. I was trying to create a dataflow in Power BI Service. For the same I have downloaded and configured On Premise Data Gateway.
However when I'm creating a dataflow and trying to connect to the CSV file at my local machine, it gives below error:


An exception occurred: Access to the path 'C:\Users\James\Test123.csv' is denied. (Session ID: 82f13b8e-d2bd-4cb4-8dbd-8ee1f21eb7b9)

 

Also checked Settings > Manage Gateway, there I found below Error Details - 

 

Mogli_0-1639785314592.png

 

Tried all below Options:

1. ReInstalling the Gateway wih updated and latest version (Gateway is already UP and Running)

2. Changing Privacy Level for data sources of gateways to all the 3 options (Public, Private and Organizational)

3. Checked all the local files. They all have full control to all the users.

 

Please let me know what step I'm missing out.

4 REPLIES 4
nitishsh91
Solution Supplier
Solution Supplier

Hi @Anonymous 

 

Instead of using C drive local path, try to use a network path with an account which has got access on path too otherwise just try using on-premises database/api directly.

lbendlin
Super User
Super User

Please provide more details - is this a personal gateway or an enterprise/standard gateway?  Generally you don't want to put data sources on your PC because a standard gateway doesn't know how to get to these files (especially when your PC is switched off 🙂  )

Anonymous
Not applicable

Its a standard gateway. Yes, I agree to that, but this is for practice purpose. Once I get it I know that it would be some DB on some on-prem/cloud server.

These data sources are not comparable. Test it with "some DB on some on-prem/cloud server." . Note that "some" cloud servers do not require gateways if they are visible to the Azure service.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.