I have created a Python Script Tool that returns a FeatureLayer using the following two lines of code:
arcpy.MakeFeatureLayer_management(scratch_fc, "GeocodedZIPsLayer")arcpy.SetParameterAsText(1, "GeocodedZIPsLayer")This works as expected in ArcMap, and resulting POINT features are added to the map without an issues. When I publish this as a Geoprocessing Service, the service fails, and I see the following error in the server logs:
Invalid return value: GeocodedZIPsLayerWhat is the best practice for returning a FeatureLayer through a REST service? Thank you for the help.
أكثر...
arcpy.MakeFeatureLayer_management(scratch_fc, "GeocodedZIPsLayer")arcpy.SetParameterAsText(1, "GeocodedZIPsLayer")This works as expected in ArcMap, and resulting POINT features are added to the map without an issues. When I publish this as a Geoprocessing Service, the service fails, and I see the following error in the server logs:
Invalid return value: GeocodedZIPsLayerWhat is the best practice for returning a FeatureLayer through a REST service? Thank you for the help.
أكثر...