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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jwmarchetti
Regular Visitor

Datasource Parameter - Gateway Connection Problem

I use parameters to define sql datasources so that I can develop against a dev/test db and then switch over to production when development is complete.  I setup gateway connections for both server/db combinations and the change the value of the parameter to alternate between.  This has always worked fine for me in the past.

 

I am currently having a problem connecting to a production server's datasource because the server name has a backslash in it (i.e. Servername\Secondnamepart).  The gateway connection is not being recognized and it appears that is because the PBI services is interpreting the backslash as a double-backslash.

 

I get an error message that the gateway is not configured correctly and the SqlServer connection shows an error that there is no available gateway for:

SqqlServer{"server":"Servername\\Secondnamepart","database":"dbName"}

 

I don't know why the backslash is doubled when the services is trying to identify a gateway connection.  Could somebody please help me with this?

Thanks,

Joe

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

It's probably trying to escape sequence the backslash. You really, really, really should not put back slashes in server names. That is an awful idea.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

That isn't very helpful.  I don't have any control over what the infrastructure team named this server several years ago.  Obviously, if I was naming it I would not insert a backslash in the name.  I was hoping for suggested solutions.  Thanks for commenting though.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors