Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

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.



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

  • Anonymous's avatar
    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