I am trying to update multiple product variants with bulkOperationRunMutation but it is giving me an obscure error.
I have download the jsonl file from bulkOperationRunQuery query, updated the data, uploaded the jsonl file to s3, and tried making a graphql request from the Shopify graphql app but I am given the following response.
The query and the response are as follows:
mutation {
bulkOperationRunMutation(
mutation: "mutation call($input: ProductInput!) { productVariantUpdate(input: $input) { product { id title } productVariant {id price compareAtPrice } userErrors {field message } } }"
stagedUploadPath: "https://shopify-bulk-update.s3.amazonaws.com/uuid/product-variants.jsonl"
) {
bulkOperation {
id
url
status
}
userErrors {
code
message
field
}
}
}
{
"data": {
"bulkOperationRunMutation": {
"bulkOperation": null,
"userErrors": [
{
"code": "BULK_MUTATION_USER_ERROR_CODE",
"message": "Unexpected error - https://shopify-bulk-update.s3.amazonaws.com/uuid/product-variants.jsonl not valid for shop 26304872500, bucket bulk/",
"field": null
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 990,
"restoreRate": 50
}
}
}
}
This error message doesn’t have any documentation. Is there some place where I can get a better understanding of this error? Any idea what is causing this error?
Thank you.