Select to view content in your preferred language

"Layer" input field on WAB Geoprocessing widget ERROR 000840

399
1
Jump to solution
01-08-2024 11:19 AM
DonMorrison1
Frequent Contributor

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?  

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DonMorrison1
Frequent Contributor

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.

View solution in original post

0 Kudos
1 Reply
DonMorrison1
Frequent Contributor

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.

0 Kudos