Need Help for variantupdate via bulkOperationRunMutation

pawanthalia
Shopify Partner
8 0 0


Trying to update variants via bulkOperationRunMutation  this is my input jsonl 

[{"input":{"id":"gid://shopify/ProductVariant/31520951566420","price":45}},{"input":{"id":"gid://shopify/ProductVariant/32231027048532","price":45}},{"input":{"id":"gid://shopify/ProductVariant/32231027081300","price":45}},{"input":{"id":"gid://shopify/ProductVariant/32231027114068","price":45}},{"input":{"id":"gid://shopify/ProductVariant/32231027146836","price":45}},{"input":{"id":"gid://shopify/ProductVariant/32231027179604","price":45}},{"input":{"id":"gid://shopify/ProductVariant/32231027212372","price":45}}] 


and 
once file is created calling bulk operation using below query 

mutation {
  bulkOperationRunMutation(
    mutation: "mutation call($input: ProductVariantInput!) {  productVariantUpdate(input: $input) {    productVariant {      id    }    userErrors {      message      field    }  }}",
    stagedUploadPath: "tmp/28477456468/bulk/64340765-5f5c-4654-9de5-7c13aa7ee8b5/bulk_op_vars") {
    bulkOperation {
      id
      url
      status
    }
    userErrors {
      message
      field
    }
  }
}

 

But I'm getting following error  

  "message""Unexpected error - tmp/28477456468/bulk/64340765-5f5c-4654-9de5-7c13aa7ee8b5/bulk_op_vars not valid for shop 39521845415, bucket bulk/",
           


0 Likes
awwdam
Shopify Staff
Shopify Staff
135 12 10

Hey @pawanthalia, would you be able to share an x-request-id headed from a recent request that returned the error mentioned here? With that I would be happy to take a closer look, cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes