Skip to content

Duplicate SKUs When Using Leading 0 Causes Errors - Bulk Unassign Inventory Source #35171

@uandiweb

Description

@uandiweb

Preconditions (*)

  1. Magento 2.4.3-p1
  2. Inventory/ MSI enabled

Steps to reproduce (*)

  1. Create a simple product with SKU 01234
  2. Create another simple product with SKU 1234
  3. Ensure both products don't have inventory source assigned
  4. Use the product bulk action tool to assign inventory source (i.e. default) to both products at once (Catalog - Products - Select Products - Actions - Assign Inventory Source)

Expected result (*)

  1. Both products should now have inventory source assigned

Actual result (*)

  1. Only one product will have the inventory source assigned.
  2. Error log shows: "main.CRITICAL: TypeError: Argument 1 passed to Magento\InventoryConfiguration\Model\IsSourceItemManagementAllowedForProductType\Interceptor::execute() must be of the type string, null given, called in /home/test/public_html/vendor/magento/module-inventory-catalog/Model/ResourceModel/BulkSourceAssign.php on line 71 and defined in /home/test/public_html/generated/code/Magento/InventoryConfiguration/Model/IsSourceItemManagementAllowedForProductType/Interceptor.php:20
    Stack trace:"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Inventory / MSIComponent: InventoryIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.3-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions