1

I have made an upload file with both simple and configurable products. I have also specified all the necessary configurable_variations.

I am using the Add/Update import behaviour

When I click Check Data there are no errors in the Validation results

Validation Result

However, when I click import, I get Maximum error count has been reached or system error is occurred!and Invalid URL key.

enter image description here

The url_key column for all the products is empty.

So far, the solutions like this one that I have come across are not helping.

How can go about solving this error and import products successfully.

Thanks in advance!

2
  • Did you ever get a solution to this issue? We're have the exact same issue importing into 2.4
    – Caleb
    Commented Aug 24, 2022 at 20:14
  • It has been a while! But what I recall is that there were issues with the category url column. When those were solved, import was possible.
    – Esseme
    Commented Aug 26, 2022 at 6:32

4 Answers 4

7

Issue may be in your category url column. In my case there were two consecutive commas in category URL.

0

Found something related to this question please refer this link.

Magento 2 product import error

hope it will be helpful.

1
  • Thanks @Dimple Panchal I came across that link but it wasn't helpful, what is working for me at moment is breaking down the one file into multiple files. This seems to products imported successfully.
    – Esseme
    Commented Mar 19, 2020 at 11:18
0

Either 2 consecutive commas are in the Category URL or you may have the Category URL ending with a comma - this was an error for me that I resolved when I became aware the Category can't end with a comma

0

Had the same problem with the product import - it was in the import file itself. For one product, one of the categories was specified as "Default Category/", which is an obvious error, but almost impossible to spot in the file with a few thousand lines and multiple categories for each product.

I think Magento might be doing a better job with providing more details for the error, but in the meantime, my recommendation to find what exactly triggers the error, place debug stopping point at vendor/magento/module-catalog-url-rewrite/Observer/CategoryUrlPathAutogeneratorObserver.php:validateUrlKey() and go upstream to find what lines triggers an error.

Hope it saved someone a few minutes

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.