magento 2.2.3 完整性约束违规:1062 密钥“PRIMARY”的重复条目“18274-0-1”

max*_*axi 5 magento

在通过迁移工具从 Magento 1 迁移数据后的 Magento 2.2.3 实例上,我们在 exceptions.log 中收到以下错误。这家商店工作正常,但是这个错误仍然存​​在,我无法真正确定它。任何想法的方法?

[2018-10-01 09:00:08] main.CRITICAL: SQLSTATE[23000]: 完整性约束违规:1062 键 'PRIMARY' 的重复条目 '18274-0-1',查询是: INSERT INTO catalog_product_index_price_tempSELECT catalog_product_index_price_final_tempentity_id, catalog_product_index_price_final_temp. customer_group_id, catalog_product_index_price_final_temp. website_id, catalog_product_index_price_final_temp. tax_class_id, catalog_product_index_price_final_temp. orig_priceAS pricecatalog_product_index_price_final_temppriceAS final_pricecatalog_product_index_price_final_tempmin_price, catalog_product_index_price_final_temp. max_price, catalog_product_index_price_final_temp. tier_priceFROM catalog_product_index_price_final_temp{"exception":"[object] (Magento\Framework\Exception\LocalizedException(code: 0): SQLSTATE[23000]: 完整性约束违规:1062 Duplicate entry '18274-0-1' for key 'PRIMARY', query是: INSERT INTO catalog_product_index_price_tempSELECT catalog_product_index_price_final_temp. entity_id, catalog_product_index_price_final_temp. customer_group_id, catalog_product_index_price_final_temp. website_id, catalog_product_index_price_final_temp. tax_class_id,catalog_product_index_price_final_temp. orig_priceAS pricecatalog_product_index_price_final_temppriceAS final_pricecatalog_product_index_price_final_tempmin_price, catalog_product_index_price_final_temp. max_price, catalog_product_index_price_final_temp. tier_pricecatalog_product_index_price_final_temp/.../public_html/vendor/magento/module-catalog/Model/Indexer/Product/Price/Action/Row.php:32, Magento\Framework\DB\Adapter\DuplicateException(code: 1062): SQLSTATE[ 23000]:违反完整性约束:1062 键“PRIMARY”的重复条目“18274-0-1”,查询为:INSERT INTO catalog_product_index_price_tempSELECT catalog_product_index_price_final_tempentity_id, catalog_product_index_price_final_temp. customer_group_id, catalog_product_index_price_final_temp. website_id, catalog_product_index_price_final_temp. tax_class_id, catalog_product_index_price_final_temp. orig_priceAS pricecatalog_product_index_price_final_temppriceAS final_pricecatalog_product_index_price_final_tempmin_price, catalog_product_index_price_final_temp. max_price, catalog_product_index_price_final_temp. tier_pricecatalog_product_index_price_final_temp在 /.../public_html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:555, Zend_Db_Statement_Exception(代码:23000):SQLSTATE[23000]:违反完整性约束:1062 重复条目 '18274-0- 1' 键 'PRIMARY',查询是: INSERT INTO catalog_product_index_price_tempSELECT catalog_product_index_price_final_tempentity_id, catalog_product_index_price_final_temp. customer_group_id, catalog_product_index_price_final_temp. website_id, catalog_product_index_price_final_temp. tax_class_id, catalog_product_index_price_final_temp. orig_priceAS pricecatalog_product_index_price_final_temppriceAS final_pricecatalog_product_index_price_final_tempmin_price, catalog_product_index_price_final_temp. max_price, catalog_product_index_price_final_temp. tier_pricecatalog_product_index_price_final_temp 在 /.../public_html/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:235, PDOException(code: 23000): SQLSTATE[23000]: 完整性约束违规:1062 重复条目 '18274- /.../public_html/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228)"} []