Workflow Designer - Geocode Activity
-
I am trying to create a workflow which passes a address to a geocode activity.
However, whenever the geocode activity is initated I get an error saying:
"Exception has been thrown by the target of an invocation. Workflow '[Workflow Name]' failed Aborted exception: 'Required parameter is null or empty. Parameter name: AddressToLocationParameters.Address'.
I'm confused because there is no required input in workflow designer for an 'Address' parameter - am I missing something?
Regards
Sam
0 -
The 'AddressToLocationParameters.Address' refers to a parameter that is used internally to run the geocoder. When the Geocode activity runs we take all of the input parameters from the activity and pass them off to the geocode service. You'll see that specific error message if there are no input parameter values supplied, or if all the input parameter values are null or empty strings.
--Ryan
0 -
Yes - logically.
What I want to know is how to specify the parameters given that the task only has two parameters when I drag the item on to the workflow designer Geocode Service URL and Results.
Where do you specify the "Address" etc?
0 -
After you enter the URL to your geocoder (for example: (http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer) http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer ) click the refresh button next to it. This will obtain the list of supported parameters and present them in the designer.
--Ryan
0 -
Gotcha - I was missing something.
Didn't realize that you needed to click the refresh button.
Is this something that should be put in the Workflow Designer documentation?
Thanks for your help.
0 -
Hi Sam,
Good call. I've updated the documentation to include a note about this.
--Ryan
0 -
I just spent some time spinning my wheels on this also. It's not very intuitive. Another "gotcha" is that you can't use an Argument or Variable in the Geocode Service Url field - which means it needs to be hard-coded into the activity. Plus, when you type in the url - do NOT encapsulate it with double quotes. I had to piece this info together by looking at the sample workflow and this post.
I'd suggest the help on the activity call out the no variable/argument and double quote info as well if those are known limitations.0
Please sign in to leave a comment.
Comments
7 comments