Magento2: Bulk product attribute not updated in magento 2.3.2

Created on 4 Feb 2020  路  22Comments  路  Source: magento/magento2

Preconditions (*)

  1. PHP 7.2.27
  2. MySql 5.6.40

Steps to reproduce (*)

  1. Go to Admin -> Catalog -> Product
  2. Select multiple products from product grid
  3. Choose Update Attributes from Action drop-down
  4. Change any attribute and Save

Expected result (*)

  1. Product attribute should be updated.

Actual result (*)

  1. Product attribute not updated
    image
Admin Catalog Cannot Reproduce Confirmed Format is valid Ready for Work Reported on 2.3.2 Reproduced on 2.4.x non-issue

All 22 comments

Thanks for opening this issue!

Hi @santosh-ks153. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • [ ] Summary of the issue
  • [ ] Information on your environment
  • [ ] Steps to reproduce
  • [ ] Expected and actual results

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:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@santosh-ks153 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • [ ] yes
  • [ ] no

Thanks for opening this issue!

Hi @sudheers-kensium. 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:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

@santosh-ks153 Can you please update more details.

when I m trying to update the product attribute using Magento backend. got the below message always.
screenshot-dev

Look like it will never updates the product attribute.

Any solution for that @sudheers-kensium

@santosh-ks153 You need to enable the magento cron

I did still showing the same issue

:white_check_mark: Confirmed by @sudheers-kensium
Thank you for verifying the issue. Based on the provided information internal tickets MC-31078 were created

Issue Available: @sudheers-kensium, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._

Thanks for opening this issue!

Hi @santosh-ks153
You need to enable start queue consumer "product_action_attribute.update". You can list out all the consumers via below command:
php bin/magento queue:consumers:list

Please find below screenshot
Screenshot from 2020-02-04 18-05-19

You can start consumer by below command:
php bin/magento queue:consumers:start product_action_attribute.update

Let me know if you need any further details.

after doing the above I got the below response.
Screenshot from 2020-02-04 18-37-54

Could you please try below command with area-code
php bin/magento queue:consumers:start product_action_attribute.update --area-code='adminhtml'

Getting the same issue.
Screenshot from 2020-02-04 19-00-07

@santosh-ks153
I did some research on this issue and found that you have installed some custom module and in that custom module, you will find a code where area code has been set. Could you please verify in your custom module?
This is usually due to some other bit of code setting the areaCode before the core is trying to set it. Usually, because it is trying to be set in __construct() somewhere. With how dependency injection works, all objects are loaded and their constructors are run, even if you're not using that object. I would check that the areaCode is not being set in a __construct()

I'm having the same issue on Magento 2.3.5-p1. It's a clean install but I imported products. I tried php bin/magento queue:consumers:list but nothing happened
Screen Shot 2020-05-28 at 4 58 55 PM

Could somebody clarify
I run bin/magento queue:consumers:start product_action_attribute.update and it started working.
We should run and configure it like cron? I could found information about it and that is so important.

@GalichMolodothon: the default Magento cron has a job called consumers_runner which should already spawn these consumer processes, so normally you only need to call bin/magento cron:run.

But that can change depending on your configuration of those consumers. See the documentation for this, the default configuration shouldn't block consumers, but maybe somehow the configuration got changed in your particular case?

Hello @santosh-ks153
cc: @GalichMolodothon @SewHappy58 @hostep

Based on the issue description and discussion in comments
It seems not a bug but a configuration issue.
also in comments, there are recommendations, guides and links to the official documentation.

Please confirm that we close this Issue or update information in the issue description

@sdzhepa hello!
Yes, it was a misunderstanding for setting the correct format in the cloud configuration for consumers and setting an array of consumers.

Was this page helpful?
0 / 5 - 0 ratings