Select to view content in your preferred language

Error running Add Spatial Join tool more than once on same target layer

661
2
12-27-2023 11:50 AM
Labels (3)
JoshMakesMaps
Regular Contributor

*UPDATE*:

Confirmed BUG by ESRI: BUG-000164073

 

Description:

Add Spatial Join tool fails on subsequent runs when attempted on same target layer.

Steps to Reproduce:

  1. Run Add Spatial Join successfully on a target layer.
  2. Remove all joins from the target layer.
  3. Attempt to run Add Spatial Join again on the same target layer.

Observed Behavior:

Receive error "ERROR 000210: Cannot create output C:\Users\...\scratch.gdb\target_layer_AddSpatialJoin".

Expected Behavior:

  • The Add Spatial Join tool should run successfully again on the same target layer.
  • Or at least display a warning if the issue is related to the formatting of the layer name.

Notes:

  • Issue persists after restarting ArcGIS Pro or re-adding layers.
  • Seems related to special characters in layer names (e.g. periods in naming format: "Layer.Name").
  • Can work around by removing special characters from target layer name before re-running tool.
  • This is mainly an issue when creating automation tools, as the user would usually not have the option to alter the target layer name.

Environment:

  • ArcGIS Pro 3.1.3
  • Windows 10 Enterprise 21H2
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

Can't reproduce using Pro 3.2 and the add spatial join and remove joins from ArcToolbox


... sort of retired...
JoshMakesMaps
Regular Contributor

Good to know, thanks Dan

0 Kudos