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

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