A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I am trying to send a bulk ProductVariant Update Mutation, but I receive this message:
Internal error. Looks like something went wrong on our end. Request ID: 674480af-3d69-4281-9831-10cac056264f (include this in support requests)., extensions - code - INTERNAL_SERVER_ERROR, requestId - 674480af-3d69-4281-9831-10cac056264f
Can someone help?
This is the mutation:
mutation
{
bulkOperationRunMutation(
mutation: "mutation call($input: ProductVariantInput!)
{
productVariantUpdate(input: $input)
{
product
{
title
}
productVariant
{
id
}
userErrors
{
field
message
}
}
}",
stagedUploadPath: "tmp/50912657566/bulk/a7f9ea9d-2864-404b-8dc1-c9e860fb39e6/bulk_op_vars")
{
bulkOperation
{
id
url
status
}
userErrors
{
message
field
}
}
}
$input is this array:
array (
0 =>
array (
'input' =>
array (
'id' => 'gid://shopify/ProductVariant/41858031190174',
'sku' => '8002910017477',
'barcode' => '8002910017477',
'productId' => 'gid://shopify/Product/7263010029726',
'inventoryManagement' => 'shopify',
'inventoryPolicy' => 'DENY',
'price' => 1.84,
'inventoryItem' =>
array (
'cost' => 1.02,
'tracked' => true,
),
'inventoryQuantities' =>
array (
0 =>
array (
'availableQuantity' => 734.0,
'locationId' => 'gid://shopify/Location/57309921438',
),
),
'requiresShipping' => true,
),
),
1 =>
array (
'input' =>
array (
'id' => 'gid://shopify/ProductVariant/41858031222942',
'sku' => '8015194504649',
'barcode' => '8015194504649',
'productId' => 'gid://shopify/Product/7263010062494',
'inventoryManagement' => 'shopify',
'inventoryPolicy' => 'DENY',
'price' => 2.81,
'inventoryItem' =>
array (
'cost' => 1.81,
'tracked' => true,
),
'inventoryQuantities' =>
array (
0 =>
array (
'availableQuantity' => 555.0,
'locationId' => 'gid://shopify/Location/57309921438',
),
),
'requiresShipping' => true,
),
)