# Excluding a product removes all items from an app-controlled collection source

**URL:** <https://community.shopify.dev/t/excluding-a-product-removes-all-items-from-an-app-controlled-collection-source/40214>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [November 30, 2026, 10:27pm UTC](https://community.shopify.dev/t/excluding-a-product-removes-all-items-from-an-app-controlled-collection-source/40214 "2026-11-30T22:27:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliottbryant](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/elliottbryant/32/2150_2.png) [@elliottbryant](https://community.shopify.dev/u/elliottbryant)\
**Post date:** [November 30, 2026, 10:27pm UTC](https://community.shopify.dev/t/excluding-a-product-removes-all-items-from-an-app-controlled-collection-source/40214/1 "2026-11-30T22:27:12Z")

</div>

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:**

1. Add a second source to the collection with an exclude rule for `type = "Type A"`.

2. Remove that source and instead manually include a 4th product.

3. Manually exclude a 4th product instead.

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.

---

<div class="post-metadata">

**Author:** ![KyleG-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyleg-shopify/32/6799_2.png) [@KyleG-Shopify](https://community.shopify.dev/u/KyleG-Shopify)\
**Post date:** [December 1, 2026, 8:46pm UTC](https://community.shopify.dev/t/excluding-a-product-removes-all-items-from-an-app-controlled-collection-source/40214/2 "2026-12-01T20:46:41Z")

</div>

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`](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/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.

---

<div class="post-metadata">

**Author:** ![elliottbryant](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/elliottbryant/32/2150_2.png) [@elliottbryant](https://community.shopify.dev/u/elliottbryant)\
**Post date:** [December 2, 2026, 1:02am UTC](https://community.shopify.dev/t/excluding-a-product-removes-all-items-from-an-app-controlled-collection-source/40214/3 "2026-12-02T01:02:06Z")

</div>

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_

1. Create a new collection
2. Click on “•••” and then “Exclude products”
3. Add a product exclusion rule
4. 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.
