cancel
Showing results for 
Search instead for 
Did you mean: 

Cant Add Product to Category via Import

Cant Add Product to Category via Import

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
1 REPLY 1

Re: Cant Add Product to Category via Import


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!