laptop and a wrench

Bug

Feature layer fails to persist in ArcMap table of contents when added through the AddLayer function in script tool through ArcToolbox and using CURRENT.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM052741
SubmittedJanuary 11, 2010
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.0 Beta
Operating SystemWindows OS
Operating System VersionXP
Version Fixed10.1
StatusFixed

Workaround

Option 1:- If using CURRENT, execute the script from the Python Window instead of ArcToolboxOption 2:- Instead of using CURRENT, access the MXD by file pathOption 3:- If using CURRENT and executing the script via ArcToolbox, add a layer using MakeFeatureLayer tool coupled with the SetParameterAsText method as described in KB31981

Steps to Reproduce

Bug ID: NIM052741

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options