I just upgrade Magento 2.3.0 to Magento 2.3.5, But after installation In Admin > Catalog > Products I cannot edit or Add new products, When I am trying to add or edit Product Page then getting below error.

Notice: Undefined index: quantity in /vendor/magento/framework/View/Element/UiComponentFactory.php on line 412

Please help me regrading about this issue. I am badly stuck in this issue.

enter image description here


  • reindex may help you, php bin/magento indexer:reindex – Siva Oct 17 at 15:27
  • i have already done many times, but not effected. – Wajahat Bashir Oct 17 at 15:58

I am just speculating here..

The error is related to quantity not being set in an array that comes from the data source, this is most likely related to the MSI functionality as it was new in 2.3. If you are not using MSI with multiple stocks you could start to try to disable it, you can follow the instructions on the devdoc for this:


Otherwise, I think there are some problem in either the data provider for the product_form.xml ui component or the product_form.xml itself. As the error thrown is related to the quantity field you could try to comment out the <field name="quantity" .../> nodes in your product_form.xml and see what happens. E.g. in this file:


                <field name="quantity" component="Magento_InventoryCatalogAdminUi/js/product/form/sources/qty" formElement="input" sortOrder="50">


However, disabling MSI if you are not using it is your best bet. Good luck!

| improve this answer | |
New contributor
Kristoffer is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.