Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE `catalog_category_product_index_tmp`SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry - Magento 2Configurable product super attribute Integrity constraint violation errorSQLSTATE[23000]: Integrity constraint violation:1062 Duplicate entry '2000734" for keyReindex error magento 1.9.X.XMagento 2 Insert data to table that contain foreign key error SQLSTATE[23000]: Integrity constraint violationIssues in upgrading from Magento 2.1.10 to 2.2.0Magento 2.2.3 - ERROR 1062 (23000) at line 368677: Duplicate entry '0' for key 'PRIMARY'Magento 2 : Unique constraint violation found when adding product, categories or mega menu itemsSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'SALES_ORDER_INCREMENT_ID_STORE_ID'While import product custom options throws error in magento 2Magento 1.9.2.1 error SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY'

Does academia have a lazy work culture?

What are the closest international airports in different countries?

When does Haskell complain about incorrect typing in functions?

Why is it considered Acid Rain with pH <5.6

What do I do with a party that is much stronger than their level?

Why isn't there any 9.5 digit multimeter or higher?

What is the most efficient way to write 'for' loops in Matlab?

Japanese reading of an integer

Defining a Function programmatically

Struggling with cyclical dependancies in unit tests

Why is the number of local variables used in a Java bytecode method not the most economical?

Is this photo showing a woman standing in the nude before teenagers real?

To find islands of 1 and 0 in matrix

3D Statue Park: Daggers and dashes

Could the rotation of a black hole cause other planets to rotate?

Why/when is AC-DC-AC conversion superior to direct AC-AC conversion?

Decreasing star count

Commercial jet accompanied by small plane near Seattle

Isolated audio without a transformer

Why was Sauron preparing for war instead of trying to find the ring?

The best place for swimming in Arctic Ocean

How much were the LMs maneuvered to their landing points?

Why is drive/partition number still used?

Old French song lyrics with the word "baiser."



Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE `catalog_category_product_index_tmp`


SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry - Magento 2Configurable product super attribute Integrity constraint violation errorSQLSTATE[23000]: Integrity constraint violation:1062 Duplicate entry '2000734" for keyReindex error magento 1.9.X.XMagento 2 Insert data to table that contain foreign key error SQLSTATE[23000]: Integrity constraint violationIssues in upgrading from Magento 2.1.10 to 2.2.0Magento 2.2.3 - ERROR 1062 (23000) at line 368677: Duplicate entry '0' for key 'PRIMARY'Magento 2 : Unique constraint violation found when adding product, categories or mega menu itemsSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'SALES_ORDER_INCREMENT_ID_STORE_ID'While import product custom options throws error in magento 2Magento 1.9.2.1 error SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY'






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








0















Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE catalog_category_product_index_tmp ADD CONSTRAINT PRIMARY KEY (category_id,product_id,store_id), COMMENT='Catalog Category Product Indexer temporary table'
enter image description here



this error come when i run setup:upgrade command in magento 2
please make some suggestions to get rid off this error










share|improve this question
























  • can you show your schema file?

    – Mohit Rane
    Jul 18 at 9:16











  • i could not understand which file i show u..?

    – Shan Haider
    Jul 18 at 10:40











  • installschema.php file

    – Mohit Rane
    Jul 18 at 10:57











  • please tell me which location exist this file...?

    – Shan Haider
    Jul 18 at 11:01











  • you said error comes start of schema creation/update right? then you must be creating table right? , file will be at app/code/Vendor/Module/Setup/ folder

    – Mohit Rane
    Jul 18 at 11:35

















0















Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE catalog_category_product_index_tmp ADD CONSTRAINT PRIMARY KEY (category_id,product_id,store_id), COMMENT='Catalog Category Product Indexer temporary table'
enter image description here



this error come when i run setup:upgrade command in magento 2
please make some suggestions to get rid off this error










share|improve this question
























  • can you show your schema file?

    – Mohit Rane
    Jul 18 at 9:16











  • i could not understand which file i show u..?

    – Shan Haider
    Jul 18 at 10:40











  • installschema.php file

    – Mohit Rane
    Jul 18 at 10:57











  • please tell me which location exist this file...?

    – Shan Haider
    Jul 18 at 11:01











  • you said error comes start of schema creation/update right? then you must be creating table right? , file will be at app/code/Vendor/Module/Setup/ folder

    – Mohit Rane
    Jul 18 at 11:35













0












0








0








Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE catalog_category_product_index_tmp ADD CONSTRAINT PRIMARY KEY (category_id,product_id,store_id), COMMENT='Catalog Category Product Indexer temporary table'
enter image description here



this error come when i run setup:upgrade command in magento 2
please make some suggestions to get rid off this error










share|improve this question
















Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE catalog_category_product_index_tmp ADD CONSTRAINT PRIMARY KEY (category_id,product_id,store_id), COMMENT='Catalog Category Product Indexer temporary table'
enter image description here



this error come when i run setup:upgrade command in magento 2
please make some suggestions to get rid off this error







database sql magento-2.2.5 setup-upgrade






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 18 at 10:10







Shan Haider

















asked Jul 18 at 8:22









Shan HaiderShan Haider

347 bronze badges




347 bronze badges












  • can you show your schema file?

    – Mohit Rane
    Jul 18 at 9:16











  • i could not understand which file i show u..?

    – Shan Haider
    Jul 18 at 10:40











  • installschema.php file

    – Mohit Rane
    Jul 18 at 10:57











  • please tell me which location exist this file...?

    – Shan Haider
    Jul 18 at 11:01











  • you said error comes start of schema creation/update right? then you must be creating table right? , file will be at app/code/Vendor/Module/Setup/ folder

    – Mohit Rane
    Jul 18 at 11:35

















  • can you show your schema file?

    – Mohit Rane
    Jul 18 at 9:16











  • i could not understand which file i show u..?

    – Shan Haider
    Jul 18 at 10:40











  • installschema.php file

    – Mohit Rane
    Jul 18 at 10:57











  • please tell me which location exist this file...?

    – Shan Haider
    Jul 18 at 11:01











  • you said error comes start of schema creation/update right? then you must be creating table right? , file will be at app/code/Vendor/Module/Setup/ folder

    – Mohit Rane
    Jul 18 at 11:35
















