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?