Workflow error: 'supportsDynamicLayers' of undefined or null
I have a pretty simple workflow. Within it I have the GetMapServiceInfo activity. I've got the 2 input arguments for the map service id and layer name. If I set the default values in wf designer the worflow works correctly in my viewer. If I remove the values in desinger and instead set the same values as properties in the workflow dialog in manager, my viewer then throws the following alert: "There was a workflow error running activity: Unable to get property 'supportsDynamicLayers' of undefined or null reference." Any advice? Thanks!
0
-
Hi Lee,
I think that's an ungraceful failure of the activity which would happen when the input map service id is not valid. Can you double check the input map service id and ensure that it exists in the map?
-Kevin0 -
Hi Kevin,
I'm getting the same error when attempting to run a similarly simple workflow. I've double checked the MapServiceID as well as the REST endpoint URL and LayerName. Everything seems to be in order. I did pare down my workflow from a more complex workflow in the code gallery. Is it possible I deleted something important?
-Dan0 -
Try setting the debug flag to true on the activity. It will show you what your inputs for mapserviceid and layer name are. I would then take these and double check against the REST endpoint HTML page. 0 -
When you set the workflow properties in manager, the ID have to be assigned as a number, not a number string. So even though the argument type for the ID is string, you have to assign a number in the properties dialog. So 2 works, but "2" gives this error. Not what you should expect, but it has worked for me 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer