Issue: Users encounter a generic “Something went wrong, please try again” error when using the productVariantsBulkCreate mutation, making troubleshooting difficult.
Root Cause Identified:
The error occurs when both id and optionId are passed within the optionValues array
Removing the REMOVE_STANDALONE_VARIANT strategy and passing option values directly in the query (instead of using both ID fields) resolves the issue
Additional Problems:
Similar non-descriptive errors appear in productSet mutation (API versions 2024-07 and 2024-10)
Older API versions provide more useful error messages (e.g., “daily variation limit exceeded”)
Documentation at shopify.dev appears outdated
Shopify Response:
Team member Liam acknowledged the issue and flagged it to the product team for improved error messaging
Status: Workaround confirmed by multiple users, but underlying error message clarity remains unresolved
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.
Hi, I am trying to run a mutation to create variants for a product.
My steps:
Create product
Create product options
Create variants
I create the options, then get their IDs and add them in the input for the variants. When running that productVariantsBulkCreateMutation, I get only the message “Something went wrong, please try again”. I checked my input and I’m sure it’s correct (the documentation page for https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/productvariantsbulkcreate is a bit outdated by the way). I have tried using different API versions but same result. If I for example give it a wrong ID, then in the response I get “blabla was given wrong ID”.
Only one thing I notice, I have for example 10 values in the “Color” option, but after making product options only 1 is shown in the /admin on the site. In graphql I do get all of the values, and it says it created the “color” option with those 10 values.
I have the same problem. I copied the example from the documentation, slightly changed the input data and got an error that is not clear how to fix it.
I am using api version - 2024-07.
mutation productVariantsBulkCreate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
productVariantsBulkCreate(productId: $productId, variants: $variants) {
userErrors {
field
message
}
product {
id
options {
id
name
values
position
optionValues {
id
name
hasVariants
}
}
}
productVariants {
id
title
selectedOptions {
name
value
}
}
}
}
Hey @Liam i am having the same non descriptive error while using productSet mutation with GraphQL API 2024-07 and 2024-10 release candidate, the problem is not reported back to the user in a descriptive way only a generic message saying “Something went wrong” but when I used a previous API version and the mutation productCreate, then I receive a more useful error about daily variation limit exceeded, please communicate this to fix the error message.
Here is my cURL that was triggering the error: