Integrity constraint violation error when saving product (google experiments on)Imported products show up in backend but not on front endMagento 2 - Adding 2 (or more) configurable products to cart with custom options causes Integrity constraint violationMagento 2 Insert data to table that contain foreign key error SQLSTATE[23000]: Integrity constraint violationMagento 2: Creating product with custom OptionsMagento 2:SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'entity_id' in where clause is ambiguousSaving a product gives SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint failsMagento 2 Admin login ProblemData Migration From Magento 1.9.1 to 2.1.9Random integrity constraint errors saving orders in Magento 2.1 after paymentM2 - disappearing image after

What is the term for a person whose job is to place products on shelves in stores?

Should the Product Owner dictate what info the UI needs to display?

Is there metaphorical meaning of "aus der Haft entlassen"?

Why do games have consumables?

My bank got bought out, am I now going to have to start filing tax returns in a different state?

Extracting Dirichlet series coefficients

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

Multiple fireplaces in an apartment building?

Partitioning values in a sequence

What does "function" actually mean in music?

Island of Knights, Knaves and Spies

How do I reattach a shelf to the wall when it ripped out of the wall?

Can a barbarian keep raging if she shoves an enemy on her turn?

Who's the random kid standing in the gathering at the end?

Is this a typo in Section 1.8.1 Mathematics for Computer Science?

Combinatorics problem, right solution?

Injection into a proper class and choice without regularity

Older movie/show about humans on derelict alien warship which refuels by passing through a star

How can I get rid of an unhelpful parallel branch when unpivoting a single row?

Co-worker works way more than he should

Why is the underscore command _ useful?

Mistake in years of experience in resume?

Nails holding drywall

Rudin 2.10 (b) Example



Integrity constraint violation error when saving product (google experiments on)


Imported products show up in backend but not on front endMagento 2 - Adding 2 (or more) configurable products to cart with custom options causes Integrity constraint violationMagento 2 Insert data to table that contain foreign key error SQLSTATE[23000]: Integrity constraint violationMagento 2: Creating product with custom OptionsMagento 2:SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'entity_id' in where clause is ambiguousSaving a product gives SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint failsMagento 2 Admin login ProblemData Migration From Magento 1.9.1 to 2.1.9Random integrity constraint errors saving orders in Magento 2.1 after paymentM2 - disappearing image after






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am trying to edit configurable product and getting error. I am using Magento version 2.1.2



Steps to reproduce:



  1. Go to admin -> Stores -> Configuration -> Sales -> Google API section


  2. Change the configuration Enable Content Experiments to "Yes"


  3. Save a configurable product and its child product consecutively.


Expected result:



  1. Product should be save successfully with any number of times.

Actual result:



  1. failed to save product


  2. getting bellow error:



SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
'0-402-product' for key
'GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE', query was:
UPDATE googleoptimizer_code SET entity_id = ? WHERE (code_id='136')




Anyone can help me to fix this issue?










share|improve this question






























    0















    I am trying to edit configurable product and getting error. I am using Magento version 2.1.2



    Steps to reproduce:



    1. Go to admin -> Stores -> Configuration -> Sales -> Google API section


    2. Change the configuration Enable Content Experiments to "Yes"


    3. Save a configurable product and its child product consecutively.


    Expected result:



    1. Product should be save successfully with any number of times.

    Actual result:



    1. failed to save product


    2. getting bellow error:



    SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
    '0-402-product' for key
    'GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE', query was:
    UPDATE googleoptimizer_code SET entity_id = ? WHERE (code_id='136')




    Anyone can help me to fix this issue?










    share|improve this question


























      0












      0








      0








      I am trying to edit configurable product and getting error. I am using Magento version 2.1.2



      Steps to reproduce:



      1. Go to admin -> Stores -> Configuration -> Sales -> Google API section


      2. Change the configuration Enable Content Experiments to "Yes"


      3. Save a configurable product and its child product consecutively.


      Expected result:



      1. Product should be save successfully with any number of times.

      Actual result:



      1. failed to save product


      2. getting bellow error:



      SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
      '0-402-product' for key
      'GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE', query was:
      UPDATE googleoptimizer_code SET entity_id = ? WHERE (code_id='136')




      Anyone can help me to fix this issue?










      share|improve this question
















      I am trying to edit configurable product and getting error. I am using Magento version 2.1.2



      Steps to reproduce:



      1. Go to admin -> Stores -> Configuration -> Sales -> Google API section


      2. Change the configuration Enable Content Experiments to "Yes"


      3. Save a configurable product and its child product consecutively.


      Expected result:



      1. Product should be save successfully with any number of times.

      Actual result:



      1. failed to save product


      2. getting bellow error:



      SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
      '0-402-product' for key
      'GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE', query was:
      UPDATE googleoptimizer_code SET entity_id = ? WHERE (code_id='136')




      Anyone can help me to fix this issue?







      magento-2.1






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 25 '17 at 8:07









      Teja Bhagavan Kollepara

      2,99241950




      2,99241950










      asked Feb 12 '17 at 12:33









      Lalit KaushikLalit Kaushik

      39221127




      39221127




















          2 Answers
          2






          active

          oldest

          votes


















          0














          I found the solution. To fix this issue I edit configurations options and its worked for me. please refer this link http://prntscr.com/e7px78






          share|improve this answer






























            0














            If you don't use google experiments you can just truncate googleoptimizer_code






            share|improve this answer























              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%2f159434%2fintegrity-constraint-violation-error-when-saving-product-google-experiments-on%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              I found the solution. To fix this issue I edit configurations options and its worked for me. please refer this link http://prntscr.com/e7px78






              share|improve this answer



























                0














                I found the solution. To fix this issue I edit configurations options and its worked for me. please refer this link http://prntscr.com/e7px78






                share|improve this answer

























                  0












                  0








                  0







                  I found the solution. To fix this issue I edit configurations options and its worked for me. please refer this link http://prntscr.com/e7px78






                  share|improve this answer













                  I found the solution. To fix this issue I edit configurations options and its worked for me. please refer this link http://prntscr.com/e7px78







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 12 '17 at 14:18









                  Lalit KaushikLalit Kaushik

                  39221127




                  39221127























                      0














                      If you don't use google experiments you can just truncate googleoptimizer_code






                      share|improve this answer



























                        0














                        If you don't use google experiments you can just truncate googleoptimizer_code






                        share|improve this answer

























                          0












                          0








                          0







                          If you don't use google experiments you can just truncate googleoptimizer_code






                          share|improve this answer













                          If you don't use google experiments you can just truncate googleoptimizer_code







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Oct 3 '17 at 22:57









                          Łukasz JurysŁukasz Jurys

                          1




                          1



























                              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%2f159434%2fintegrity-constraint-violation-error-when-saving-product-google-experiments-on%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

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form