Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

New Member

Linking Server Account to Server On Premise gateway

Hi All,


Please can you guide me on the correct way to setup a service account on my On prem gateway?


I have created an on prem gateway in DWH using my work email address, the gateway links DWH to MS Azure, Power Bi etc.  


Every month I have to change my AD password were I have to restore the connections to each one of the applications. I am trying to change the gateway account to a service account. 


However I keep getting this error: 


The specified username is invalid.

The specified username is invalid.

at System.DirectoryServices.AccountManagement.UnsafeNativeMethods.IADs.Get(String bstrName)
at System.DirectoryServices.AccountManagement.CredentialValidator.BindSam(String target, String userName, String password)


I cann log into this account and setup a different gateway on another server. Is there something else that I am missing? 

Super User
Super User

Hi @RYousuph 


It would appear that you have to have your new account have the right connection details on the DWH server?

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Power BI Blog



The account has been created in SQL to access the databases.

Hi @RYousuph 


have you created the data source connection in the Power BI Service to connect to your SQL Server with the new SQL account?

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Power BI Blog

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors