An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
There was an error in the data gateway is a generic gateway-side failure. For this type of error, the supported troubleshooting path is:
- Confirm the gateway is on the latest version. Many connectivity and reliability issues are resolved in monthly gateway updates.
- Test the data source from the gateway machine itself. Open Power BI Desktop on the computer where the gateway is installed and try the same connection there. If it fails locally, the gateway refresh or connection creation is unlikely to succeed.
- Check the gateway event logs on the gateway server:
- Open Event Viewer
- Go to Applications and Services Logs
- Select On-premises data gateway service
- Export gateway logs from the gateway app:
- Open the on-premises data gateway app
- Select Diagnostics
- Select Export logs
- If the gateway was reachable but the source could not be accessed, validate the data source definition, server/database values, and credentials.
- If a proxy is used, verify the proxy configuration is consistent and that requests are not being blocked.
- If the gateway was recently configured or changed and shows as unreachable, restart the On-premises data gateway Windows service and retry.
Relevant error patterns from gateway troubleshooting:
- Unknown error in data gateway can occur for different reasons and should be investigated from the gateway machine and logs. The event logs are the primary place to get more detail.
- Invalid connection credentials means the username/password or authentication method does not match the source.
- Cannot connect to the database means the server was reached, but the specified database name or permissions are wrong.
- The gateway can't access the on-premises data source means the service reached the gateway, but the gateway server could not reach the source.
If the local test in Power BI Desktop succeeds but connection creation in the service still fails, narrow the issue to the gateway data source configuration in the Power BI service and review the exported logs for the exact failure around the reported session/request time.
If the issue is not covered by the documented cases, the next step is to create a support ticket.