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

Register As Versioned

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Registers an enterprise, workgroup, or desktop geodatabase dataset as versioned.

Learn more about how to register data as versioned

Usage

  • Versioning tools only work with datasets in an enterprise, workgroup, or desktop geodatabase. File and personal geodatabases don't support versioning.

  • Registering a feature dataset as versioned registers all feature classes in the feature dataset as versioned.

  • The input dataset must be from a database connection established as the data owner.

  • Archive-enabled datasets cannot be registered as versioned. If you've already enabled archiving on your data but you also want to register your data as versioned, you must first disable archiving, register the data as versioned, and re-enable archiving.

Syntax

arcpy.management.RegisterAsVersioned(in_dataset, {edit_to_base})
ParameterExplanationData Type
in_dataset

The dataset to be registered as versioned.

Table View; Feature Dataset
edit_to_base
(Optional)

Specifies whether edits made to the default version will be moved to the base tables.

  • NO_EDITS_TO_BASE —The dataset will not be versioned with the option of moving edits to base. This is the default.
  • EDITS_TO_BASE —The dataset will be versioned with the option of moving edits to base.
Boolean

Derived Output

NameExplanationData Type
out_dataset

The updated input dataset.

Table View; Feature Dataset

Code sample

RegisterAsVersioned example (stand-alone script)

The following stand-alone script demonstrates how to use the RegisterAsVersioned tool to register a dataset as versioned.

# Name: RegisterAsVersioned_Example.py
# Description: Registers dataset as versioned

# Import system modules
import arcpy

# Set local variables
datasetName = "c:/Connections/ninefour@gdb.sde/ninefour.GDB.ctgFuseFeature"

# Execute RegisterAsVersioned
arcpy.RegisterAsVersioned_management(datasetName, "NO_EDITS_TO_BASE")

Environments

  • Current Workspace

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics

  • An overview of the Versions toolset
  • An overview of traditional versioning
  • The version editing process
  • A quick tour of reviewing conflicts
  • What is a version?
  • Version scenarios
  • Register and unregister data as versioned

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