cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2.2 - setup:di:compile - InventorySourceDeductionApi

Magento 2.2.2 - setup:di:compile - InventorySourceDeductionApi

I am trying to install Facebook_Business_Extension to setup Facebook ConversionAPI. My problem is that when I run php bin/magento setup:di:compile, I am getting this error:

 

[ReflectionException]
Class Magento\InventorySourceDeductionApi\Model\GetSourceItemBySourceCodeAndSku does not exist

 

 

Does someone know about this problem, since the research that I have done for this error was related to Magento Multi-Source Inventory (MSI), which if I am not mistaken Magento 2.2 does not use it?

 

These are the details of my setup:

  • PHP version: 7.1
  • Magento 2.2.2 Open Source
  • Composer version: 2.0.6
4 REPLIES 4

Re: Magento 2.2.2 - setup:di:compile - InventorySourceDeductionApi

kindly check if you have this module enabled 

 

php bin/magento module:status Magento_InventorySourceDeductionApi

this module is a part of MSI

 

If you are not using MSI then try disabling all the modules related listed here

 

Kindly Accept as a Solution if this works for you and give Kudos  

Re: Magento 2.2.2 - setup:di:compile - InventorySourceDeductionApi

I tried disabling the modules that exist as part of the MSI, but none of them exist also.

 

Last time I worked on the site and ran setup:di:compile everything ran okay, all I can think is that composer has maybe added a denpendany that does not exis, but I don't think that is the case also!

 

Possibly after I started to install Facebook Pixel.

Subaru Net

Re: Magento 2.2.2 - setup:di:compile - InventorySourceDeductionApi

Hello @robertbits,

 

Magento 2.2.2 doesn't have MSI, you can cross-check composer.json for it.
But I think the Facebook_Business_Extension extension uses MSI classes in its code. Hence the error is occurring.

 

Thanks 

Re: Magento 2.2.2 - setup:di:compile - InventorySourceDeductionApi

@meher jeet_sachan Yeh, I think that that's the main problem with the Facebook business suite, which is making my life miserable to set up Facebook capi on Magento 2.2.2