# Inventory health

The on-demand scan that finds finished goods whose local stock drifted above Shopify's, and the correction that closes the gap.

import Term from '~/components/Term.astro';
import { Aside } from '@astrojs/starlight/components';
import DocUpdated from '~/components/DocUpdated.astro';

**Settings → Inventory health** answers one question: has Assemblified's own count of a finished good drifted above what Shopify says?

It can, for one historical reason. An old combination of settings — <Term def="only-sell-preassembled">only sell pre-assembled quantities</Term> together with <Term def="dynamic-adjustment">dynamic adjustment</Term> — could make the same order reduce a variant twice, once from each. That combination is no longer allowed, but a store that ran it may still be carrying the difference. This tool finds it and closes it.

## The scan is read-only

Nothing happens when you open the page. You get an empty state with one button, **Scan for drift**, and the scan compares your local numbers against Shopify's and changes nothing.

A scan is a live read of both sides, so it takes a moment on a large catalogue. Leave it running.

## Reading the report

One row per **variant and location** — a drift is always a pair, never a variant on its own.

| Column | What it shows |
| --- | --- |
| **Product** | The bill's name, with its SKU underneath |
| **Location** | Where the two numbers were compared |
| **Local** | What Assemblified holds |
| **Shopify** | What Shopify holds |
| **Gap** | The difference, signed — `+3` means local is three above Shopify |
| **Double-writes** | How many past executions wrote twice for this row, which is the evidence of how the gap arose |

If a row has been corrected before, it also says **Previously reconciled *n*×** under the name. A row that keeps coming back is telling you the cause is still live, not that the correction failed.

Rows whose two sides simply match never appear. A row that appears with **no** gap is one where a level could not be read on one side — it is shown for the record, and its checkbox is disabled, because there is nothing to correct.

## Export CSV

**Export CSV** downloads the whole report — every row, whether you selected it or not — as a forensic record to check before you apply anything. It carries everything the table shows plus the SKU, the variant name and the bill's full material list. The file is named for the day of the scan, not the day of the download.

## Applying corrections

Select the rows you want and press **Apply selected corrections**. Selecting all selects every fixable row, not every row.

The app asks first, and says what it is about to do: **it sets the local inventory of the selected variants to match Shopify.** Shopify is the side that stays put.

<Aside type="tip">
The correction is safe to re-run. Anything that already matches by the time it runs is skipped, and the confirmation afterwards reports both counts — how many were applied, and how many were skipped.
</Aside>

A correction re-scans immediately afterwards, so the rows it fixed have no gap left and drop out of the report.

## When a scan or a correction fails

Failures appear as one notice at the top of the card with a **Re-scan** action, and the notice says what went wrong. Nothing partial is left behind: a correction that failed did not half-apply.

## Related

- [Reconcile inventory](/guides/reconcile-inventory/) — the broader routine for getting counts back in line
- [Dynamic adjustment](/features/bill-of-materials/dynamic-adjustment/) and [Pre-assembled quantities](/features/bill-of-materials/pre-assembled/) — the two behaviours whose old combination caused this drift

<DocUpdated date="2026-10-19" />