I’ve been testing the new multi-source collections with an app-controlled source and ran into what looks like a bug with exclude-only sources.
Bug: Exclude-only source wipes out App-controlled source
Setup: My app-controlled source adds 3 products to a collection:
-
Product A (type = "Type A", vendor = "Vendor A")
-
Product B (type = "Type B", vendor = "Vendor B")
-
Product C (type = "Type C", vendor = "Vendor C")
Steps to reproduce:
-
Add a second source to the collection with an exclude rule for type = "Type A".
- Result: The collection drops to 0 products.
-
Remove that source and instead manually include a 4th product.
- Result: Works as expected (the 3 app-sourced products + the 4th manual product).
-
Manually exclude a 4th product instead.
- Result: All products are removed from the collection (0 products).
Since collections are documented as a union of sources (with exclusions evaluated per-source), I don’t believe that an exclude-only second source should be able to wipe out an app source’s products.
Hey @elliottbryant, an exclude-only source shouldn’t wipe out products from an app-controlled source. I tried reproducing this on a test shop on 2026-10 (with both an exclude-only second source and manual exclusions) and couldn’t get it to drop the products.
One thing I did notice though is reading right after collectionUpdate briefly returned 0 products before settling, since collectionUpdate membership updates can process asynchronously and return a job.
If you query again after waiting, do the expected products show up? If membership is still off, can you share an x-request-id from one of those reads. I’ll see if anything stands out in the logs.
Hi @KyleG-Shopify, thanks for the feedback. I’ve done some additional testing and here are the exact steps to reproduce the error:
Note: This behaviour is in the admin UI, not using the Admin API
- Create a new collection
- Click on “•••” and then “Exclude products”
- Add a product exclusion rule
- Save collection
Error message:
Fix 1 issue before saving
A condition based source must have at least one product selection or condition
This only happens when a merchant-controlled source has no included products on page load. Once you include products (manually or using a rule), using an exclude rule no longer triggers the error. This remains true even if you then remove the included products and are left with only excluded products. Strange!
Interestingly, the error condition returns when a merchant-controlled source no longer has included or excluded products and the collection is saved.
I don’t believe this issue is related to app-controlled sources at all, aside from the fact that when it happens all of the products in the collection grid disappear, regardless of their source.
A point of clarity: I said in my initial post that all of the products are removed from the collection. I don’t believe that’s actually what’s happening. The grid error says “No products match your conditions” and any products previously included are gone, but because I can’t save, it’s likely that the collection product contents haven’t actually changed.
I hope this is helpful.