Hello
I'm using Magento ver. 2.4.7-p3 and I am attempting to add new products to the site via the built in Import Feature. When I attempt to add a product to an already existing category I am getting the following:
default Category/my-categeory-name/my-category-name" has not been created. URL key for specified store already exists. in row(s): 1
I agree that the category name does already exist, but I'm not trying to add a new category, I'm trying to add a product to the already existing category.
I am selecting the add/update drop down option
in the csv I am adding the values to a header called Category and the value I'm attempting to add is:
categories |
Default Categorymy-categeory-name/my-category-name |
The error usually happens if the category path in your CSV doesn’t match exactly with Magento's structure. Make sure the Category column uses the full path, like Default Category/my-category-name. Also, check for extra spaces or typos. If the issue persists, reindex and clear the cache after the import:
php bin/magento indexer:reindex
php bin/magento cache:flush
Let me know if that helps!
This issue in Magento 2.4.7-p3 usually happens due to a mismatch in category paths or incorrect formatting in the CSV file. Ensure that the category path in your CSV exactly matches the existing category structure, including case sensitivity. Also, try using just the category name instead of the full path. If the problem persists, manually reassigning a product to the category in the admin panel and then exporting it can help identify the correct format. For those dealing with app-related automation and deployment, https://b9game.pureapk.io/ might be worth checking out.