0

I uploaded products via .csv file but the URLs does not get created/generated. I wonder if anyone can tell whether this is the expected behavior or there is a bug?

Updated Question I have uploaded a product with "url_key" called test-url the product get uploaded without errors but url rewrite doe not get generated!

enter image description here

Thank you.

3
  • @Christoph Farnleitner Do you happen to know ? Commented Jan 8, 2018 at 9:34
  • Where did you upload the csv and what does its structure look like? What do you mean exactly with URLs not getting created? Talking about url_key? Commented Jan 8, 2018 at 9:38
  • @Christoph Farnleitner That's right "url_key" in System->Import Product and append complex data Commented Jan 8, 2018 at 9:40

1 Answer 1

1

url_key is not a mandatory attribute. Magento will assume the product's name (with some preg_replace) if not specified. This means, if your product name is for example "Test Test" your initial url_key will be test-test - even though it is not visible in the backend at this point. You may fill that field on your own while importing, but please make sure you use valid characters only to avoid confusions.

5
  • see updated question you answer isn't what I am looking for. Commented Jan 8, 2018 at 9:52
  • Did you try to run the reindexer after your import? Commented Jan 8, 2018 at 9:58
  • Yes I know what i does and it does generate all the "url_key" rewrite fine but why it does not generate when the product is inserted with .cvs file? and again is this the expected behaviour? Commented Jan 8, 2018 at 11:15
  • In general (depended on your configuration, but by default it would be set so) Magento will perform required re-indexing "on save". This means, when you create a new product manually from backend, Magento would perform these tasks in the background by the time you save the product. This however is not the case when you import products. An import basically always requires you to re-index your catalog manually. Mandatory re-indexing processes got mentioned by @Marius in this post. Commented Jan 8, 2018 at 11:42
  • 1
    That looks like to me then the expected behaviour when importing products with .csv files so I will always have to perform "Catalog URL Rewrites" Reindex Data Action. Commented Jan 8, 2018 at 12:01

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.