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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.