0

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 enter image description here

enter image description here

6
  • Share csv screenshot that you are importing Commented 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 Commented Nov 12, 2020 at 9:08
  • Did you know to write path in correct format ? Commented 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? Commented Nov 12, 2020 at 9:27
  • yes i am using extension url: magentoworks.net/importexport-magento-category-extension Commented Nov 12, 2020 at 9:32

1 Answer 1

0

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

9
  • 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
  • Please check updated answer. Commented Nov 12, 2020 at 9:53
  • 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
  • any thing more you know ? thanks for your answers Commented Nov 12, 2020 at 10:00
  • Did you verify name of category? it should be the category name of last ID in path Commented Nov 12, 2020 at 10:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.