productVariantUpdate bulk mutation internal error.

productVariantUpdate bulk mutation internal error.

risvey_hasan
Visitor
3 0 0

Hello, I have been trying to update my products price and CompareAtPrice using graphiql bulk mutaion operation.

My code is:

mutation {
bulkOperationRunMutation(mutation: "mutation call($input: ProductVariantInput!) {productVariantUpdate(input: $input) {productVariant {id price compareAtPrice}userErrors {field message}}}",
stagedUploadPath: "tmp/67714973969/bulk/5c06f7e5-029f-40d1-b668-e6a21f903310/price_update") {
bulkOperation {
id
url
status
}
userErrors {
message
field
}
}
}

My input variable samples:

{"input": {"id": "gid://shopify/ProductVariant/43752646574353", "price": 165.0, "compareAtPrice": 138.73}}
{"input": {"id": "gid://shopify/ProductVariant/43752646803729", "price": 66.0, "compareAtPrice": 56.23}}

I can successfully upload the variables every time, but whenever I try to run the bulk mutation operation I get Internal Error, Looks like something went wrong on our end:

{
  "errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 2774beae-4767-4817-86ad-61156842a870 (include this in support requests).",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "2774beae-4767-4817-86ad-61156842a870"
      }
    }
  ]
}

Anyone could help me figure this out?
I tried contacting support as well, but they said they are not trained on this.

@daniftinca

 

Replies 2 (2)

daniftinca
Shopify Partner
4 0 3

Usually, when I get this error it starts working again on its own after some time.

risvey_hasan
Visitor
3 0 0

Is there anything wrong in my code that I should be worried about or just keep trying after some time?