Magento 2 Attempt to load value of nonexistent EAV attributeMagento 2 Attempt to load value of nonexistent EAV attribute with CategoryInterfaceAdding parent_id attribute value in modelDuring checkout, button “continue” doesn't workThe _data of an EAV modelCustom Entity Models - Using EAV vs FlatCan virtual types be used as source models for EAV attributes?create date and time attribute for product in magento 2Adding a Product Attribute in magento 2.1.7Magento 2.1.9 - System.log: “Attempt to load value of nonexistent EAV attribute '237' for entity type 'MagentoCatalogApiDataProductInterface'”Custom EAV Entity Type Missing “default_attribute_set_id” In ModelGet attribute value of custom eav model in magento 2

Biological Blimps: Propulsion

C++ copy constructor called at return

Change the color of a single dot in `ddot` symbol

Taxes on Dividends in a Roth IRA

Pre-mixing cryogenic fuels and using only one fuel tank

awk assign to multiple variables at once

The IT department bottlenecks progress, how should I handle this?

Doesn't the system of the Supreme Court oppose justice?

What fields between the rationals and the reals allow a good notion of 2D distance?

Which Article Helped Get Rid of Technobabble in RPGs?

"It doesn't matter" or "it won't matter"?

How to preserve electronics (computers, iPads and phones) for hundreds of years

What is the difference between lands and mana?

Has any country ever had 2 former presidents in jail simultaneously?

How would you translate "more" for use as an interface button?

Is my low blitz game drawing rate at www.chess.com an indicator that I am weak in chess?

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Find the next value of this number series

C++ check if statement can be evaluated constexpr

How to draw a matrix with arrows in limited space

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

Stack Interview Code methods made from class Node and Smart Pointers

Is it allowed to activate the ability of multiple planeswalkers in a single turn?



Magento 2 Attempt to load value of nonexistent EAV attribute


Magento 2 Attempt to load value of nonexistent EAV attribute with CategoryInterfaceAdding parent_id attribute value in modelDuring checkout, button “continue” doesn't workThe _data of an EAV modelCustom Entity Models - Using EAV vs FlatCan virtual types be used as source models for EAV attributes?create date and time attribute for product in magento 2Adding a Product Attribute in magento 2.1.7Magento 2.1.9 - System.log: “Attempt to load value of nonexistent EAV attribute '237' for entity type 'MagentoCatalogApiDataProductInterface'”Custom EAV Entity Type Missing “default_attribute_set_id” In ModelGet attribute value of custom eav model in magento 2













0















I see in my log the nexe warning:



[2017-05-05 12:23:53] main.WARNING: Attempt to load value of nonexistent EAV attribute '339'
for entity type 'MagentoCatalogApiDataProductInterface'. [] []


I can't find why, but i find this and i don't know if this is true.



Do you know why this problem occurs?










