Copy To Data Store (GeoAnalytics)


Copies features from the input to a new feature service in your portal.


  • This tool writes results to ArcGIS Data Store, either the spatiotemporal data store or relational data store.

  • This geoprocessing tool is powered by ArcGIS GeoAnalytics Server. Analysis is completed on your GeoAnalytics Server, and results are stored in your content in ArcGIS Enterprise.

  • When running GeoAnalytics Server tools, the analysis is completed on the GeoAnalytics Server. For optimal performance, make data available to the GeoAnalytics Server through feature layers hosted on your ArcGIS Enterprise portal or through big data file shares. Data that is not local to your GeoAnalytics Server will be moved to your GeoAnalytics Server before analysis begins. This means that it will take longer to run a tool, and in some cases, moving the data from ArcGIS Pro to your GeoAnalytics Server may fail. The threshold for failure depends on your network speeds, as well as the size and complexity of the data. Therefore, it is recommended that you always share your data or create a big data file share.

    Learn more about sharing data to your portal

    Learn more about creating a big data file share through Server Manager


arcpy.geoanalytics.CopyToDataStore(input_layer, output_name, {data_store})
ParameterExplanationData Type

The features to be copied.

Record Set

Name of output feature service.


The ArcGIS Data Store to which the output will be saved. The default is SPATIOTEMPORAL_DATA_STORE. All results stored to the SPATIOTEMPORAL_DATA_STORE will be stored in WGS84. Results stored in a RELATIONAL_DATA_STORE will maintain their coordinate system.

  • SPATIOTEMPORAL_DATA_STOREOutput will be stored in your spatiotemporal big data store. This is the default.
  • RELATIONAL_DATA_STOREOutput will be stored in your relational data store.

Derived Output

NameExplanationData Type

The new feature service in your portal.

Feature Set

Code sample

CopyToDataStore (Python window)

The following Python window script demonstrates how to use the CopyToDataStore tool.

# Name:
# Description: Copy Abandoned Water Line dataset to the relational data store
#				Results will be displayed in your Portal

# Requirements: ArcGIS GeoAnalytics Server

# Import system modules
import arcpy

# Set local variables
inFeatures = ""
outFS = "AbandonedWater"

# Execute Copy to Data Store
arcpy.geoanalytics.CopyToDataStore(inFeatures, outFS, dataStore)


Output Coordinate System

The coordinate system that will be used for analysis. Analysis will be completed in the input coordinate system unless specified by this parameter. For GeoAnalytics Tools, final results will be stored in the spatiotemporal data store in WGS84.

Licensing information

  • Basic: Requires ArcGIS GeoAnalytics Server
  • Standard: Requires ArcGIS GeoAnalytics Server
  • Advanced: Requires ArcGIS GeoAnalytics Server

Related topics