-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parent product doesn't have configurable product options. #20366
Comments
@magento-engcom-team give me 2.3-develop instance |
Hi @LuciferStrome. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @LuciferStrome, here is your Magento instance. |
Hi @usamahabib786. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @usamahabib786 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @LuciferStrome. Thank you for working on this issue.
|
@LuciferStrome Thank you for verifying the issue. Unfortunately, not enough information was provided to created internal ticket. Please consider adding the following:
Once all required information is added, please add label |
@LuciferStrome Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @engcom-backlog-nazar is there any update you wnat from me clearly i have mentioned everything required and tested it with magento 2.3 Community edition version furthermore I can provide any othere information required |
@usamahabib786 i think this is non-issue, you may have wrong payload, or some else. now i rechecking this |
@engcom-backlog-nazar i have mentioned the payload for this bulk call. If i provide wrong payload to the endpoint before it executes the request it returns field name required message with the key mentioned as u know. The main issue is when i am going with traditional rest api endpoint for linking products its all working fine as i move to bulk api this is the message. |
@engcom-backlog-nazar But if my payload for this request is wrong, if you could please help me with providing correct payload to this endpoint for bulk api. endpoint: rest/async/bulk/V1/configurable-products/bySku/child |
I'm working on this |
Hi @Nazar65 any luck with this? |
@Nazar65 Slight development our end on this. We have the RabbitMQ management plugin installed and if we force a close on the connection in between sending each payload everything works correctly. It's feels like something is being cached and forcing a close on the connection clears it. Hopefully this helps diagnose the issue further, we are continuing to look our end and will post any further information here. |
@rddwh thank for explanations, but i'm found that product dose not have flag has_options when created wia bulk api |
@Nazar65 I've just tried this via the standard endpoints: rest/V1/products And the has_options is still 0 on the configurable: It's not until I save the item in the admin UI page that it gets set to 1. |
I've also tried to send the product payload, then the configurable product options and before posting the link child to parent manually updating the has_options and required_options to 1 before posting the payload. It still fails. |
@rddwh hi did you able to find a way for creating configurable products with bulk api? or still waiting for magento's update? Any reply soon will be highly appreciated as i am seriously facing issue at my work due to this thanks |
@usamahabib786 I've managed to get the products in using only the rest/async/bulk/V1/products endpoint. The process was to upload all the simple products first, download the results from the bulk status endpoint and read the product IDs. Once you have them you can send a payload for the configurable products and include the configurable options and child linking e.g:
I have multiple tickets open with Magento Support around RabbitMQ though as it's riddled with bugs. Issues include payloads being ignored and sitting with a status of 4 (pending). Some payloads being successfully sent and creating products in Magento but the bulk status returning that they are still pending and performance issues. We did a test and uploaded 11,658 products to the production instance of a Magento Cloud Pro package (48 cores, 64GB RAM) and it took 4.5 hours to complete! I was the only person using the instance at the time so technically had the full grunt of the box to utilise. |
@rddwh thanks for responding, its seem this is the only approach as of now until magento fixes that approach mentioned in official documentation. i am also using it. but how you were able to send this big number of products as i tried posting 3200 approx and i got exception of too big data packet from api it self. |
@usamahabib786 I'm sending 500 SKUs at a time. The payloads get queued in RabbitMQ so there's no need to send them up in 1 go. |
@rddwh thanks a lot for being a help. |
@magento-engcom-team Could you please assign this ticket to me? I will work on it. |
Hi @usamahabib786. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
This should fix the issue with the configurable products not having any options with Bulk and Async API. Related issue: magento#20366
Hi @usamahabib786. Thank you for your report.
The fix will be available with the upcoming 2.2.9 release. |
Preconditions (*)
PHP 7.2
MySQL CE 5.6.30
Magento 2.3
Steps to reproduce (*)
1.Create a Configurable product, Set the configurable attribute and Link the simple products to the configurable product using BULK API endpoint: rest/async/bulk/V1/configurable-products/bySku/child
2. Input POST
[
{
"sku": "parentSku",
"childSku": "ChildNo1Sku"
},
{
"sku": "parentSku",
"childSku": "ChildNo2Sku"
},
{
"sku": "parentSku",
"childSku": "ChildNo3Sku"
}
]
RESPONSE:
{
"bulk_uuid": "d934bf6f-bc8f-4189-b6b9-9a85896c8641",
"request_items": [
{
"id": 0,
"data_hash": null,
"status": "accepted"
},
{
"id": 1,
"data_hash": null,
"status": "accepted"
},
{
"id": 2,
"data_hash": null,
"status": "accepted"
}
],
"errors": false
}
Expected result (*)
1.Mass update for Topic async.V1.configurable-products.sku.child.POST should be updated successfully.
Actual result (*)
{
"operations_list": [
{
"id": 298,
"status": 3,
"result_message": "The parent product doesn't have configurable product options.",
"error_code": 0
},
{
"id": 299,
"status": 3,
"result_message": "The parent product doesn't have configurable product options.",
"error_code": 0
},
{
"id": 300,
"status": 3,
"result_message": "The parent product doesn't have configurable product options.",
"error_code": 0
}
],
"user_type": 1,
"bulk_id": "d934bf6f-bc8f-4189-b6b9-9a85896c8641",
"description": "Topic async.V1.configurable-products.sku.child.POST",
"start_time": "2019-01-17 10:31:04",
"user_id": 1,
"operation_count": 3
}
3.
NOTES(*)
Please not that when i am trying to link the simple products to the configurable product with restApi endpoint magento 2.3 which is
rest/V1/configurable-products/:sku/child
##Input: {"childSku":"BDM-MLI-611041-A-BK"}
##Response: "true"
actual and expected result are similar and children get assigned to it's parents but when it comes to bulk api this is the exception which i am getting at Magento\ConfigurableProduct\Model\LinkManagement class in function addChild line no 122 - 125
The text was updated successfully, but these errors were encountered: