- EmDash
- Guides
Missing entries
When a product leaves the feed, its entry can leave the site too. After each complete run, the importer moves the entries it created to the trash, or unpublishes them, when the feed no longer lists them. Nothing is ever deleted for good, and a rollback brings them back.
The missing-entries step runs at the end of an import, after every record of the feed has been read. It looks at the entries this template created earlier, finds the ones whose key no record had this time, and acts on them. A threshold stops it when a feed comes back suspiciously short.
Set it up
Section titled “Set it up”The step needs a saved template: a one-off import has no earlier runs to compare with. In the wizard’s Options step:
- Under Advanced, give the template an Owner: 1 to 100 letters, digits, dots, underscores, colons or hyphens, such as
shop-feed. Each entry the import creates is stamped with it. - Under Missing from the feed, choose Unpublish them or Move them to the trash. Leave them turns the step off.
- Set Stop the run if more than this share is missing (%): 0 to 100, 25 by default.
- Save the template.
In a template file the same settings are:
"rules": { "owner": "shop-feed", "missing": { "action": "unpublish", "maxPercent": 25 }}missing needs owner. action is "trash" or "unpublish"; maxPercent is optional.
Which entries it can touch
Section titled “Which entries it can touch”Only entries stamped with the template’s owner, and only while that owner was the last to write them. The step never touches:
- entries created before the owner was set;
- entries an editor created, or another template created under another owner or none;
- entries another template has written to since. A template with a different owner, or none, that reaches an entry removes the stamp.
One owner is one feed. Two templates with the same owner, collection and locale act as one import, and each one’s missing entries can include the other’s; the wizard warns when it sees this. When the importer can tell that one owner’s entries came from two different URL sources, it leaves missing entries alone and says so. Give each feed its own owner.
Trash or unpublish
Section titled “Trash or unpublish”Unpublish them suits feeds whose items come back, such as products that go out of stock. The entry stays in the site as a draft. When its key returns to the feed, the next import that publishes puts it back live.
Move them to the trash suits items that are gone for good. A trashed entry is not restored when its key comes back: that record becomes a conflict, missing_trashed, until you restore the entry from Trash or roll back the import that trashed it. Then retry the record.
Neither option deletes an entry permanently, because a permanent delete can’t be rolled back.
When it runs
Section titled “When it runs”The step runs only after a real import’s first pass completed. It doesn’t run:
- when the import failed, was cancelled, or is paused;
- on Retry failed records;
- when any record had no readable key, or a reader had to skip a row, because those entries may still be in the feed. The import completes with a warning;
- when no record had a key at all, such as an empty feed;
- for imports from AI agents: agent and MCP imports always skip it, so an agent can never trash or unpublish entries;
- for a rollback.
A record the row filter leaves out counts as not in the feed.
A dry run plans the step without changing anything. The wizard’s Preview shows how many entries would go (Missing → Trash or Missing → Unpublish), or why a real run would leave them alone.
The threshold
Section titled “The threshold”Before it changes anything, the step counts the owner’s entries that are missing. When more than the threshold are missing, it changes nothing: the import still completes, with a warning that gives the numbers, such as “12 of the 40 entries owner shop-feed created before this import are not in the feed (30%), more than the limit of 25%”.
With the default 25%, an owner with fewer than four entries stops as soon as one is missing (1 of 3 is 34%). Raise the threshold for small feeds.
If the feed really did shrink, run the import again with a higher threshold: raise it in the wizard’s Options, or pass missing: { maxPercent: 30 } to jobs/create, with force: true when the URL source hasn’t changed since.
Entries it leaves alone
Section titled “Entries it leaves alone”Even under the threshold, the step leaves an entry as it is, and says why in the import’s log, when:
| Code | Reason |
|---|---|
missing_edited |
The entry changed after the import last wrote it. This holds whatever Never overwrite fields edited in the admin says. |
missing_pending |
The entry has a draft or a schedule that is not live, even one the importer made. |
missing_has_translations |
Moving it to the trash: the entry has translations that are still active. |
missing_not_live |
Unpublishing: the entry is not published, so there is nothing to do. |
missing_gone |
The entry no longer exists or is already in the trash. |
missing_over_count |
More entries were missing than when the step counted them. Run the import again. |
A locked entry is left alone too, and counted as locked.
On a schedule
Section titled “On a schedule”A schedule whose template has a missing rule asks what to do under Entries missing from the feed: As the template sets, Off, or A lower threshold. A schedule can lower the threshold, never raise it.
When a scheduled run stops at the threshold, or reads an empty feed, the schedule pauses (“too many entries were missing from the feed”, “the feed was empty”), so a broken feed can’t empty the site one run at a time. Check the feed, then switch the schedule back on.
Undo it
Section titled “Undo it”The step’s changes are part of the import’s journal. Rolling back the import restores trashed entries and republishes the ones it unpublished: the dialog counts them as to bring back.