While tried to open products via admin end, it throws below error,

1 exception(s):
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 4

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with id = 4
#0 /var/www/html/xxxx/vendor/magento/module-eav/Model/AttributeSetRepository.php(155):


enter image description here Please provide me a solution


You have deleted Magento Product default attribute set Default that why this error happens. Since at product's attribute set id is 4 and it does not exist that database table eav_attribute_set where here all eav_attribute set is stored.

As per as, default magento2, 4 is the id of default attribute set Default of Products`

And your system does not have that attribute set and but in products attribute_set_id is 4.that why this error is happening.

  • But in DB, the default attributset is saved with the id 4
    – Jaisa
    Feb 19 '19 at 4:26
  • hen how do i create it, but it exists in DB
    – Jaisa
    Feb 19 '19 at 4:43
  • But in my system default attributeset is present
    – Jaisa
    Feb 19 '19 at 4:53
  • please give screenshot o f eav_attribute_set
    – Amit Bera
    Feb 19 '19 at 5:37
  • I have added the screenshot
    – Jaisa
    Feb 19 '19 at 5:44

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.