Jump to content

[SLOVED] Importing CSV file for Product show an Error


Recommended Posts

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 by sanaullahkhan81 (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...