The List Layers tool produces inconsistent or empty lists.
Last Published: February 22, 2017ArcGIS for Desktop
Bug ID Number
January 28, 2015
March 30, 2022
ArcGIS for Desktop
Operating System Version
This issue was not reproducible when tested by the development team. Issues may be given this status when they cannot be reproduced or are no longer relevant in a development version of the software, but a specific fix was not installed to address the issue. The issue's Additional Information section may contain further explanation.
cannot reproduce in 10.5.1
Use the Topo to Raster tool and the Make Raster Layer tool to add a raster layer into the Table Of Contents. The list produced by the ListLayer function contains the raster created by the Make Raster Layer tool. The drawback to this method is that there are two rasters in the Table Of Contents after the code has finished executing.The List Raster function produces a list containing the raster created by the Topo to Raster tool without having to use the Make Raster Layer tool. The drawback to this method is that users are unable to select non-raster list features with this function alone.