share|improve this question


























    0















    I see in my log the nexe warning:



    [2017-05-05 12:23:53] main.WARNING: Attempt to load value of nonexistent EAV attribute '339'
    for entity type 'MagentoCatalogApiDataProductInterface'. [] []


    I can't find why, but i find this and i don't know if this is true.



    Do you know why this problem occurs?










    share|improve this question
























      0












      0








      0


      1






      I see in my log the nexe warning:



      [2017-05-05 12:23:53] main.WARNING: Attempt to load value of nonexistent EAV attribute '339'
      for entity type 'MagentoCatalogApiDataProductInterface'. [] []


      I can't find why, but i find this and i don't know if this is true.



      Do you know why this problem occurs?










      share|improve this question














      I see in my log the nexe warning:



      [2017-05-05 12:23:53] main.WARNING: Attempt to load value of nonexistent EAV attribute '339'
      for entity type 'MagentoCatalogApiDataProductInterface'. [] []


      I can't find why, but i find this and i don't know if this is true.



      Do you know why this problem occurs?







      magento-2.1 eav






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 5 '17 at 14:26









      characterErrorcharacterError

      2319




      2319




















          5 Answers
          5






          active

          oldest

          votes


















          1














          Make a database backup.



          Go to the database and check in the eav_attribute and the other eav_* tables if you find a reference to that id.
          You could try to delete that reference if that attribute was deleted.



          This information is supplied without liability. I never did that. It's just on top of my head.






          share|improve this answer






























            0














            I have this issue and know how it was caused in my setup. We moved products over from another Magento2 install. The ID numbers for the EAV attributes will have likely been different. So while the attributes are all still there and assigned to the same products. The entity_id number will be different. Shy of trying to marry up the id numbers again back to their original values, I'm not sure how to fix this..... bit messy! In your situation, if you have a previous version of the eav_attribute table, try restoring the previous version and see if the error's in your log remain.






            share|improve this answer






























              0














              Note: Backup your database first.



              Find the string Attempt to load value of nonexistent EAV attribute in our project. On my current Magento version 2.2.2, foud it in



              vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php



              foreach ($connection->fetchAll($unionSelect) as $attributeValue) 
              if (isset($attributesMap[$attributeValue['attribute_id']]))
              $entityData[$attributesMap[$attributeValue['attribute_id']]] = $attributeValue['value'];
              else
              $this->logger->warning(
              "Attempt to load value of nonexistent EAV attribute '$attributeValue['attribute_id']'
              for entity type '$entityType'."
              );




              We need to dig into this part with xDebug:



              enter image description here



              Check entity_id in eav_attribute and check backend_type. For example: int, datetime, decimal, varchar...



              And then find the table of this type: catalog_product_*






              share|improve this answer
































                0














                I migrated from M1 to M2 and had similar problem.



                I fixed it by adding the missing attributes to the attribute set created by migration tool.



                Find the attribute code by running following query:



                SELECT * FROM `eav_attribute` WHERE `attribute_id` = 339


                In the result you should see the attribute code. Now log in to the admin panel and navigate to Admin > Stores > Attributes > Attribute Set



                Find the migrated attribute set (Usually looks like this Migration_[AttributeSetName]) and add the attribute code to the attribute set.



                This solved my problem that appeared after migration.






                share|improve this answer






























                  0














                  All eav_attribute values mapped to a catalog_product_entity_*** table need to be added to the attribute set assigned to the product.



                  This is done in the eav_entity_attribute table keyed on attribute_set_id, attribute_group_id and attribute_id. Also achieved via Magento -> Admin -> Stores -> Attributes -> Attribute Set.



                  Clear Magento Cache to see the results after mapping attributes' to attribute sets.






                  share|improve this answer








                  New contributor




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



















                    Your Answer








                    StackExchange.ready(function()
                    var channelOptions =
                    tags: "".split(" "),
                    id: "479"
                    ;
                    initTagRenderer("".split(" "), "".split(" "), channelOptions);

                    StackExchange.using("externalEditor", function()
                    // Have to fire editor after snippets, if snippets enabled
                    if (StackExchange.settings.snippets.snippetsEnabled)
                    StackExchange.using("snippets", function()
                    createEditor();
                    );

                    else
                    createEditor();

                    );

                    function createEditor()
                    StackExchange.prepareEditor(
                    heartbeatType: 'answer',
                    autoActivateHeartbeat: false,
                    convertImagesToLinks: false,
                    noModals: true,
                    showLowRepImageUploadWarning: true,
                    reputationToPostImages: null,
                    bindNavPrevention: true,
                    postfix: "",
                    imageUploader:
                    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                    allowUrls: true
                    ,
                    onDemand: true,
                    discardSelector: ".discard-answer"
                    ,immediatelyShowMarkdownHelp:true
                    );



                    );













                    draft saved

                    draft discarded


















                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f173218%2fmagento-2-attempt-to-load-value-of-nonexistent-eav-attribute%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown

























                    5 Answers
                    5






                    active

                    oldest

                    votes








                    5 Answers
                    5






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    1














                    Make a database backup.



                    Go to the database and check in the eav_attribute and the other eav_* tables if you find a reference to that id.
                    You could try to delete that reference if that attribute was deleted.



                    This information is supplied without liability. I never did that. It's just on top of my head.






                    share|improve this answer



























                      1














                      Make a database backup.



                      Go to the database and check in the eav_attribute and the other eav_* tables if you find a reference to that id.
                      You could try to delete that reference if that attribute was deleted.



                      This information is supplied without liability. I never did that. It's just on top of my head.






                      share|improve this answer

























                        1












                        1








                        1







                        Make a database backup.



                        Go to the database and check in the eav_attribute and the other eav_* tables if you find a reference to that id.
                        You could try to delete that reference if that attribute was deleted.



                        This information is supplied without liability. I never did that. It's just on top of my head.






                        share|improve this answer













                        Make a database backup.



                        Go to the database and check in the eav_attribute and the other eav_* tables if you find a reference to that id.
                        You could try to delete that reference if that attribute was deleted.



                        This information is supplied without liability. I never did that. It's just on top of my head.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered May 5 '17 at 15:07









                        sterossteros

                        827629




                        827629























                            0














                            I have this issue and know how it was caused in my setup. We moved products over from another Magento2 install. The ID numbers for the EAV attributes will have likely been different. So while the attributes are all still there and assigned to the same products. The entity_id number will be different. Shy of trying to marry up the id numbers again back to their original values, I'm not sure how to fix this..... bit messy! In your situation, if you have a previous version of the eav_attribute table, try restoring the previous version and see if the error's in your log remain.






                            share|improve this answer



























                              0














                              I have this issue and know how it was caused in my setup. We moved products over from another Magento2 install. The ID numbers for the EAV attributes will have likely been different. So while the attributes are all still there and assigned to the same products. The entity_id number will be different. Shy of trying to marry up the id numbers again back to their original values, I'm not sure how to fix this..... bit messy! In your situation, if you have a previous version of the eav_attribute table, try restoring the previous version and see if the error's in your log remain.






                              share|improve this answer

























                                0












                                0








                                0







                                I have this issue and know how it was caused in my setup. We moved products over from another Magento2 install. The ID numbers for the EAV attributes will have likely been different. So while the attributes are all still there and assigned to the same products. The entity_id number will be different. Shy of trying to marry up the id numbers again back to their original values, I'm not sure how to fix this..... bit messy! In your situation, if you have a previous version of the eav_attribute table, try restoring the previous version and see if the error's in your log remain.






                                share|improve this answer













                                I have this issue and know how it was caused in my setup. We moved products over from another Magento2 install. The ID numbers for the EAV attributes will have likely been different. So while the attributes are all still there and assigned to the same products. The entity_id number will be different. Shy of trying to marry up the id numbers again back to their original values, I'm not sure how to fix this..... bit messy! In your situation, if you have a previous version of the eav_attribute table, try restoring the previous version and see if the error's in your log remain.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered May 12 '17 at 15:20









                                MagentoMacMagentoMac

                                63941334




                                63941334





















                                    0














                                    Note: Backup your database first.



                                    Find the string Attempt to load value of nonexistent EAV attribute in our project. On my current Magento version 2.2.2, foud it in



                                    vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php



                                    foreach ($connection->fetchAll($unionSelect) as $attributeValue) 
                                    if (isset($attributesMap[$attributeValue['attribute_id']]))
                                    $entityData[$attributesMap[$attributeValue['attribute_id']]] = $attributeValue['value'];
                                    else
                                    $this->logger->warning(
                                    "Attempt to load value of nonexistent EAV attribute '$attributeValue['attribute_id']'
                                    for entity type '$entityType'."
                                    );




                                    We need to dig into this part with xDebug:



                                    enter image description here



                                    Check entity_id in eav_attribute and check backend_type. For example: int, datetime, decimal, varchar...



                                    And then find the table of this type: catalog_product_*






                                    share|improve this answer





























                                      0














                                      Note: Backup your database first.



                                      Find the string Attempt to load value of nonexistent EAV attribute in our project. On my current Magento version 2.2.2, foud it in



                                      vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php



                                      foreach ($connection->fetchAll($unionSelect) as $attributeValue) 
                                      if (isset($attributesMap[$attributeValue['attribute_id']]))
                                      $entityData[$attributesMap[$attributeValue['attribute_id']]] = $attributeValue['value'];
                                      else
                                      $this->logger->warning(
                                      "Attempt to load value of nonexistent EAV attribute '$attributeValue['attribute_id']'
                                      for entity type '$entityType'."
                                      );




                                      We need to dig into this part with xDebug:



                                      enter image description here



                                      Check entity_id in eav_attribute and check backend_type. For example: int, datetime, decimal, varchar...



                                      And then find the table of this type: catalog_product_*






                                      share|improve this answer



























                                        0












                                        0








                                        0







                                        Note: Backup your database first.



                                        Find the string Attempt to load value of nonexistent EAV attribute in our project. On my current Magento version 2.2.2, foud it in



                                        vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php



                                        foreach ($connection->fetchAll($unionSelect) as $attributeValue) 
                                        if (isset($attributesMap[$attributeValue['attribute_id']]))
                                        $entityData[$attributesMap[$attributeValue['attribute_id']]] = $attributeValue['value'];
                                        else
                                        $this->logger->warning(
                                        "Attempt to load value of nonexistent EAV attribute '$attributeValue['attribute_id']'
                                        for entity type '$entityType'."
                                        );




                                        We need to dig into this part with xDebug:



                                        enter image description here



                                        Check entity_id in eav_attribute and check backend_type. For example: int, datetime, decimal, varchar...



                                        And then find the table of this type: catalog_product_*






                                        share|improve this answer















                                        Note: Backup your database first.



                                        Find the string Attempt to load value of nonexistent EAV attribute in our project. On my current Magento version 2.2.2, foud it in



                                        vendor/magento/module-eav/Model/ResourceModel/ReadHandler.php



                                        foreach ($connection->fetchAll($unionSelect) as $attributeValue) 
                                        if (isset($attributesMap[$attributeValue['attribute_id']]))
                                        $entityData[$attributesMap[$attributeValue['attribute_id']]] = $attributeValue['value'];
                                        else
                                        $this->logger->warning(
                                        "Attempt to load value of nonexistent EAV attribute '$attributeValue['attribute_id']'
                                        for entity type '$entityType'."
                                        );




                                        We need to dig into this part with xDebug:



                                        enter image description here



                                        Check entity_id in eav_attribute and check backend_type. For example: int, datetime, decimal, varchar...



                                        And then find the table of this type: catalog_product_*







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Nov 9 '18 at 4:00

























                                        answered Nov 2 '18 at 3:56









                                        Khoa TruongDinhKhoa TruongDinh

                                        21.9k64187




                                        21.9k64187





















                                            0














                                            I migrated from M1 to M2 and had similar problem.



                                            I fixed it by adding the missing attributes to the attribute set created by migration tool.



                                            Find the attribute code by running following query:



                                            SELECT * FROM `eav_attribute` WHERE `attribute_id` = 339


                                            In the result you should see the attribute code. Now log in to the admin panel and navigate to Admin > Stores > Attributes > Attribute Set



                                            Find the migrated attribute set (Usually looks like this Migration_[AttributeSetName]) and add the attribute code to the attribute set.



                                            This solved my problem that appeared after migration.






                                            share|improve this answer



























                                              0














                                              I migrated from M1 to M2 and had similar problem.



                                              I fixed it by adding the missing attributes to the attribute set created by migration tool.



                                              Find the attribute code by running following query:



                                              SELECT * FROM `eav_attribute` WHERE `attribute_id` = 339


                                              In the result you should see the attribute code. Now log in to the admin panel and navigate to Admin > Stores > Attributes > Attribute Set



                                              Find the migrated attribute set (Usually looks like this Migration_[AttributeSetName]) and add the attribute code to the attribute set.



                                              This solved my problem that appeared after migration.






                                              share|improve this answer

























                                                0












                                                0








                                                0







                                                I migrated from M1 to M2 and had similar problem.



                                                I fixed it by adding the missing attributes to the attribute set created by migration tool.



                                                Find the attribute code by running following query:



                                                SELECT * FROM `eav_attribute` WHERE `attribute_id` = 339


                                                In the result you should see the attribute code. Now log in to the admin panel and navigate to Admin > Stores > Attributes > Attribute Set



                                                Find the migrated attribute set (Usually looks like this Migration_[AttributeSetName]) and add the attribute code to the attribute set.



                                                This solved my problem that appeared after migration.






                                                share|improve this answer













                                                I migrated from M1 to M2 and had similar problem.



                                                I fixed it by adding the missing attributes to the attribute set created by migration tool.



                                                Find the attribute code by running following query:



                                                SELECT * FROM `eav_attribute` WHERE `attribute_id` = 339


                                                In the result you should see the attribute code. Now log in to the admin panel and navigate to Admin > Stores > Attributes > Attribute Set



                                                Find the migrated attribute set (Usually looks like this Migration_[AttributeSetName]) and add the attribute code to the attribute set.



                                                This solved my problem that appeared after migration.







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Jan 15 at 16:36









                                                Bare FeetBare Feet

                                                1,64211034




                                                1,64211034





















                                                    0














                                                    All eav_attribute values mapped to a catalog_product_entity_*** table need to be added to the attribute set assigned to the product.



                                                    This is done in the eav_entity_attribute table keyed on attribute_set_id, attribute_group_id and attribute_id. Also achieved via Magento -> Admin -> Stores -> Attributes -> Attribute Set.



                                                    Clear Magento Cache to see the results after mapping attributes' to attribute sets.






                                                    share|improve this answer








                                                    New contributor




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
























                                                      0














                                                      All eav_attribute values mapped to a catalog_product_entity_*** table need to be added to the attribute set assigned to the product.



                                                      This is done in the eav_entity_attribute table keyed on attribute_set_id, attribute_group_id and attribute_id. Also achieved via Magento -> Admin -> Stores -> Attributes -> Attribute Set.



                                                      Clear Magento Cache to see the results after mapping attributes' to attribute sets.






                                                      share|improve this answer








                                                      New contributor




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






















                                                        0












                                                        0








                                                        0







                                                        All eav_attribute values mapped to a catalog_product_entity_*** table need to be added to the attribute set assigned to the product.



                                                        This is done in the eav_entity_attribute table keyed on attribute_set_id, attribute_group_id and attribute_id. Also achieved via Magento -> Admin -> Stores -> Attributes -> Attribute Set.



                                                        Clear Magento Cache to see the results after mapping attributes' to attribute sets.






                                                        share|improve this answer








                                                        New contributor




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










                                                        All eav_attribute values mapped to a catalog_product_entity_*** table need to be added to the attribute set assigned to the product.



                                                        This is done in the eav_entity_attribute table keyed on attribute_set_id, attribute_group_id and attribute_id. Also achieved via Magento -> Admin -> Stores -> Attributes -> Attribute Set.



                                                        Clear Magento Cache to see the results after mapping attributes' to attribute sets.







                                                        share|improve this answer








                                                        New contributor




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









                                                        share|improve this answer



                                                        share|improve this answer






                                                        New contributor




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









                                                        answered yesterday









                                                        DarthRezDarthRez

                                                        11




                                                        11




                                                        New contributor




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





                                                        New contributor





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






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



























                                                            draft saved

                                                            draft discarded
















































                                                            Thanks for contributing an answer to Magento Stack Exchange!


                                                            • Please be sure to answer the question. Provide details and share your research!

                                                            But avoid


                                                            • Asking for help, clarification, or responding to other answers.

                                                            • Making statements based on opinion; back them up with references or personal experience.

                                                            To learn more, see our tips on writing great answers.




                                                            draft saved


                                                            draft discarded














                                                            StackExchange.ready(
                                                            function ()
                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f173218%2fmagento-2-attempt-to-load-value-of-nonexistent-eav-attribute%23new-answer', 'question_page');

                                                            );

                                                            Post as a guest















                                                            Required, but never shown





















































                                                            Required, but never shown














                                                            Required, but never shown












                                                            Required, but never shown







                                                            Required, but never shown

































                                                            Required, but never shown














                                                            Required, but never shown












                                                            Required, but never shown







                                                            Required, but never shown







                                                            Popular posts from this blog

                                                            Sum ergo cogito? 1 nng

                                                            419 nièngy_Soadمي 19bal1.5o_g

                                                            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB