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