Handle Shopify products missing from a feed
Last updated: November 23, 2026
When an item disappears from your incoming feed, its old stock can remain in Shopify. On Scale, optional out-of-feed cleanup checks previously managed variants missing from that feed and sets their stock to 0 at the location the import updates.
Missing, sold out or marked unavailable?
Cleanup does not delete products or automatically hide every sold-out product in your store. It checks items this feed previously managed. A missing row is different from a row with a stock value.
- The row is present with quantity 0: map the quantity to Inventory. The import replaces Available stock at its selected Shopify location with 0. A blank quantity skips the stock update.
- The row is present but a field says unavailable: use the field/value inventory rule on Pro or Scale.
- The item is absent from the feed: use optional out-of-feed cleanup on Scale, described below.
If you want to hide all sold-out products based on Shopify inventory, see Shopify’s guidance on hiding out-of-stock products. That is a different task from detecting items missing from an incoming feed.
Set up cleanup on Scale
Use a complete feed, not a file containing only selected products or recent changes. Cleanup needs earlier records of the items this feed managed. It cannot find every discontinued product already in your Shopify store.
- Open Simple CSV from Shopify Admin and open the saved feed you want to manage.
- Check the action that updates stock. Its quantity column must be mapped to Inventory. Confirm the Shopify location it updates. On the feed page, use the action’s schedule link under Actions to change its inventory location. A location change affects future runs; it does not move existing stock.
- Remove any Choose products conditions if you want cleanup to run. Cleanup is disabled while those conditions are set.
- In Out-of-feed products, enable Clean products that disappear from this feed.
- Under When a product disappears, choose one of the options, then save your feed settings using the save bar.
- Run the stock action from the saved feed and check its completed run log. For recurring stock updates on Scale, check the action’s schedule and active state too.
Inventory mapping is required. Without it, no cleanup runs, including Draft or Unlisted status changes. A price-only action cannot clean missing items.
- Set inventory to 0 and disable overselling: zero missing variants at the import location. Leave the product active. The option turns off Continue selling when out of stock only if the variant has no stock at another active location.
- Change status to Draft: zero missing variant stock at that location, then set the whole product to Draft only when the whole product is missing and no stock remains at another active location.
- Change status to Unlisted: the same inventory and whole-product checks apply, with Unlisted as the product status.
The product status choice does not apply when sibling variants remain in the feed. Stock at other locations stays unchanged.
Unlisted products can be opened and bought through a direct link, but stay out of Shopify-powered search, collections and recommendations.
Examples: one variant, a whole product and another location
These examples assume Scale cleanup is enabled, Inventory is mapped, no Choose products conditions are set, and the complete feed is processed. The feed previously managed the listed variants.
- One Classic Tee variant disappears.
TEE-S-BLUis missing, butTEE-M-BLUremains. Cleanup sets TEE-S-BLU to 0 at the import location. It turns off Continue selling when out of stock only if that variant has no stock at another active location. The product stays active; the Draft or Unlisted choice does not apply. - The whole Desk Lamp product disappears. Its only variant,
LMP-DSK-BR-40, is missing. With no stock at another active location, its import-location stock becomes 0, Continue selling is turned off, and the chosen product action applies. - The lamp still has 3 units at your warehouse. The feed updates a separate Shopify location. Cleanup zeros only that feed location. The warehouse keeps its 3 units, Continue selling is not turned off, and the product stays active.
If a variant returns to the feed, a later inventory import gives it the quantity in the feed again. Simple CSV does not restore Continue selling when out of stock if cleanup turned it off. Check that setting separately if you need it.
Why did a missing item stay unchanged?
- Plan or settings: cleanup is optional and Scale only. Check the feed setting, Inventory mapping and Choose products conditions.
- No earlier record: the variant must have been managed by this feed. Cleanup does not scan unrelated store products.
- The file was incomplete: failed or partial runs do not clean missing items. Runs stopped by plan limits also skip cleanup.
- Source safety checks: cleanup can be skipped if source items have no usable identifiers, not all source items can be tracked, or the source drops below 80% of its earlier size when the earlier run contained at least 100 products. Read the run log before trying again.
- Malformed stock rows: for supported feeds using a separate stock file, malformed rows leave those products unchanged and skip cleanup for that run.
- Matching: cleanup uses a saved Shopify variant ID when available. Its older SKU or first-barcode fallback is case-sensitive. This differs from ordinary update matching, which is exact but ignores letter case and surrounding spaces.
- Other stock or remaining variants: stock at another active location or sibling variants still in the feed can explain why the product stays active.
A repeat run adds no cleanup success message for a product already in the chosen state. Warnings and errors still matter; no success message alone does not prove cleanup failed.
An unchanged scheduled file does not reapply cleanup
On Scale, after an automation’s fully successful scheduled run, the same file with the same settings completes without changing Shopify. The run history still says Completed; inside the run, the status is No changes in the file and counters are 0.
This check belongs to each automation. Shopify changes made afterward are not restored by an unchanged scheduled file. Use Run now on the automation to process the file again, unless the action is held for mapping review. Changing the cleanup setting also makes the next scheduled run process the file. Cleanup is not a continuous resync guarantee.
Common questions
Can we automatically remove discontinued products from Shopify?
On Scale, cleanup can zero previously managed missing variants and apply the chosen product status when the whole product is missing. It never deletes products. A missing item is not always discontinued: first confirm that your source file is complete.
Can we hide a product when just one size disappears?
The product status action requires the whole product to be missing. A missing size can be set to 0 at the import location while the remaining sizes stay available.
Does a quantity of 0 mean the product is missing?
No. The row is still in the feed. Use the quantity mapping, or the separate field/value rule if another field marks it unavailable.
What should we check after the first cleanup?
Read the run log, then check one missing variant in Shopify: Available stock at the import location, stock at other locations, Continue selling when out of stock, and the whole product’s status. Check a variant still in the feed too.
For the full feed workflow, read our feed setup guide.