Shopify URL handles
Shopify “Handle 'x' already in use. Please provide a new handle.”
What you’ll need
Shopify’s free GraphiQL app (with read_products, write_products (pages: read_online_store_pages, write_online_store_pages; blog posts: read_content, write_content) access)
How to get this: Shopify’s free GraphiQL app
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
Your new handles, or the clean-up you want (for example removing copy-of- and -1 from duplicated products)
Check handles before you change them
Where you see it
productUpdate (and collectionUpdate, pageUpdate and articleUpdate) return it as a userError on the field ["input", "handle"], for example “Handle 'summer-dress' already in use. Please provide a new handle.” The item keeps its old handle. In a batch of aliased changes, the other changes still go through, so only the failed rows need a second look.
Three ways to fix it
- Pick a different handle: add a color, size or material (summer-dress-blue).
- Change the other item first. If it’s an old copy or a draft you don’t need, give it a new handle or delete it, then run your change again.
- If you’re swapping two handles, move one to a temporary handle first, then make the other change, then the final one.
Avoid it in a bulk change
The URL Handle Changer checks every new handle against all the handles you loaded and against the rest of the batch before it writes any GraphQL. Clashes show as a problem and are left out. When a handle is freed by another change in the same batch, it flags it so you run the batches in order, and offers a retry for anything that failed.
Does a collection clash with a product?
No. Handles only need to be unique within a type. A collection can use a handle a product already has, because their addresses differ (/collections/summer-sale and /products/summer-sale).
Related tools and guides
- Translated URL Handle Builder
Handles for each language