I'm trying to create a Geoprocessing REST service that takes a map layer as input and does some processing on the records within the layer. When I create the ArcGIS Online Web Application Builder Geoprocessing widget I check "Select layer from map" for the layer input parameter (parameter type is GPLayer, I've also tried GPFeatureLayer). So far so good. On the widget input form I can select a layer from the map and run the service, but server rejects it with a "ERROR 000840: The value is not a Layer" message. Any ideas on how to make this work?
Solved! Go to Solution.
Circling back on this problem which I figure out many months ago. If my memory doesn't fail me the parameter type must be 'GPFeatureRecordSetLayer' for this to work.
Circling back on this problem which I figure out many months ago. If my memory doesn't fail me the parameter type must be 'GPFeatureRecordSetLayer' for this to work.