Skip to main content

Security token not working in workflow query

Comments

9 comments

  • John Nerge

    If you check debug in your GetMapServiceInfo activity, do you see the token output variable being populated?

    0
  • Permanently deleted user

    Yes, I have the GetMapServiceInfo activity running with debug checked and the token output is populated. The other error I have gotten quite a bit is invalid token but the layer displays fine and it uses the same token.

    0
  • John Nerge

    I haven't seen the token required error be thrown incorrectly before (but that doesn't mean it never does). Does the error tell you which step in your workflow is throwing the error? Query Task and other activities require an input token in order to run; is it possible that one of them is missing your token?

    0
  • Permanently deleted user

    The error occurs in the query tasks. The token that is reveived from the GetMapServiceInfo is read into a variable and this variable is used in the query tasks. This is when I get the invalid token error and I have tried hard coding the token into the query and I get the token required error. I am going to try using generate token task and inputting this into the query so I know the token is not out of date.

    0
  • Permanently deleted user

    Hi Andrew,

    If you're using a version of Essentials prior to 3.14, you should use the Generate Token activity to create a new token in Workflow for those activities that need to connect to ArcGIS Server from the Essentials server (Query Task, etc).  Essentials 3.13 and earlier generate a token "suitable for the client" which won't work in the query task.

    Essentials 3.14 and later generate short-lived tokens which can be used in both the client and the server.  We switched because of a behavior change in ArcGIS Server made it difficult for us to generate the long-lived tokens - and there were also issues with some browsers not supplying sufficient info to use the tokens we generated.  Short-lived tokens avoid both these issues.

    Regards,

    -Malcolm

    0
  • Permanently deleted user

    are you using the runtime modifications to populate your token?  The token cannot be placed within the 'Design Form' section of the Search Form activity, it nees to be assigned in the runtime modification section of the Search Form activity.

    0
  • Permanently deleted user

    Hi Malcolm,

    Thanks for the repsonse. I am using Essentials version 3.14 so it sounds like I need to use the generate token activity. So just to double check, the token that is generated from the token activity will be put into the variable I create for it, than that variable is inputted into the query activity where it says token?

    Andrew

    0
  • Permanently deleted user

    The generate token activity solved the problem. Thanks so much for the help!!

    0
  • Permanently deleted user

    I'm having similar issues to Andrew - working in GE 4.3, modifying the buffer parcels workflow that can be found on the Geocortex support site (code-gallerybuffer-parcel-and-select).

    Our parcels map service is secured through ArcGIS fro server.  Following some instructions on the support site, I have added a GetMapServiceInfo step to the workflow, to access a token generated from an existing site (the site that will primarily use this tool).  Running in debug mode in Workflow Designer, I keep getting 'Token Required' error messages. 

    Any thoughts on how to proceed would be appreciated

    Thanks -

    Allen

    0

Please sign in to leave a comment.