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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
josem
New Member

Service cannot reach gateway Status code: BadRequest

I installed on-site data gateway successfully and after installing, I logged in to register gateway but I got the message:   The service cannot reach the gateway. I can confirm that I can access internet from this server (via proxy server) and all ports are open.

 

Full error message below:

 

The service cannot reach the gateway.
Request error: Id: 'ddfbb5c2-985c-4638-9bc6-a6dbf6a52e51', Status code: 'BadRequest', Timestamp: '08/10/2016 06:32:28 +00:00', ErrorCode: 'DM_GWPipeline_UnknownError', Detail: ''
at Microsoft.PowerBI.DataMovement.ExternalClient.PowerBIDataMovementClientExtensions.<EnsureSuccessfulDMMSRequest>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.PowerBI.DataMovement.ExternalClient.PowerBIDataMovementClientExtensions.<DiscoverUnifiedGatewayStatusAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.PowerBI.DataMovement.EnterpriseGatewayConfigurator.ConfiguratorClientExtensions.<DiscoverUnifiedGatewayStatusAsyncRetry>d__a.MoveNext()

2 REPLIES 2
josem
New Member

I have successfully installed On-premises data gateway but after installation, I logged in to register Gateway and during configuration, I got the message: The service cannot reach the gateway."   Complete error message is below:

 

The service cannot reach the gateway.
Request error: Id: 'ddfbb5c2-985c-4638-9bc6-a6dbf6a52e51', Status code: 'BadRequest', Timestamp: '08/10/2016 06:32:28 +00:00', ErrorCode: 'DM_GWPipeline_UnknownError', Detail: ''
   at Microsoft.PowerBI.DataMovement.ExternalClient.PowerBIDataMovementClientExtensions.<EnsureSuccessfulDMMSRequest>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.PowerBI.DataMovement.ExternalClient.PowerBIDataMovementClientExtensions.<DiscoverUnifiedGatewayStatusAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.PowerBI.DataMovement.EnterpriseGatewayConfigurator.ConfiguratorClientExtensions.<DiscoverUnifiedGatewayStatusAsyncRetry>d__a.MoveNext()

@josem

 

According to the official documentation Troubleshooting the On-Premises Data Gateway:


Error: Power BI service reported local gateway as unreachable. Please restart the gateway and try again.

At the end of configuration, the Power BI service will be called again to validate the gateway. The Power BI service does not report the gateway as live. Restarting the windows service may allow the communication to be successful. You can collect, and review, the logs as mentioned above to get more details.


So please update the gateway into latest version, restart the gateway and try again. Following is how we can restart the gateway from the command prompt:

  1. On the machine where the enterprise gateway is running, launch an admin command prompt.
  2. Use the following command to stop the service.
    net stop PBIEgwService
  3. Use the following command to start the service.
    net start PBIEgwService

 

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.