Main issue: Shopify shows an error when saving a product: “The following image IDs do not exist or do not belong to the product,” listing numeric IDs. Image IDs are internal references; variants (e.g., sizes like S/M/L) may still point to images that were deleted or no longer belong to the product.
Common causes noted:
Duplicating a product copied images that later got removed or replaced.
Replacing/compressing product photos, then removing originals while variants still referenced them.
Deleting all product photos, leaving variants with missing image assignments.
Fixes that worked for several users:
Remove/replace copied images on duplicated products.
Re-upload product images and explicitly set each variant’s featured image to a current image.
Ensure every variant has an image; some resolved it by giving each variant a distinct photo.
If all photos were deleted, add images back to the listing and assign them to variants.
Open questions: Multiple users asked how to “unattach” orphaned IDs from variants; no step-by-step process was provided. Mapping the numeric IDs to specific images remains unclear.
Status: Partially resolved with workarounds; no definitive procedure shared for bulk/unassign steps.
I had this problem and worked out it was caused by product images that were copied when I duplicated a product. Once I removed or replaced those product images, this fixed the problem
Hi! I know it’s an old post, but faced this issue today. It was when I replaced pics on a product, using compressed files for lower size. I have size as a variant on this product and each size (S-M-L) was associated with a picture of the product’s collection. When replaced the pics, there was one still showing on sizes, but was removed from the collection (by me). So this was the error coming from. It took me a while to figure out, because with the numbers it’s hard to identify the pic. I replaced the old pic on size with one of the recently added. This solved the issue.
The true reason is that when you uploaded images those got an ID for internal references to that ressource. You attached that ID to provide individual variants with their featured image.
When you deleted the images without deattaching those IDs from the variants this is exactly where this error showed up: “The following image IDs do not exist or do not belong to the product”
i was able to fix the issue, i had to add photos onto the listing for it to
go away.
i had deleted all the photos at first, but then it still threw the error
code, till i added images