EXPORT/IMPORT SYNTAX ERROR 1064
Posted: Thu Jun 13, 2013 12:52 am
HI ALL
I'm running 1.5.5.1 v of open cart and I am now trying to import products back into my store. The export works fine but when I edit the file to add new products into it and go to import it back into opencart I receive this particular error..
Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''','660726501214','','','','','',5,'CSPTMSLT0012CHOCBR',24,'',1,17.99,0,NOW(),NO' at line 1
Error No: 1064
INSERT INTO `oc_product` (`product_id`,`quantity`,`sku`,`upc`,`ean`,`jan`,`isbn`,`mpn`,`location`,`stock_status_id`,`model`,`manufacturer_id`,`image`,`shipping`,`price`,`points`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`) VALUES (197,,'','660726501214','','','','','',5,'CSPTMSLT0012CHOCBR',24,'',1,17.99,0,NOW(),NOW(),NOW(),0,0,0,9,0,0,0,0,'0','0','1','1'); in /home/content/19/7752319/html/p******/system/database/mysql.php on line 50
not sure if this could be part of the issue but for the product_id instead of numbering down each row I used a formula because it was so many to number individually? I also tried doing what the error said and no luck.. any help would be so great and much appreciated.
I'm running 1.5.5.1 v of open cart and I am now trying to import products back into my store. The export works fine but when I edit the file to add new products into it and go to import it back into opencart I receive this particular error..
Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''','660726501214','','','','','',5,'CSPTMSLT0012CHOCBR',24,'',1,17.99,0,NOW(),NO' at line 1
Error No: 1064
INSERT INTO `oc_product` (`product_id`,`quantity`,`sku`,`upc`,`ean`,`jan`,`isbn`,`mpn`,`location`,`stock_status_id`,`model`,`manufacturer_id`,`image`,`shipping`,`price`,`points`,`date_added`,`date_modified`,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`) VALUES (197,,'','660726501214','','','','','',5,'CSPTMSLT0012CHOCBR',24,'',1,17.99,0,NOW(),NOW(),NOW(),0,0,0,9,0,0,0,0,'0','0','1','1'); in /home/content/19/7752319/html/p******/system/database/mysql.php on line 50
not sure if this could be part of the issue but for the product_id instead of numbering down each row I used a formula because it was so many to number individually? I also tried doing what the error said and no luck.. any help would be so great and much appreciated.