How a feed is sent

For arlanix/product-feed 1.0.0

How a feed is sent

The Magento cron delivers feeds using current catalogue data:

  • A file or SFTP feed writes a file on its schedule, or after Generate or Deliver to SFTP.
  • A Merchant API feed has no schedule. It sends each product to Google as the product changes.

To start a run or check its result, see Run and check a feed.

A product leaves the feed when it is deleted, disabled, removed from the website, filtered out or excluded by the mapping. Hiding out-of-stock products on the storefront does not remove them from feeds; the feed's Stock status setting controls that.

Merchant API feeds

An active new feed starts its first sync automatically.

After the first sync, the feed checks changed products. The next delivery:

  • sends the products whose row changed since they were sent;
  • adds the new ones;
  • removes the products the feed no longer has.

Saving the feed, one of its dictionaries, or a currency, tax or price setting checks all products again. Only changed rows are sent. There is no manual run option.

The module also queues unchanged products for refresh 21 to 25 days after sending them. This keeps them within Google's 30-day expiry.

When Google refuses a product

Google can refuse one product while accepting others. Refused products retry with the same delays as a failed run. A changed row is retried sooner; a new data source sends every product again.

When the data source was deleted in Merchant Center

Delivery stops until you save the feed. See Restore a deleted data source.

What a run reports

Runs record delivery results and product issues. For messages and affected products, see Run history. Mapping explains warnings and exclusions.

When a run fails

A failed run retries automatically with increasing delays:

Failure in a row Next try
1st 5 minutes later
2nd 10 minutes later
3rd 20 minutes later
4th 40 minutes later
5th and after Every hour
  • A run that stopped responding counts as a failure, and so does a refused run. Only a run that delivers ends the series.
  • After a file or SFTP feed's first failure, its schedule takes the next try if it comes sooner. From the second failure on, the waits apply whatever the schedule says.

After you fix the cause

  • File or SFTP: choose Select → Generate or Deliver to SFTP to queue a run now. A successful delivery restores the schedule.
  • Any feed: save it to clear the retry delay. File and SFTP feeds return to their schedule; Merchant API feeds use the next delivery.

Saving a dictionary the feed uses does not end the wait. A Merchant API feed maps its products again when the wait is over.

With Arlanix Notifications, the first failure and the first run that works after it can each send a message: see Get told when a feed fails.

When Google stops a run part way

A Merchant API run can stop when Google refuses the account or does not answer. Products already sent count as delivered. Unreached products retry on the next run and are not counted as refused. For causes and checks, see API failures.

If the process ends without recording a result, the run is marked Stopped responding. Its finish time and duration use the last recorded progress.

An empty feed is never published

By default, an empty run keeps the previous output:

  • A file or SFTP feed publishes nothing. The file on the store stays as it was, and no upload is made.
  • A Merchant API feed takes nothing down from Google while Google holds products it sent. A Merchant API feed that has sent nothing yet has nothing to keep, so it is not refused: Health says how many products were left out.

If every product is left out, check Required fields and excluding dictionaries. Fix the mapping, then use Generate, Deliver to SFTP or save a Merchant API feed. Until then, the feed retries.

When no product matched, check the conditions in the feed's Products section.

To allow an empty file or remove every product from an API feed's listing, turn on Allow an empty feed under Channel.

When a run stops responding

A run is marked Stopped responding when it has reported no progress for 30 minutes and its process has ended. The next run can detect and mark it sooner. A slow process that is still running is not marked.

How long runs are kept

See Configuration for retention. Current product exclusions remain available after the run that found them is removed.