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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ErikSierra7
Frequent Visitor

Power Bi service gateway connection - File connector

I have an excel file that sits on a network drive that I used to source in my Power Bi report. However, when I try to create a connection on our on-prem gateway using the 'File' connector type and service account credentials, it says the credentials are invalid. I've confirmed my windows account, as well as the service account have the correct access using cmd. Does the 'File' connector in Power Bi service support alternate credentials or must they be the user's windows credentials? Thanks!

1 ACCEPTED SOLUTION
tayloramy
Community Champion
Community Champion

Hi @ErikSierra7

 

When creating the connection are you adding the domain before the user? 

 

DOMAIN\USER 

For example, if I was in the domain "company", I would add company\taylor as my username. 

 

If this helped, consider giving some kudos. If I answered your question or helped solve your problem, mark this post as the solution to help futute forum users find it. 

View solution in original post

3 REPLIES 3
v-sshirivolu
Community Support
Community Support

Hi @ErikSierra7 

Thank you for reaching out to the Forum community.

Please note that the File connector in Power BI Service does not support the use of alternate credentials. It will always utilize the Windows account under which the On-premises Data Gateway service is running to access the network share. To resolve this, you should configure the gateway service to run under a service account that has the necessary permissions for the file location, and then restart the service. If you require different credentials for separate shares, you will need to set up additional gateway instances accordingly.

Regards,
Sreeteja.

Hi @v-sshirivolu Thank you for your response. @tayloramy provided the correct solution. When creating a new connection with the File connector, it prompts user to input Windows credentials. I was able to use the service account credentials (with domain\) without needing additional gateway config. Thank you!

tayloramy
Community Champion
Community Champion

Hi @ErikSierra7

 

When creating the connection are you adding the domain before the user? 

 

DOMAIN\USER 

For example, if I was in the domain "company", I would add company\taylor as my username. 

 

If this helped, consider giving some kudos. If I answered your question or helped solve your problem, mark this post as the solution to help futute forum users find it. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors