Uploading Product Images Unexpected Behaviour

I’m using the GraphQL productSet request to update my products and also update the images associated with the product.

I’ve set the “duplicateResolutionMode” to “REPLACE”, but it still delivers some unexpected behaviour:

  1. If there is already an image there, it seems to just delete this image and not replace it
  2. When there is no image there, after the request, the image appears in the admin API, BUT, it shows an incremental number of images despite only one image being present. See attached image:

For point #2, I have run a separate GraphQL request to check the number of associated images and the query request only shows one image associated with the product. See attached for screenshot:

#1 - I need a fix for this as this is unreliable behaviour
#2 - Is more curious and concerning, but ultimately the shop website only shows one image.

Has anyone else had a similar experience?

On the off chance that anyone from Shopify sees this, I have tested some more requests:

Request ID: 85ea2e2b-d1f8-43fb-aa27-fb96d3de028f-1746009627
Behaviour: Product previously had an image. Result, old image deleted, replacement not present.

Request ID: 08992094-0684-49e7-883f-3a1eae368787-1746009778
Behaviour: Product started with no image. Result, replacement image now present.

Hey @edstevo

This looks similar to this thread here: productSet Mutation with duplicateResolutionMode: REPLACE Causes Images to Disappear Every Other Time

I’m taking a look to see what I can find. Thanks for sharing those request id’s.

Thanks for responding.

Yes, seems like exactly the same experience. Looking forward to a resolution! :+1:

Hey! This issue should be resolved now. Let me know if you’re still seeing this issue after this.