can you show your schema file?

– Mohit Rane
Jul 18 at 9:16





can you show your schema file?

– Mohit Rane
Jul 18 at 9:16













i could not understand which file i show u..?

– Shan Haider
Jul 18 at 10:40





i could not understand which file i show u..?

– Shan Haider
Jul 18 at 10:40













installschema.php file

– Mohit Rane
Jul 18 at 10:57





installschema.php file

– Mohit Rane
Jul 18 at 10:57













please tell me which location exist this file...?

– Shan Haider
Jul 18 at 11:01





please tell me which location exist this file...?

– Shan Haider
Jul 18 at 11:01













you said error comes start of schema creation/update right? then you must be creating table right? , file will be at app/code/Vendor/Module/Setup/ folder

– Mohit Rane
Jul 18 at 11:35





you said error comes start of schema creation/update right? then you must be creating table right? , file will be at app/code/Vendor/Module/Setup/ folder

– Mohit Rane
Jul 18 at 11:35










1 Answer
1






active

oldest

votes


















0














Check in which module is stuck the setup:upgrade and apply one of the solutions welpixel : How to fix Integrity constraint violation



or go in your database and remove the duplicated manualy, following the logic @dev_67Commerce suggested : Duplicate entry - Magento 2
Ask Question,






share|improve this answer























  • error come start of schema creation/update

    – Shan Haider
    Jul 18 at 8:59











  • i mean wich module get stucked

    – Ylgen Guxholli
    Jul 18 at 9:16











  • see my updated question

    – Shan Haider
    Jul 18 at 10:11











  • Follow the second link i showed to you

    – Ylgen Guxholli
    Jul 18 at 12:00













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%2f282490%2fintegrity-constraint-violation-1062-duplicate-entry-3-2-9-for-key-primary%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Check in which module is stuck the setup:upgrade and apply one of the solutions welpixel : How to fix Integrity constraint violation



or go in your database and remove the duplicated manualy, following the logic @dev_67Commerce suggested : Duplicate entry - Magento 2
Ask Question,






share|improve this answer























  • error come start of schema creation/update

    – Shan Haider
    Jul 18 at 8:59











  • i mean wich module get stucked

    – Ylgen Guxholli
    Jul 18 at 9:16











  • see my updated question

    – Shan Haider
    Jul 18 at 10:11











  • Follow the second link i showed to you

    – Ylgen Guxholli
    Jul 18 at 12:00















0














Check in which module is stuck the setup:upgrade and apply one of the solutions welpixel : How to fix Integrity constraint violation



or go in your database and remove the duplicated manualy, following the logic @dev_67Commerce suggested : Duplicate entry - Magento 2
Ask Question,






share|improve this answer























  • error come start of schema creation/update

    – Shan Haider
    Jul 18 at 8:59











  • i mean wich module get stucked

    – Ylgen Guxholli
    Jul 18 at 9:16











  • see my updated question

    – Shan Haider
    Jul 18 at 10:11











  • Follow the second link i showed to you

    – Ylgen Guxholli
    Jul 18 at 12:00













0












0








0







Check in which module is stuck the setup:upgrade and apply one of the solutions welpixel : How to fix Integrity constraint violation



or go in your database and remove the duplicated manualy, following the logic @dev_67Commerce suggested : Duplicate entry - Magento 2
Ask Question,






share|improve this answer













Check in which module is stuck the setup:upgrade and apply one of the solutions welpixel : How to fix Integrity constraint violation



or go in your database and remove the duplicated manualy, following the logic @dev_67Commerce suggested : Duplicate entry - Magento 2
Ask Question,







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 18 at 8:54









Ylgen GuxholliYlgen Guxholli

1,3024 silver badges15 bronze badges




1,3024 silver badges15 bronze badges












  • error come start of schema creation/update

    – Shan Haider
    Jul 18 at 8:59











  • i mean wich module get stucked

    – Ylgen Guxholli
    Jul 18 at 9:16











  • see my updated question

    – Shan Haider
    Jul 18 at 10:11











  • Follow the second link i showed to you

    – Ylgen Guxholli
    Jul 18 at 12:00

















  • error come start of schema creation/update

    – Shan Haider
    Jul 18 at 8:59











  • i mean wich module get stucked

    – Ylgen Guxholli
    Jul 18 at 9:16











  • see my updated question

    – Shan Haider
    Jul 18 at 10:11











  • Follow the second link i showed to you

    – Ylgen Guxholli
    Jul 18 at 12:00
















error come start of schema creation/update

– Shan Haider
Jul 18 at 8:59





error come start of schema creation/update

– Shan Haider
Jul 18 at 8:59













i mean wich module get stucked

– Ylgen Guxholli
Jul 18 at 9:16





i mean wich module get stucked

– Ylgen Guxholli
Jul 18 at 9:16













see my updated question

– Shan Haider
Jul 18 at 10:11





see my updated question

– Shan Haider
Jul 18 at 10:11













Follow the second link i showed to you

– Ylgen Guxholli
Jul 18 at 12:00





Follow the second link i showed to you

– Ylgen Guxholli
Jul 18 at 12:00

















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%2f282490%2fintegrity-constraint-violation-1062-duplicate-entry-3-2-9-for-key-primary%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

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

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?