You may see the following message when opening a product in Magento 2 admin:

Undefined array key 1234 in vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php on line 604

The ID can vary, but the cause is the same. Rebuilding the indexes with the following command, executed from your Magento 2 root directory, will often help:

You should now be able to open products in the admin area again.

Fixing Undefined array key 1234 in Eav.php on line 604
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: