AnsweredAssumed Answered

Max number of features in an input FeatureSet?

Question asked by trbryan on Apr 11, 2014
Latest reply on Sep 13, 2017 by JQuinn-esristaff
We have a geoprocessing service with the following signature:

Parameter: Features 
Data Type: GPMultiValue:GPFeatureRecordSetLayer 
Display Name Features 
Description: Input feature set. 
Direction: esriGPParameterDirectionInput 
Default Value: 
Parameter Type: esriGPParameterTypeRequired 
Category: 

Parameter: Output 
Data Type: GPDataFile 
Display Name Output 
Description: 
Direction: esriGPParameterDirectionOutput 
Default Value: 
Parameter Type: esriGPParameterTypeDerived 
Category: 


This GP service converts all the FeatureSets in the input to one shapefile.  The actual Python code for the service is dead-simple:
import sys, os, arcpy

features = arcpy.GetParameter(0)
output = os.path.join(arcpy.env.scratchWorkspace, "ssexport.shp")    
arcpy.CopyFeatures_management(features, output)    
arcpy.SetParameter(1, output)


We are calling this service with an array of one FeatureSet. That FeatureSet has N features.  The service runs properly when N <= 2000, but when the number of features in the FeatureSet exceeds 2000, the GP script fails with "The workspace is not connected."

There seems to be a limit of 2000 on the number of features in an input feature set.  Note that this IS NOT the well-known 1000 feature output limit.  Our research in the docs and online reveals no mention of such an input limit, and our careful search of the entire ArcGIS Server configuration directory reveals no server setting for this input limit.

Can someone speak to the existence of this limit and suggest a way to change or circumvent it?

Many thanks -

Todd

Outcomes