Re: Get error "Handle has already been taken" when import csv file two times or more

Get error "Handle has already been taken" when import csv file two times or more

HvH
Shopify Partner
2 0 1

I'm doing a feature by use bulkOperationRunMutation to import product via csv file. Everything ok in the first time but if i import a same file again, i get error Handle has already been taken even handle in csv file is blank

HvH_0-1695020907976.png

 

Replies 2 (2)

JonasS
Shopify Partner
73 8 12

Product handle should be unique in Shopify. So I think you should delete all the products you imported the first time. And then import product list again.
Generally, the handle is generated due to product title.

Cobo-Sf : Your needs, our speed – Together, we succeed!
Feel free to let us know what you really want to change for your client.
HvH
Shopify Partner
2 0 1

Yes, shopify not only auto generate handle from title but also can add number after it to unique handle

eg: if already "example-handle", shopify will generate "example-hanlde-1"

So I wonder why when import by csv via bulkOperationRunMutation in the second time, it seem shopify not work properly