Update Data Loading Workspace Schema (Data Management)

Summary

Creates a copy of the Data Loading Workspace and updates all the mapping and domain workbooks.

Usage

  • A copy of the Data Loading Workspace folder will be created and updated. The existing Data Loading Workspace will not be modified.

Parameters

LabelExplanationData Type
Data Reference Workbook

The path to Data Reference Workbook defining the data source, target, and mapping workbook paths.

File

Derived Output

LabelExplanationData Type
Data Loading Workspace

The path to the updated the Data Loading Workspace folder.

Workspace

arcpy.management.UpdateDataLoadingWorkspace(in_workbook)
NameExplanationData Type
in_workbook

The path to Data Reference Workbook defining the data source, target, and mapping workbook paths.

File

Derived Output

NameExplanationData Type
out_loading_workspace

The path to the updated the Data Loading Workspace folder.

Workspace

Code sample

UpdateDataLoadingWorkspace example 1 (Python window)

The following Python window script demonstrates how to use the UpdateDataLoadingWorkspace function in immediate mode.

import arcpy
arcpy.management.UpdateDataLoadingWorkspace("C:/data/DataLoadingWorkspace/DataReference.xlsx")
UpdateDataLoadingWorkspace example 2 (Python window)

The following script demonstrates how to use the UpdateDataLoadingWorkspace function in a stand-alone script.

# Name: UpdateDataLoadingWorkspace.py
# Description: Create a copy of a Data Loading Workspace and update all mapping
#              and domain workbooks.

# Import system modules
import arcpy

# Set local variables
workbook = "C:/data/DataLoadingWorkspace/DataReference.xlsx"

arcpy.management.UpdateDataLoadingWorkspace(in_workbook=workbook)

Environments

This tool does not use any geoprocessing environments.

Related topics