Why does importing a CSV file only add one product to my store?

when i want import this csv file to my store, only one product imported,why? please answer me. thanks.

@SajjadRadmehr

Welcome to the Community!

When importing a CSV file, you will receive an email that outlines what products were successful, and which products failed. If there are products that failed, the email will provide the reason why they failed so you can make the appropriate changes to your CSV file.

Here are the errors your CSV produces:

Failed:

  • Line 2-32: Validation failed: The variant ‘black’ already exists.

Ignored:

  • Line 33-38: ignored because it did not contain product data

Reviewing your CSV file, you have the same handle for all 32 rows. That tells the system you only have one product in the CSV as the handle is the unique identifier for each product. If these are all different products, then you’d need to change the handle for every new product.

For example, if you have a sweater, with 4 variant options, then you’d have four lines with the same handle. This is one product.

I would recommend reviewing our CSV document as this will provide further insight into how the CSV files work. It’ll help guide you in the changes you need to make in order to successfully import your CSV file to your store.