sanaullahkhan81 Posted November 12, 2013 Share Posted November 12, 2013 (edited) Hi All, I am getting below error while importing csv file for product [PrestaShopException] Property FeatureValue->value is not valid at line 874 in file classes/ObjectModel.php 868. 869. $message = $this->validateField($field, $value, $id_lang); 870. if ($message !== true) 871. { 872. if ($die) 873. throw new PrestaShopException($message); 874. return $error_return ? $message : false; 875. } 876. } 877. } 878. ObjectModelCore->validateFieldsLang - [line 306 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 490 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->add - [line 163 - classes/FeatureValue.php] - [2 Arguments] FeatureValueCore->add - [line 154 - classes/FeatureValue.php] - [0 Argument] FeatureValueCore::addFeatureValueImport - [line 1475 - controllers/admin/AdminImportController.php] - [2 Arguments] AdminImportControllerCore->productImport - [line 2722 - controllers/admin/AdminImportController.php] - [0 Argument] AdminImportControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin8627/index.php] - [0 Argument] Edited November 12, 2013 by sanaullahkhan81 (see edit history) Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 12, 2013 Share Posted November 12, 2013 Hi, this error log is very informative: 1) Property FeatureValue->value is not valid 2) FeatureValueCore::addFeatureValueImport - [line 1475 - controllers/admin/AdminImportController.php] - [2 Arguments] so you can edit your csv file or if you don't know how, you can process dubug from 1475 line of AdminImportController.php Regards Link to comment Share on other sites More sharing options...
sanaullahkhan81 Posted November 12, 2013 Author Share Posted November 12, 2013 [sLOVED] I have rechecked my CSV file and found My Features has to be in this way Feature(Name:Value:Position) i was missing colon( in between name and value. Link to comment Share on other sites More sharing options...
Recommended Posts