Fix Power BI Gateway Rejecting Windows Authentication for Local Excel Files
Question details
The user is unable to refresh a published Power BI semantic model because the on-premises data gateway rejects the Windows authentication credentials for the connected local Excel files.
- Product
- Power BI / Excel
- Device & OS
- not provided
- Scenario
- Publishing and refreshing a Power BI semantic model connected to local Excel files via an on-premises data gateway.
- Observed behavior
- The data gateway rejects the entered Windows username and password as invalid, preventing the dataset from authenticating and refreshing.
Ensure that your on-premises data gateway is fully updated and running on a machine that remains powered on and connected to the network where the Excel files reside.
Verify Gateway Account Permissions and Credential Formatting
Check that the credentials are formatted correctly and that the gateway service account has explicit read access to the local Excel files.
Power BI gateways often reject credentials if the username format does not include the domain or machine name, or if the underlying service account lacks Windows folder permissions to read the local file.
When entering credentials in the Power BI Service data source settings, use the fully qualified domain format. Enter 'DOMAIN\Username' for domain accounts or 'MachineName\Username' for local accounts.
Ensure the gateway is running under a Windows account that has direct file system access. Right-click the folder containing your Excel files, select Properties, go to the Security tab, and verify the gateway account has Read permissions.
Navigate to the gateway settings in Power BI Service, locate your Excel data source, and carefully retype the Windows password to rule out typos or recently expired passwords.
Use WPS Office for Your Data Management Needs
While troubleshooting Power BI gateway connections, consider using WPS Office to manage your local spreadsheets. WPS Office is a lightweight, highly compatible alternative to Microsoft Office that allows you to work seamlessly with your data.
- 1. Download and Install: Get WPS Office from the official website and follow the easy installation prompts.
- 2. Open Your Data Files: Launch WPS Spreadsheet and open your existing .xlsx or .csv files seamlessly.
- 3. Edit and Save: Update your local datasets and save them in standard formats ready for Power BI consumption.

Frequently Asked Questions
Why does Power BI say my Windows credentials are invalid for a local Excel file?
This typically happens if the username is not entered in the 'Domain\Username' format, the password has expired, or the service account running the gateway lacks permissions to access the local file path.
Can I use a personal gateway instead of an enterprise gateway for local Excel files?
Yes. If you are the only one using the dataset and the host machine stays powered on, a Personal Gateway can be used without configuring complex Windows authentication for specific data sources.
How do I grant file access to the Power BI gateway account?
Right-click the folder containing your Excel files, select Properties, go to the Security tab, click Edit, and add the Windows service account (e.g., 'NT SERVICE\PBIEgwService') with Read permissions.




