ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

RecordSet

  • Summary
  • Discussion
  • Syntax
  • Properties
  • Method Overview
  • Methods
  • Code sample

Summary

RecordSet objects are a lightweight representation of a table. They are a special data element that contains not only schema but also the data. The RecordSet object is also how tables are sent and received from the server.

Discussion

Note:

If loading a table into a new RecordSet and modifying the RecordSet with a geoprocessing tool that modifies the input like Calculate Field or an arcpy function like UpdateCursor, the original table will also be modified.

Syntax

 RecordSet  ({table})
ParameterExplanationData Type
table

Table to be loaded into the RecordSet object.

String

Properties

PropertyExplanationData Type
JSON
(Read Only)

Returns an Esri JSON representation of the geometry as a string.

Tip:

The returned string can be converted to a dictionary using the json module's loads function.

String

Method Overview

MethodExplanation
load (table_path)

Import from a table.

save (table_path)

Export to a table.

Methods

load (table_path)
ParameterExplanationData Type
table_path

The table to be imported.

String
save (table_path)
ParameterExplanationData Type
table_path

The output table to be created.

String

Code sample

RecordSet example

Import a server toolbox; get the recordset from the server tool's specified parameter.

import arcpy

# Add a custom server toolbox
arcpy.ImportToolbox("http://myserver/arcgis/services;Geocode")

# Get recordset from server tool's first parameter to use as schema
in_recordset = arcpy.GetParameterValue("GeocodeAddress", 0)

Related topics

  • Working with feature sets and record sets
  • FeatureSet

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal