AdjustDataSources

Title  Update Data Sources

Description

Use this tool to convert the data source of layers in the maps in the current ArcGIS Pro project to a workspace.

Usage

This tool changes the data source of the maps to a new workspace. This will convert between file geodatabase, enterprise geodatabase, and feature services.
When changing from or to a feature service, the layer alias name in the service (with or without spaces) must match the class name alias.
	

Syntax

AdjustDataSources (target_workspace, maps, {update_sr})

Parameter Explanation Data Type
target_workspace Dialog Reference

The new workspace for the layers.

DEWorkspace
maps Dialog Reference

The maps in the current ArcGIS Pro project to update the data source in.

GPMap
update_sr (Optional) Dialog Reference

Use the spatial reference from the first feature class to update the maps spatial reference. The error layers are ignored as they are always in 102100.

GPBoolean

Code Samples

Tags

Credits

Use limitations