Skip to content

Magento2: Cannot instantiate interface MagentoInventoryApiApiGetSourceItemsBySkuInterface error in log file

I am using Magento2.4.3 and I am getting the below error in my error log:

Cannot instantiate interface MagentoInventoryApiApiGetSourceItemsBySkuInterface#0 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject()
#1 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): MagentoFrameworkObjectManagerFactoryCompiled->create()
#2 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): MagentoFrameworkObjectManagerFactoryCompiled->get()
#3 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): MagentoFrameworkObjectManagerFactoryCompiled->create()
#4 /var/www/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): MagentoFrameworkObjectManagerFactoryCompiled->get()
#5 /var/www/magento/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryCompiled->create()
#6 /var/www/magento/vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(332): MagentoFrameworkObjectManagerObjectManager->create()
#7 /var/www/magento/vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(858): MagentoCronObserverProcessCronQueueObserver->_runJob()
#8 /var/www/magento/vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(825): MagentoCronObserverProcessCronQueueObserver->tryRunJob()
#9 /var/www/magento/vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php(273): MagentoCronObserverProcessCronQueueObserver->processPendingJobs()
#10 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCronObserverProcessCronQueueObserver->execute()
#11 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCronObserverProcessCronQueueObserverInterceptor->___callParent()
#12 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCronObserverProcessCronQueueObserverInterceptor->MagentoFrameworkInterception{closure}()
#13 /var/www/magento/generated/code/Magento/Cron/Observer/ProcessCronQueueObserver/Interceptor.php(23): MagentoCronObserverProcessCronQueueObserverInterceptor->___callPlugins()
#14 /var/www/magento/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): MagentoCronObserverProcessCronQueueObserverInterceptor->execute()
#15 /var/www/magento/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod()
#16 /var/www/magento/vendor/magento/framework/Event/Manager.php(66): MagentoFrameworkEventInvokerInvokerDefault->dispatch()
#17 /var/www/magento/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): MagentoFrameworkEventManager->dispatch()
#18 /var/www/magento/vendor/magento/framework/App/Cron.php(86): MagentoFrameworkEventManagerProxy->dispatch()
#19 /var/www/magento/vendor/magento/module-cron/Console/Command/CronCommand.php(117): MagentoFrameworkAppCron->launch()
#20 /var/www/magento/vendor/symfony/console/Command/Command.php(255): MagentoCronConsoleCommandCronCommand->execute()
#21 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(58): SymfonyComponentConsoleCommandCommand->run()
#22 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCronConsoleCommandCronCommandInterceptor->___callParent()
#23 /var/www/magento/vendor/magento/framework/Interception/Interceptor.php(153): MagentoCronConsoleCommandCronCommandInterceptor->MagentoFrameworkInterception{closure}()
#24 /var/www/magento/generated/code/Magento/Cron/Console/Command/CronCommand/Interceptor.php(77): MagentoCronConsoleCommandCronCommandInterceptor->___callPlugins()
#25 /var/www/magento/vendor/symfony/console/Application.php(1021): MagentoCronConsoleCommandCronCommandInterceptor->run()
#26 /var/www/magento/vendor/symfony/console/Application.php(275): SymfonyComponentConsoleApplication->doRunCommand()
#27 /var/www/magento/vendor/magento/framework/Console/Cli.php(115): SymfonyComponentConsoleApplication->doRun()
#28 /var/www/magento/vendor/symfony/console/Application.php(149): MagentoFrameworkConsoleCli->doRun()
#29 /var/www/magento/bin/magento(23): SymfonyComponentConsoleApplication->run()
#30 {main}

any help would be much appreciated