Site Security with Complete Parcel Selection, Buffering, and Report Workflow
I've been able to get the (http://support.geocortex.com/parcel-selection-buffering-and-report-workflow) Complete Parcel Selection, Buffering, and Report Workflow working nicely from the I want to... menu in my Silverlight 1.10 viewer, and it's fantastic. I need now to deploy it to the Internet-facing site. For that I must enable site security, and the trouble is the moment I do so in Essentials and launch it in a browser, everything comes up fine, but when the user clicks the workflow launcher from the I want to... menu, the following Workflow Error occurs:
Exception has been thrown by the target of an invocation.
Workflow 'Parcel Report tool' failed'
Unhandled exception: 'The given key was not present in the dictionary.' in activity '1.576: Assign'.
The given key was not present in the dictionary.
This error does not occur when site security is disabled, so what must I do to allow it to run when site security is enabled? I don't even have map service security enabled yet, though that'll be next once I get this issue resolved.
By the way, I find the error report very unhelpful because I can find no information on how to use the activity number reference, which makes troubleshooting feel like a wild goose chase.
I've managed to get other workflows working in both presence and absence of site security, with a GetCurrentUser filling a UserRole variable, followed by an If condition ensuring UserRole(0) <> "Public Access". My attempt to do the same with this one failed, so I instead tried a condition of
UserRole IS System.DBNull.Value, and that causes no issue in the absence of security.
Will someone please help me on this?
Thank you in advance,
Justin
-
You probably need to use the Get Token activity in your workflow and place it before you try to hit any of your REST services.
0 -
okay, thanks Ryan, but is that the case even when there is no security right now on the map services? I had thought tokens are only for use to handle AGS layer security.
0 -
Hi Justin,
You can type the 1.576 into the Search box at the top of Workflow Designer; if the workflow hasn't changed since the error, that should take you to the particular Assign activity that failed.
I like to rename my activities when the workflow becomes complex so I can track down where it fails. If you change the name to "Assign User Value" or "Assign Spatial Reference" or something appropriate to what you're assigning, it will help you in the future.
Regards,
-Malcolm
0 -
Thanks for the reply, Malcolm. I tried the search you described, but it finds 0 results. I don't see any numbers in the flowcharts, so I don't understand where the Search box is looking to find a match for those. I tried running the model again, this time getting 1.580 in the message, but it, too, comes up empty in the Workflow Designer search. I will keep in mind your suggestion about naming activities.
0 -
Is it required that when Site Security is enabled, I must have layer security enabled as well? Might my lack of layer security explain why this workflow does not work for me when Site Security is enabled?
0 -
What is the impact of enabling Site Security on an existing workflow such as this one? I don't understand why the flick of a switch to enable Site Security makes a workflow fail, when it worked fine before that flick. I still cannot find which Assign activity is failing. Today I even tried version 3.9, but with same result. There must be something more to configure in a workflow when enabling Site Security, so will someone direct me, please?
0 -
I have a similar problem. I have security both on my site and map services. I haven't solved the issue yet of how to download the image for the map(it says the remote server actively refused it). There is a variable in a few of the activities I noticed that is called iCredentials and the only thing I put in that it liked for the variable was: new NetworkCredential("username","password")Unfortunately it still didn't give me access to download the map image but maybe my problem is deeper than that and maybe it might work for you??0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare