Jump to content

Error al importar csv: duplicate entry


Recommended Posts

Hola. En mi tienda, el id de los productos es una referencia de 6 dígitos.

Suelo importar semanalmente el catálogo para actualizar stock y precios.

Desde que actualicé a 1.6, aunque marque las opciones de forzar ID o usar referencia como clave, no puedo importar. El error es el siguiente:

  [PrestaShopDatabaseException]

Duplicate entry '...' for key 'PRIMARY'

 

INSERT INTO `ps_product` (`id_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 ('150129.5', '1', '0', '0', '150129.5', '150129.5', '', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '1', '2', '0', '0', '0', '1', '8.681818', '9.55', '', '0', '0', '0', '0', '0', '1', '', '0', '1', '0000-00-00', 'new', '1', '0', 'both', '0', '0', '2015-04-14 15:04:55', '0000-00-00', '3')

at line 646 in file classes/db/Db.php

641. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);642. 		}643. 		elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))644. 		{645. 			if ($sql)646. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');647. 			throw new PrestaShopDatabaseException($this->getMsgError());648. 		}649. 	}650. 651. 	/**

 

Por favor, si me pueden ayudar, estaría muy agradecida. He intentado resetear sin éxito el auto-increment en la tabla ps_product, pero no puedo.post-439205-0-53052100-1429018838_thumb.jpg

 

url: lafarmaciadesara.com

versión de prestashop: 1.6.0.14

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...