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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

OAuthException - We couldn't parse your query string because it was improperly formatted

Hi,

I am getting this error  (OAuthException - We couldn't parse your query string because it was improperly formatted) . 

This error only occurs in Power BI Service throug on premises gateway.

Screenshot_533.png

But in Power BI desktop it's worked fine.

Error from OP Gateway:

GatewayPipelineErrorCode=DM_GWPipeline_UnknownError
GatewayVersion=
InnerType=OAuthException
InnerMessage=[DataFormat.Error] We couldn't parse your query string because it was improperly formatted.
InnerToString=Microsoft.Mashup.OAuth.OAuthException: [DataFormat.Error] We couldn't parse your query string because it was improperly formatted. ---> Microsoft.Mashup.Engine1.Runtime.ValueException: [DataFormat.Error] We couldn't parse your query string because it was improperly formatted.
at Microsoft.Mashup.Engine1.Library.Uris.UriHelper.CreateQueryRecord(String query, Boolean produceLists)
at Microsoft.Mashup.Engine1.Library.Uris.UriModule.PartsFunctionValue.TypedInvoke(TextValue uri)
at Microsoft.Mashup.Engine1.Runtime.NativeFunctionValue1`2.Invoke(Value arg0)
at Microsoft.Mashup.Engine1.Language.DebugInstruction.Execute(MembersFrame1& frame)
at Microsoft.Mashup.Engine1.Language.FieldAccessInstruction.Execute(MembersFrame1& frame)
at Microsoft.Mashup.Engine1.Language.DebugInstruction.Execute(MembersFrame1& frame)


1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,
Which authentication mode do you use?OAuth2.0 or service principle?

 

If you are using a B2B user for authentication, do other users get the same error when connecting to the same data source?


Best regards,
Joyce

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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