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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.