repair_layer_source
Repoint a layer's broken data source to a new workspace or dataset path to restore map or table access in ArcGIS Pro.
Instructions
Repoint a layer at a new workspace or dataset to fix a broken source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| new_source | Yes | New workspace (folder/.gdb) or full dataset path. | |
| dataset_name | No | Dataset name inside the new workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |