diff --git a/src/Model/Write/Products/Iterator.php b/src/Model/Write/Products/Iterator.php
index <HASH>..<HASH> 100644
--- a/src/Model/Write/Products/Iterator.php
+++ b/src/Model/Write/Products/Iterator.php
@@ -352,6 +352,9 @@ class Iterator extends EavIterator
         $parentIds = array_keys($parentChildMap);
         $result = array_combine($parentIds, array_fill(0, count($parentIds), []));
         foreach ($iterator as $entity) {
+            if (!isset($map[$entity['entity_id']])) {
+                continue;
+            }
             $parentId = $map[$entity['entity_id']];
 
             if ($this->skipEntityChild($entity, $stockMap, $parentId)) {
@@ -528,6 +531,9 @@ class Iterator extends EavIterator
             $type = $types->factory($fakeProduct);
 
             if (!$type->isComposite($fakeProduct)) {
+                foreach ($group as $entityId => $entity) {
+                    $childrenIds[$entityId] = $type->getChildrenIds($entityId, false);
+                }
                 continue;
             }
 
@@ -678,4 +684,4 @@ class Iterator extends EavIterator
         $attributes = $this->filterEntityAttributes($attributes);
         return $attributes;
     }
-}
\ No newline at end of file
+}
stock qty on simple product

This update is for including simple product on getting quantity stock value