Unable to remove source or change source code
You’re unable to delete a source or modify its code because the system restricts these actions. To resolve the issue, disable the source or adjust product assignments.
Description description
Environment
- Adobe Commerce on cloud infrastructure (all versions), with Magento Inventory installed
- Adobe Commerce on-premises 2.3.0 and later, with Magento Inventory installed
- Magento Open Source 2.3.0 and later, with Magento Inventory installed
Issue/Symptoms
- The source cannot be deleted regardless of the product assignment.
- The source code cannot be edited in any configuration.
- The source remains active in inventory and order processing.
Root cause
By design, it is not possible to completely remove a source and/or change its code.
Removing a source entirely would cause order data issues because sources are part of product inventories, orders, shipment data, and much more.
The code is vital for connecting the source to orders. This is a unique ID for the source and is disabled from editing.
Resolution resolution
Follow these steps to resolve the issue:
- Transfer inventory from the source to another location or remove products from all shipments at that source.
- Disable the source to exclude it from SSAÂ calculations and Adobe Commerce Inventory order processing. Disabled sources retain data and can be re-enabled anytime.
See the Create Sources guide for details on disabling a source.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f