I am importing categories in magento 1.9 . but when i import categories it shows error "Path provided is not a valid one" how can i get exact path of category. URGENT
-
Share csv screenshot that you are importing– Shoaib MunirCommented Nov 12, 2020 at 8:31
-
category path is empty when i fetch categories. and i get path from database like "1/2/16" but it says not valid path– Syze DeveloperCommented Nov 12, 2020 at 9:08
-
Did you know to write path in correct format ?– Syze DeveloperCommented Nov 12, 2020 at 9:11
-
As far as I know, there is not import category feature in magento 1.9, are you using any external plugin?– Shoaib MunirCommented Nov 12, 2020 at 9:27
-
yes i am using extension url: magentoworks.net/importexport-magento-category-extension– Syze DeveloperCommented Nov 12, 2020 at 9:32
1 Answer
The path that you are using is not invalid "1/2/16"
What giving you the error is the wrong ID of category. Make sure all the IDs in path are valid category IDs.
In magento 1.9, mostly category path starts with 2 Since 2 is the default category ID.
#Edit:
One more thing to ensure: Last ID of path should be equal to the name of the category. Like ID 16 name should be equal to the name in csv
#Edit 2:
You need to dubug function getCategoryIdFromPath()
in file app\code\local\Mageworks\Import\Helper\Category.php
This is the function responsible for the error that you are facing.
If this function returns empty array then error will appear
-
i tried like "2/16" but i says not valid . is it correct syntax like"2/16/37" ? Commented Nov 12, 2020 at 9:51
-
-
i tried by using small letter names for column then it says invalid header. yes ID's are correct Commented Nov 12, 2020 at 9:59
-
-
Did you verify name of category? it should be the category name of last ID in path Commented Nov 12, 2020 at 10:03