Connected Systems - a!authorizationLink

Hi there,

I'm following the documentation for intergrating via OAuth as per the below links:

https://docs.appian.com/suite/help/18.1/authorization_link_component.html

https://docs.appian.com/suite/help/18.1/Oauth_connected_system.html

 

Unfortunately it looks like there's something wrong with the documentation as I'm getting a zero key error as per the below error:

Error: "Expression evaluation error: Syntax error. Details: Cannot create an identifier with zero length key"

   a!richTextItem(
                      text: "Microsoft Office 365",
                     link: a!authorizationLink(
                       label: "Authorize",
                       connectedSystem: local!integrationResult.connectedSystem /* If commented interface renders correctly */
                      )
                    ),

 

The local variable is equal as follows: [success:false,result:[statusLine=HTTP/1.1 403 Forbidden, statusCode=403, headers=[Cache-Control:private,Transfer-Encoding:chunked,Content-Type:application/json,request-id:6fc642bb-828c-43cb-8898-6fcc77166d59,client-request-id:6fc642bb-828c-43cb-8898-6fcc77166d59,x-ms-ags-diagnostic:{"ServerInfo":{"DataCenter":"UK South","Slice":"SliceA","Ring":"5","ScaleUnit":"001","Host":"AGSFE_IN_2","ADSiteName":"UKS"}},Duration:54.6198,Strict-Transport-Security:max-age=31536000,Date:Wed, 23 May 2018 15:37:57 GMT], contentType=application/json, body=[error:[code:ErrorAccessDenied,message:Access is denied. Check credentials and try again.,innerError:[request-id:6fc642bb-828c-43cb-8898-6fcc77166d59,date:2018-05-23T15:37:57]]]],error:[title=You are not permitted to perform the requested operation, message=The external system understood the request but refused to authorize it, detail=HTTP/1.1 403 Forbidden],connectedSystem:[Connected System:29212],@attributes:[@anyAttribute:[_dirty:false,_bannerText:,_refresh:]]]

 

Does anyone have any idea how to resolve the above?

  Discussion posts and replies are publicly visible

Parents
  •  

    kdimitrov said:
    "Expression evaluation error: Syntax error. Details: Cannot create an identifier with zero length key"

      

    • This error will occur if you try to declare/use a local variable or RI with syntax error, the two cases which will throw this error are below. Please check if you have declared any locals in your SAIL code like this

    load(
      local!!a: "DOUBLE !! LOCAL VARIABLE NAME",
      local! b: "WHITE SPACE BEFORE LOCAL VARIABLE NAME",
      "TEST"
    )

    • The second error message states that you are not authorized to call the 3rd party system through OAuth2.0 authentication. So please check the 3rd party system wiki or documentation to complete the authorization part.

    Thanks,

    Raghu

Reply
  •  

    kdimitrov said:
    "Expression evaluation error: Syntax error. Details: Cannot create an identifier with zero length key"

      

    • This error will occur if you try to declare/use a local variable or RI with syntax error, the two cases which will throw this error are below. Please check if you have declared any locals in your SAIL code like this

    load(
      local!!a: "DOUBLE !! LOCAL VARIABLE NAME",
      local! b: "WHITE SPACE BEFORE LOCAL VARIABLE NAME",
      "TEST"
    )

    • The second error message states that you are not authorized to call the 3rd party system through OAuth2.0 authentication. So please check the 3rd party system wiki or documentation to complete the authorization part.

    Thanks,

    Raghu

Children