How a feed is sent
The module keeps its own copy of your catalogue, updated product by product as products change. The Magento cron sends the feeds from that copy, in one of two ways:
- A file or SFTP feed writes a file at the time its Schedule section sets, or when you press Generate.
- A Merchant API feed has no schedule. It sends each product to Google as the product changes.
This page explains what happens during and after a run. To start a run yourself or read what it did, see Run and check a feed.
Merchant API feeds
When a product changes, the feed maps it again. The delivery that runs the next minute then:
- 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, a dictionary it uses, or a currency, tax or price setting maps every product again. Again, only the rows that changed go out. The row's Select menu has nothing to run by hand.
Google removes a product that has not been updated for 30 days. So every night the module also picks the products it sent 21 to 25 days ago that have not changed since, and the next delivery sends them again. Until they go, Health counts them as waiting.
Under its status, the grid's Health shows how many products were sent, are waiting and were refused: see The feed grid.
When Google refuses a product
Google can refuse one product and take the others, for example for an invalid barcode. A refused product is offered again on the same waits as a failed run, until Google takes it. It goes sooner when:
- its row changes;
- the feed gets a data source, its first or a new one, which offers every product again.
When the data source was deleted in Merchant Center
The run stops, and the feed is not tried again until it is saved: no wait below ends it. See When the data source is deleted in Merchant Center.
What a run reports
A run reports two kinds of message:
| Kind | What it says | The products |
|---|---|---|
| Error | How many products were left out, and why | Not in the feed. The line is an error even when the run succeeded and sent the other products. |
| Warning | What the feed type found: a field the platform requires that has no mapping rule, or how many products went out with an empty required field, a text over the platform's length or a value the platform does not list | In the feed all the same. The warning says what the platform may refuse and where in the mapping to look. |
Each message is one line with the number of products, not a line per product. Show the products under a warning lists the first 1,000 of them. Their Left Out says No, unless something else left the product out.
When a run fails
A failed run is tried again, and each failure in a row waits longer, so a server that is down for a weekend is not asked every few minutes:
| 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.
- The run's Details say how many times in a row the feed failed and when it is tried next. The grid's Schedule column shows that time, as next attempt for a Merchant API feed.
After you fix the cause
- For a file or SFTP feed, press Generate or Deliver to SFTP in the row's Select menu. The feed runs at once, and the first run that works puts it back on its schedule.
- For any feed, save it. Saving drops the try that was waiting: a file or SFTP feed goes back on its schedule, and a Merchant API feed goes with the next minute's 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 stops part way when Google refuses the account or does not answer. Health then says Failed, and Why? says Stopped part way and why. What the run sent counts. The products it did not reach are not counted as refused, and go on the next run. Your developer's When Google refuses the account, or does not answer lists the causes.
An empty feed is never published
When every product is left out, the feed sends nothing, and the run ends as refused:
- 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.
The grid and the run say which case it is:
| Case | Health | The run says |
|---|---|---|
| Every product was left out | Empty, not delivered. The feed's form opens with a red message, and Why? says why, as it does for a few products. | Nothing to deliver: every one of the 181 products was left out…, or for a Merchant API feed Nothing taken down: every product of the feed is left out now… |
| The Products section's conditions and stock setting pick no product | No products matched, with no Why? | Nothing to deliver: the feed's conditions matched no product… |
Every product left out is almost always a mapping that went wrong: a field marked Required that nothing fills, or a dictionary that excludes everything. Fix the mapping, then run a file or SFTP feed with Generate or Deliver to SFTP, or save a Merchant API feed. Until you do, the feed is tried again as after a failure.
When no product matched, check the conditions in the feed's Products section.
A feed that should publish an empty file, or empty a Merchant API feed's listing, turns on Allow an empty feed in its Channel section. It then sends an empty feed like any other.
When a run stops responding
A run that reports no progress for 30 minutes, and whose process has ended, is marked Stopped responding. A process the server killed then does not leave the feed looking busy. The feed's next run marks such a run at once when it starts.
How long runs are kept
Runs older than 30 days are removed every night, with what they said. Each feed's last run stays, because the grid reads it. To keep runs longer, change Keep run history for (days) under Stores → Configuration → Arlanix → Feeds → Building and delivery. 0 keeps them all.