BUG: Updating Fulfillment Service of Product Variant

Updating a fulfillment service of a variant require the field “sku” to be not blank when setting the fulfillment service to an external fulfillment service.

However when I try to update a variant’s fulfillment service, the sku is usually empty by default. So I set the sku together with the fulfillment service id using the graphql productVariantUpdate mutation with this ProductVariantInput:

{
“id”: “gid://shopify/ProductVariant/”,
“sku”: “”,
“fulfillmentServiceId”: “gid://shopify/FulfillmentService/?id=true”
}

However I get an error “‘sku’ can’t be blank”. This used to work without any problems before.

For now I make it work by doing separate mutations. First by updating the sku, then setting the fulfillment service id afterwards.

It seems like an unexpected behavior to require an sku even though the sku is explicitly given in the update input

1 Like

@Kyell
Welcome to Shopify community,
error “‘sku’ can’t be blank”

The reason why these errors are being thrown is because this specific Product (ID: 4454726828086) example has invalid Product Variants associated to it due to their blank SKUs.
Due to these invalid Product Variants with blank SKUs, you cannot make any updates to this specific Product with PUT requests until these Variants and their issues are resolved.

@Zworthkey , thanks for the response.

I understand that updating some fields require the product variant to have an SKU. However, I am providing the SKU in the same request/mutation when I’m updating those field/s. Wouldn’t providing the SKU in the same mutation still meet the validation that sku can't be blank?