AdjustDataSources

Title  Update Data Sources

Description

          

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}, success)

Parameter Explanation Data Type
target_workspace Dialog Reference

<p>The new workspace for the layers.</p>

DEWorkspace
maps Dialog Reference

<p>The maps in the current ArcGIS Pro project to update the data source in.</p>

GPMultiValue
update_sr (Optional) Dialog Reference

<p>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.</p>

GPBoolean
GPBoolean

Code Samples

Environments

workspace