ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

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_management (in_dataset, {preserve_history})
ParameterExplanationData Type
in_dataset

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

Feature Layer; Table View; 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

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

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

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

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal