Open Swannyj opened 2 weeks ago
Hi @Swannyj. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.
@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hi @Swannyj,
Thanks for your reporting and collaboration.
We have verified the issue in Latest 2.4-develop instance and the issue is reproducible.Kindly refer the attached video.
https://github.com/user-attachments/assets/8b2802db-f807-4cc2-8014-713ebd4def48
When Clicking shipping we are getting the error Following products with requested skus were not found: 4201503002/size38/bleu fonce
Hence Confirming the issue.
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-13319 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Preconditions and environment
2.4.6-p6
Steps to reproduce
Create a Product in the CMS. Add a SKU (for example
4201503002/size38/bleu fonce
) and assign a stock source against itSave the Product
Change the Product SKU (for example
4201503002/size38/bleu foncé
)Save
Navigate to the storefront
Add this product to your basket and checkout
In the CMS go to Sales/Orders and find the order
You should see an order item with the updated
sku
(4201503002/size38/bleu foncé
)Click 'Ship'
Expected result
The admin user should be able to click ship and progress through the order journey.
Actual result
The user is presented with the following error
Warning: Undefined array key "4201503002/size38/bleu fonce" in /var/www/website/vendor/magento/module-inventory-source-selection-api/Model/Algorithms/Result/GetDefaultSortedSourcesResult.php on line 140
Additional information
Looking through the
execute
function inGetDefaultSortedSourcesResult.php
, it seems that the code retrieves a list of items in the orderI can see the below in my
debug.log
After this, the code calls the
execute
function inGetInStockSourceItemsBySkusAndSortedSource
I have added the below logging in this function:
which prints the following to my
debug.log
The above ID returns the following from the database
7161324
and back inside theexecute
function inGetDefaultSortedSourcesResult.php
this ID returns the following from the database when it is looping through the$sourceItems
inventory_source_item
tablecatalog_product_entity
tableIMPORTANT The code uses the
inventory_source_item
sku
and searches the the variable$itemsTdDeliver
for thissku
however this array conatins the productsku
and so returns theundefined array key
error.Release note
No response
Triage and priority