I have a GP widget that allows a user to select data layers to be clipped and zipped to a particular extent, in my case, by county. I can successfully have this GP service run if i submit the job through the REST endpoint. I have to submit my layers with the following syntax for my 'layers_to_clip' parameter: ['Layer1','Layer2']. The parameter that selects the county, based on an input list, passes fine.
When I try to run the GP service in Flex through the GP widget, it returns an error. My config file has multivalue:string (something I found the hard way) with a choicelist of layers. When I select more than one layer in my Flex widget interface, I get the error "Problem esriJobFailed Failed." message.
The messages XML in the failed job folder has the Layers_to_Clip input parameter as follows: "Layers to Clip: Dataset 'Layer1';'Layer2' does not exist or is not supported". which leads me to believe that the Flex GP widget does not use the correct syntax to pass a multivalue string list. Can anyone confirm this? How can I get around this?
FWIW, I can get the widget to 'work' if I only select one layer from my list. I say 'work' in quotes since I still cannot see/save my output ZIP file. But I will tackle that issue when I can successfully select more than one layer to download.
Charlene