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 for 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

Disable Archiving

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

Summary

Disables archiving on a geodatabase feature class, table, or feature dataset.

Usage

  • Archiving is only supported on enterprise geodatabases. File and personal geodatabases do not support archiving.

Syntax

DisableArchiving(in_dataset, {preserve_history})
ParameterExplanationData Type
in_dataset

Geodatabase feature class, table, or feature dataset for which archiving will be disabled.

Table; Feature Class; Feature Dataset
preserve_history
(Optional)

Determines if records that are not from the current moment will be deleted or preserved.

If the table or feature class is versioned, the history table or feature will become available.

For nonversioned data, a new table or feature class will be created that contains the history information. The name of the new dataset will be the same as the input with an _h appended.

  • PRESERVE —Records that are not from the current moment will be preserved. This is the default.
  • DELETE —Records that are not from the current moment will be deleted.
Boolean

Derived Output

NameExplanationData Type
out_dataset

The updated input dataset.

Table; Feature Class; Feature Dataset

Code sample

DisableArchiving example 1 (Python window)

The following Python window script demonstrates how to use the DisableArchiving tool in immediate mode.

import arcpy
arcpy.DisableArchiving_management("Database Connections//sam.hills", "PRESERVE")
DisableArchiving example 2 (stand-alone script)

The following script demonstrates how to use the DisableArchiving tool in a stand-alone script.

# Name: DisableArchiving_Example.py
# Description: Disable archiving on a dataset

# Import system modules
import arcpy

# Set local variables
in_dataset = "C:/Data/connections/intense.sde/intense.carbine.bike_routes"

# Run program
desc = arcpy.Describe(in_dataset)
if desc.isArchived == True:
  arcpy.DisableArchiving_management(in_dataset)
  print('Successfully disabled archiving on: {0}'.format(in_dataset))
else:
  print('Archiving has already been disabled.')

Environments

  • Current Workspace

Licensing information

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

Related topics

  • An overview of the Archiving toolset
  • Enabling archiving
  • Disabling archiving
  • The archive process

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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