TypeError: Argument 1 passed to Magento\InventoryIndexer\Model\ResourceModel\GetStockItemDataCache::execute() must be of the type string, null given, called in /var/www/html/vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Helper/Stock/AdaptAssignStatusToProductPlugin.php on line 91 and defined in /var/www/html/vendor/magento/module-inventory-indexer/Model/ResourceModel/GetStockItemDataCache.php:39 Stack trace: #0 /var/www/html/vendor/magento/module-inventory-configurable-product/Plugin/CatalogInventory/Helper/Stock/AdaptAssignStatusToProductPlugin.php(91): Magento\InventoryIndexer\Model\ResourceModel\GetStockItemDataCache->execute() #1 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(121): Magento\InventoryConfigurableProduct\Plugin\CatalogInventory\Helper\Stock\AdaptAssignStatusToProductPlugin->beforeAssignStatusToProduct() #2 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\CatalogInventory\Helper\Stock\Interceptor->Magento\Framework\Interception\{closure}() #3 /var/www/html/generated/code/Magento/CatalogInventory/Helper/Stock/Interceptor.php(23): Magento\CatalogInventory\Helper\Stock\Interceptor->___callPlugins() #4 /var/www/html/vendor/magento/module-catalog-inventory/Observer/AddInventoryDataObserver.php(37): Magento\CatalogInventory\Helper\Stock\Interceptor->assignStatusToProduct() #5 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\CatalogInventory\Observer\AddInventoryDataObserver->execute() #6 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod() #7 /var/www/html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch() #8 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch() #9 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(581): Magento\Framework\Event\Manager\Proxy->dispatch() #10 /var/www/html/vendor/magento/module-catalog/Model/Product.php(1106): Magento\Framework\Model\AbstractModel->_afterLoad() #11 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(605): Magento\Catalog\Model\Product->_afterLoad() #12 /var/www/html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(1679): Magento\Framework\Model\AbstractModel->afterLoad() #13 /var/www/html/vendor/magento/framework/EntityManager/Observer/AfterEntityLoad.php(34): Magento\Catalog\Model\Product\Interceptor->afterLoad() #14 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\Framework\EntityManager\Observer\AfterEntityLoad->execute() #15 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod() #16 /var/www/html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch() #17 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch() #18 /var/www/html/vendor/magento/framework/EntityManager/EventManager.php(51): Magento\Framework\Event\Manager\Proxy->dispatch() #19 /var/www/html/vendor/magento/framework/EntityManager/Operation/Read.php(119): Magento\Framework\EntityManager\EventManager->dispatchEntityEvent() #20 /var/www/html/vendor/magento/framework/EntityManager/EntityManager.php(70): Magento\Framework\EntityManager\Operation\Read->execute() #21 /var/www/html/vendor/magento/module-catalog/Model/ResourceModel/Product.php(722): Magento\Framework\EntityManager\EntityManager->load() #22 /var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php(185): Magento\Catalog\Model\ResourceModel\Product->load() #23 /var/www/html/vendor/magento/framework/Model/AbstractModel.php(540): Magento\Catalog\Model\ResourceModel\Product\Interceptor->load() #24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\AbstractModel->load() #25 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Product\Interceptor->___callParent() #26 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\Product\Interceptor->Magento\Framework\Interception\{closure}() #27 /var/www/html/generated/code/Magento/Catalog/Model/Product/Interceptor.php(1661): Magento\Catalog\Model\Product\Interceptor->___callPlugins() #28 /var/www/html/vendor/magento/module-catalog/Model/ProductRepository.php(309): Magento\Catalog\Model\Product\Interceptor->load() #29 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\ProductRepository->getById() #30 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\ProductRepository\Interceptor->___callParent() #31 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Model\ProductRepository\Interceptor->Magento\Framework\Interception\{closure}() #32 /var/www/html/generated/code/Magento/Catalog/Model/ProductRepository/Interceptor.php(32): Magento\Catalog\Model\ProductRepository\Interceptor->___callPlugins() #33 /var/www/html/generated/code/Magento/Catalog/Api/ProductRepositoryInterface/Proxy.php(111): Magento\Catalog\Model\ProductRepository\Interceptor->getById() #34 /var/www/html/vendor/magento/module-catalog/Helper/Product.php(430): Magento\Catalog\Api\ProductRepositoryInterface\Proxy->getById() #35 /var/www/html/vendor/magento/module-catalog/Helper/Product/View.php(277): Magento\Catalog\Helper\Product->initProduct() #36 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Helper\Product\View->prepareAndRender() #37 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Helper\Product\View\Interceptor->___callParent() #38 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Helper\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #39 /var/www/html/generated/code/Magento/Catalog/Helper/Product/View/Interceptor.php(32): Magento\Catalog\Helper\Product\View\Interceptor->___callPlugins() #40 /var/www/html/vendor/magento/module-catalog/Controller/Product/View.php(140): Magento\Catalog\Helper\Product\View\Interceptor->prepareAndRender() #41 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Controller\Product\View->execute() #42 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\View\Interceptor->___callParent() #43 /var/www/html/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #44 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() #45 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #46 /var/www/html/generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(23): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins() #47 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Magento\Catalog\Controller\Product\View\Interceptor->execute() #48 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch() #49 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Controller\Product\View\Interceptor->___callParent() #50 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Catalog\Controller\Product\View\Interceptor->Magento\Framework\Interception\{closure}() #51 /var/www/html/generated/code/Magento/Catalog/Controller/Product/View/Interceptor.php(32): Magento\Catalog\Controller\Product\View\Interceptor->___callPlugins() #52 /var/www/html/vendor/magento/framework/App/FrontController.php(186): Magento\Catalog\Controller\Product\View\Interceptor->dispatch() #53 /var/www/html/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest() #54 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch() #55 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent() #56 /var/www/html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #57 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() #58 /var/www/html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #59 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() #60 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() #61 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins() #62 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch() #63 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch() #64 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent() #65 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() #66 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins() #67 /var/www/html/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch() #68 /var/www/html/pub/index.php(29): Magento\Framework\App\Bootstrap->run() #69 {main}