The subLayerIds will always be null if it is not a parent layer(meaning that the layer is not a grouped layer). You should check if the parentLayerId is not null before worrying about subLayerIds. Reply 1 Kudo by BrianFoley1 09-13-2016 10:47 AM The parentId is -1...