AnsweredAssumed Answered

group layer not iterable

Question asked by mtharol on Aug 9, 2017
Latest reply on Aug 10, 2017 by mtharol
for layer in m.listLayers():
    if layer.isGroupLayer and == "AerialLayers":
        for subLayer in layer:

I use to be able to iterate the groupLayer with arcpy.mapping but now with i get the following error:
TypeError: 'Layer' object is not iterable


Any insights appreciated.