2017-01-18 31 views
0

我試圖導入包含產品CSV和我得到以下錯誤:重複條目「4294967295」關鍵「PRIMARY」。 CSV不包含帶ID的列,但包含一個包含產品參考的列,該列對每個產品都是唯一的。在導入時,只有第一行(第一個產品)被插入到數據庫中。的Prestashop導入CSV錯誤 - 在<strong>的Prestashop 1.6.1.9</strong>重複條目重點小學

通過CSV導入導入時,我使用的是「使用產品的參考關鍵」設置爲。參考代碼是這樣的:A.VOO3211515113QDISCOVERERSTTA.VXX32115156113SMA761OWL等。

這是錯誤生成的SQL:

INSERT INTO `psmo_product` (`id_shop_default`, `id_manufacturer`, `id_supplier`, `reference`, `supplier_reference`, `location`, `width`, `height`, `depth`, `weight`, `quantity_discount`, `ean13`, `upc`, `cache_is_pack`, `cache_has_attachments`, `is_virtual`, `id_category_default`, `id_tax_rules_group`, `on_sale`, `online_only`, `ecotax`, `minimal_quantity`, `price`, `wholesale_price`, `unity`, `unit_price_ratio`, `additional_shipping_cost`, `customizable`, `text_fields`, `uploadable_files`, `active`, `redirect_type`, `id_product_redirected`, `available_for_order`, `available_date`, `condition`, `show_price`, `indexed`, `visibility`, `cache_default_attribute`, `advanced_stock_management`, `date_add`, `date_upd`, `pack_stock_type`) VALUES ('1', '3', '0', 'A.IBR309515104QDMZ3RBT', '', '', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '45', '1', '0', '0', '0', '1', '188.903', '0', '', '0', '0', '0', '0', '0', '1', '', '0', '1', '0000-00-00', 'new', '1', '0', 'both', '0', '0', '2017-01-18 11:47:05', '2017-01-18 11:47:05', '3') 

回答

1

你的問題可能是因爲在你psmo_product表舊剩餘的數據,甚至是壞的配置序列產品ID生成的。

您應該清理您的目錄(如果你能),並再次上傳。我建議你免費模塊pscleaner。如果你手動這樣做,你也必須檢查psmo_product_shop

祝你好運。