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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.