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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.