php - PDO Exception, Duplicate Entry . While I try to re-index my data in magento -


i trying re-index data in magento. indexes working ok except "product attributes", current status stuck on "processing". when try index using magento admin panel, shows below error.

magento admin panel error. error

and when try re-index data through shell using command " php indexer.php --reindexall ", throws following exception

    product attributes index process unknown error: exception 'pdoexception' message 'sqlstate[23000]: integrity constraint vio                                                                                        lation: 1062 duplicate entry '163-137-1-74' key 'primary'' in /home/emperorh                                                                                        ome/public_html/lib/zend/db/statement/pdo.php:228  next exception 'zend_db_statement_exception' message 'sqlstate[23000]: inte                                                                                        grity constraint violation: 1062 duplicate entry '163-137-1-74' key 'primary                                                                                        '' in /home/emperorhome/public_html/lib/zend/db/statement/pdo.php:234 stack trace: product prices index rebuilt catalog url rewrites index rebuilt category products index rebuilt catalog search index index rebuilt stock status index rebuilt tag aggregation data index rebuilt 

i unable locate real problem is. don't know making duplicate entry, new magento. highly appreciated.

regards

it must error in product's 163 attribute 137(attribute id.).just unset of of attribute (137 attribute id)of product , save product(product id 163).after indexing product attribute.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -