logo
search
Others

Fix Power BI Gateway Rejecting Windows Authentication for Local Excel Files

Maira MehtabMaira Mehtab Sep 24, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Format Username Correctly

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.

2
Check File Path Access

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.

3
Re-enter Credentials

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.

Microsoft Community Support: If the issue persists, post the complete error logs and gateway setup details in the Microsoft Fabric Community Power BI forums, as this is a specific Microsoft Power BI configuration issue.
Free Microsoft Office alternative

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. 1. Download and Install: Get WPS Office from the official website and follow the easy installation prompts.
  2. 2. Open Your Data Files: Launch WPS Spreadsheet and open your existing .xlsx or .csv files seamlessly.
  3. 3. Edit and Save: Update your local datasets and save them in standard formats ready for Power BI consumption.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight design ensures fast opening and editing of large datasets.Familiar user interface requires no learning curve.Free to use with comprehensive spreadsheet functionalities.
microsoft office alternative - wps office

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.