I get the "Undefined index: inventory_source" error, what should I do?

I get the "Undefined index: inventory_source" error, what should I do?

      In the Store Pickup with Locator extension, there's an optional Amasty_StorePickupWithLocatorMSI module which is related to the default Magento inventory functionality. The "Undefined index: inventory_source" error during running the 'setup:upgrade' command may appear when the Magento_Inventory modules are disabled:


      
      You may check the statuses of all the modules on your instance by running the following command:
php bin/magento module:status

      To enable/disable a module, use the corresponding command:
php bin/magento module:enable ModuleName
php bin/magento module:disable ModuleName
     
      Alternatively, in case you don't need the functionality of the Amasty_StorePickupWithLocatorMSI module, you may disable it and remove the amasty_amlocator_location_inventory_source table from the Database.
      The Database table can be removed either by running the 'DROP TABLE table_name' SQL query or manually:


      • Announcements

      • Already done in Q3'22

        Extensions updates Advanced Reports now, when a website works with multi currencies while filtering reports by the store views, the data in the report is converted to the site base currency; now, the Product Performance report displays up-to-date customer
      • What to expect in Q3'22

        New features and improvements Improved Layered Navigation integration with Live Search. Elastic Search improved Relevance Rules functionality. Product Feed an option to add configurable options to product URL; possibility to use Quantity attribute as
      • Already Done in Q2'22

        Brand-new extensions Google Page Speed Optimizer Powered by SpeedSize™ is a synergy of Amasty Google Page Speed Optimizer and SpeedSize, which will help you greatly increase the site performance due to code structure compression and neuroscience media
      • What to expect in Q2'22

        Amasty always strives to deliver new functionality in accordance with the most popular customers’ requests and e-commerce trends. In this article, we'll share our plans on new extensions, improvements, fixes, and other releases the team intends to be
      • March'22 results

        New Solutions In March, the team presented two new suites that combine features of top Amasty extensions and are attractive price-wise: Must-Haves Suite. Don't know how to grow your business or what to start with? Get our must-have set of features for