CreateMigrationWorkspace

Title  Create Migration Workspace

Description

This tool is used to create a data model and data loading workspace suitable for use with the Data Loading tool.

Usage

          
This tool uses a simple data mapping workbook that has been populated with source/target mappings to extend the data model of an asset package to support the data as defined by the mappings.
Use the 'Create Simple Data Mapping' tool to create a blank source/target mapping workbook.

In the DataMapping workbook, the Exclude Copy Field sheet allows you to bypass adding fields to a target class when the copy field option is checked.  List the target class name(not qualified) and the name of the field that you do not want copied from the source.

License

Standard

Toolset

Data Migration

Syntax

CreateMigrationWorkspace (source_database, asset_package, mapping_spreadsheet, service_territory, output_folder, output_name, {dlt_mapping_table}, {add_missing_fields}, {match_options}, {calc_stats}, {match_subtypes})

Parameter Explanation Data Type
source_database Dialog Reference

The source feature dataset or workspace you want to migrate

GPComposite
asset_package Dialog Reference

The asset package you want to use as your base data model

DEWorkspace
mapping_spreadsheet Dialog Reference

Populated simple data mapping spreadsheet

DEFile
service_territory Dialog Reference

Features from this class will be loaded to the Asset Packages Service Territory class.

DEFeatureClass
output_folder Dialog Reference

Folder to contain the output

DEFolder
output_name Dialog Reference

Name for the newly created files

GPString
dlt_mapping_table (Optional) Dialog Reference

A table that will be used to perform substring matching for datasets, values, and attribute domain coded value descriptions. Use the table to create matches or block them

GPRecordSet
add_missing_fields (Optional) Dialog Reference

Copy fields from the source data that do not exist in the target

GPBoolean
match_options (Optional) GPString
calc_stats (Optional) GPBoolean
match_subtypes (Optional) GPBoolean

Code Samples