I'm using 2.8.2 but this issue is present in 2.8 and possibly before.
I created a near table and produced an XY To Line feature in a python script. When attempting to use listLayers from a standalone python script OR from the python window in AGP, the XY Line doesn't appear in the returned list. WHY?
I have used export features and saved it as a different name in the defaultGeodatabase and homeFolder as a shp. I shared it as a layer file and loaded it back in using LayerFile. I can return the name by using ListFeatureClasses but try as I have, I can't get it to be listed in listLayers.
I'm trying to automate Overwrite Web Layer and the script demands a layer reference, not just a name.
I'm hoping I'm just overlooking something.