The best way to monitor a Templater Bot queue is to treat the render-status column as your dashboard and the log files as your evidence. Every row passes through the same statuses, and the Bot writes a code when something goes wrong. What your documentation does not give you is a timeout or an automatic skip for a job that hangs, so the plan is to prevent the common stalls, to see the rest quickly, and to know the first three things to check when a batch stops moving.
This article is about the Bot, the edition of Templater that processes a data source in the background. Dataclay’s Que platform is outside the scope of this article, so we stay with what Templater documents. We separate what the documentation states from what we suggest, and we flag the places where it is silent.
What the Bot gives you to watch
There are four things to watch, and each answers a different question.
The render-status column. This is the live state of each row. The Bot checks the data source, retrieves rows marked ready, marks them queued, and then takes them one at a time. A row being worked on shows processing. A finished row shows done. A row that hit a problem shows ERR::MEDIA or ERR::AFXHOST. Only you or your application type ready into this column, or clear a cell. Templater writes the rest. So a quick scan of the column answers “where is the batch?” In a Google Sheet, filtering the column by value is a simple way to count rows in each state. That is our suggestion, since the sheet is yours, and not something Templater provides.
The queue is a window and not the whole sheet. A Bot setting limits how many rows can be queued at once, with a default and maximum of 20. If you mark 10,000 rows ready, only a window of them is queued at any moment, and the rest wait. Our documentation notes this setting can help with very large data sources because it reduces the memory Templater needs. The default and maximum are both 20, so you cannot make the window larger.
The Templater panel console. At the bottom of the main panel is a readout of what Templater is doing and any error message. It is the quickest view when you are at the machine. Note the exact wording before you change anything.
The log files. Templater can log messages and errors to a file. In Preferences, under Advanced, you choose a log directory. If you leave it empty, the log goes to the logged-in user’s Documents folder. The files are templater.out, which carries color encoding, and templater.log, which does not and is the one to share. From Templater 3.3, it logs all activity whether or not a project is open. If your Bot runs through the command line, errors go to templater.err, and the launcher scripts report the last logged message and the last error after Templater and After Effects finish. You can watch templater.out in real time, for example with tail -f in a macOS terminal. Clicking Reset Log erases existing log contents, so do not do it in the middle of an investigation.
After Effects itself. For an ERR::AFXHOST status, our documentation says to look at After Effects on the machine that is running Templater, because After Effects will likely have stopped operating normally. A status column cannot tell you more than that.
Four ways one row can hold up a batch
“Stuck” can mean four different things. Telling them apart is the whole job.
1. A dialog is waiting for a person. This is an avoidable stall. When Templater cannot find or import referenced footage, the option you chose in Preferences decides what happens. “Ask me what to do” halts processing and displays a dialog. “Let me find the footage asset” asks you to select a replacement in a file browser. On a machine nobody is watching, both need a person to respond. “Skip the row” skips that row and goes straight to the next. “Use my branded placeholder” replaces the missing footage and carries on, and our documentation calls it the recommended option because it ensures smooth batch processing. Since Templater 2.9.5 it is the default, with placeholder files installed on your machine. Our documentation also warns that mapping data to expressions is an experimental feature. As of After Effects 15.1.1, a modal dialog requires user interaction when imported JSON footage changes structure, and that can interfere with batch processes.
2. The row ends in an error code. ERR::MEDIA means Templater had an issue locating or importing a media asset. In many cases the video may have been rendered but contains a media issue. ERR::AFXHOST means After Effects hit an error. The documentation says the Bot sets render-status to a code like these when it encounters errors while processing. It does not say explicitly what the Bot does with the remaining queued rows after an error. The status flow suggests the Bot marks the row and goes on, but treat that as something to test with a small batch, not a guarantee.
3. The job hangs. Our troubleshooting page lists a case where Templater previews a composition but hangs when rendering or replicating. The causes are the Templater Settings effect on an unsupported layer type, or a parameter that is not valid for its layer type, such as a Scale Factor other than 0% on an audio layer. The advice is to inspect the log and see which layer Templater was working on. We found no timeout in the documentation that would end a hung job on its own. A person has to notice and act. That is why the status column and an alert matter.
4. The Bot stops, slows or repeats. Four documented situations belong here. With a metered Que Meter account, the Bot stops and disables itself when credits run out, and you re-enable it after refilling the meter. If you leave the Bot enabled a long time, After Effects caching can slow versioning, which our documentation says you can prevent by disabling layer caching and, on automation machines, disk caching. With a URL feed, the Bot cannot write the render-status back, so rows marked ready can render again unless you register scripts at the Post Job, Post Batch and On Bot Disable events. And after an upgrade, an error saying the Bot can queue a maximum of 20 jobs can stop Preferences from saving. Our FAQ says resetting After Effects Preferences clears it.
The command line adds detail for each of these. When you run Templater from the command line, an error is written to templater.err as an object with a numeric code, a short description, the After Effects message if there was one, extra details and a timestamp. The codes separate problems that look alike on the status column. Code 1001 is an error swapping a footage source, 1002 an error downloading a remote footage source and 1003 a footage file that could not be found on the network. Code 3001 is an error conforming row data from a spreadsheet or TSV file. Codes 4001 and 4002 cover Google authorization and Google Drive retrieval. Code 5001 is a layout engine error and 6001 an HTTP request error. When you run from the command line, the error object adds detail. For example, code 1001 covers a footage source that could not be swapped in, 1002 a failed remote download and 1003 a file not found on the network.
One more case belongs to teams with several machines. You can run several Bots against one sheet, each with a unique Bot Name, and assign a row to a Bot by typing its name in the bot column. Our documentation does not describe rows moving to another Bot if one machine stalls. If one Bot stops, plan to reassign its rows by hand.
Que adds a similar point on the platform side. Our FAQ says Que does not offer load balancing of jobs across satellites at this time. You can assign jobs to specific satellites yourself, and you then need to verify that every required asset and resource, including fonts and plugins, is installed on the satellite you chose. A job sent to a machine that lacks a font is a stall you created by assignment, and it will not rebalance itself.
Setting up monitoring that tells you in time
Here is a setup we would use, built only from documented features, with the Bot as the base.
Make failures cheap before the batch starts. Choose the branded placeholder for missing footage, so no dialog can freeze the machine. Run one deliberately hard row through the whole route before the full batch, so the first failure happens on a single row. Give every row a unique id or output value, because the Bot overwrites files that share a name.
Start with a small test group. For a first run, mark only a handful of rows ready, so the first failure happens early. That is our suggestion.
Turn on the log before you start. Choose the log directory, reset the log once, and note where it is. If you run the Bot through the command line, you can also choose which error codes should force After Effects to quit by listing them in a quit_on_errors array in the options file. In our view, that turns a code you consider fatal into a hard stop rather than a quiet stall.
Use event scripts for alerts. Templater broadcasts events across its process, among them Before Job and Post Job, Before Batch and Post Batch, Bot Enabled and Bot Disabled. A shell script registered to an event can send notifications, and our documentation gives notifications such as an email or text message as an example, including when a batch of renders completes. Event scripts run only with Templater Bot, and shell scripts can pass values from the data source and information such as the project path and a timestamp. Our suggestion is to register one script on Post Batch to tell you the batch is finished, and one on Bot Disabled to tell you the Bot stopped. Dataclay publishes sample scripts for Windows, macOS and Node.js on GitHub. If a script fails, search templater.log for EVENT SCRIPT ERROR or EXEC SHELL SCRIPT, copy the full command line Templater reports and run it in a terminal. Templater CLI users see Post Job and Post Batch; in the Templater GUI the same events are called After Job and After Batch. The names are interchangeable.
Look at the first rows, then the last. A status of done tells you Templater finished. It does not tell you the picture is right. Open the first output, a middle one and the last one. For a wider look, use spot checks, which export stills or clips of selected frames, in Pro and Bot. Our article on generating spot checks with Templater explains them.
Recover without guesswork. When a batch stops, work in this order. First, look at the status column. Find a row showing an error code, or a row that has sat in processing much longer than the others (our suggestion). Second, read the last lines of the log. Our documentation says the last message is where to start when Templater hangs. Third, if the status is ERR::AFXHOST, look at After Effects on that machine. Then fix the cause. The documented way to send a row back into the queue is to type ready in its render-status cell. Remember to empty After Effects’ disk cache after each job if you have not optimized caching for automation.
For the broader picture of what happens when a batch breaks, read what happens when a Templater batch fails mid-queue and how to handle errors and retries.
The bottom line is that a stuck job is rarely invisible if you watch the right things. Prevent the stalls that wait for a person, watch the status column and the log, set up two alerts, and expect that a hung job needs a human, since the documentation describes no timeout. The Templater page covers the editions, including the Bot.
These are the questions we hear when a batch stops moving.
Frequently Asked Questions
How can I tell where a Bot batch is?
Read the render-status column. Rows move from ready to queued, then processing, then done, and a row that hit a problem shows ERR::MEDIA or ERR::AFXHOST. In a Google Sheet you can filter that column to count rows in each state. The Templater panel console and the templater.log file give the detail behind a status.
Does Templater skip a row that hangs?
Our documentation does not describe a timeout or an automatic skip for a hung job. It does describe a case where Templater hangs at render or replicate, caused by an unsupported layer type or an invalid effect parameter, and it tells you to inspect the log. Plan for a person or an alert to catch it.
Can a missing image stop the whole batch?
It can, depending on your footage setting. Ask me what to do and Let me find the footage asset stop processing and wait for a person. Skip the row moves on, and Use my branded placeholder keeps the batch going. Our documentation recommends the placeholder, and it is the default since Templater 2.9.5.
What do ERR::MEDIA and ERR::AFXHOST mean?
ERR::MEDIA means Templater had an issue locating or importing a media asset, and the video may have rendered with a media problem inside it. ERR::AFXHOST means After Effects hit an error and will likely have stopped operating normally. Look at After Effects on the machine running Templater, then read the log.
Can the Bot send me an alert when something goes wrong?
Through event scripts, yes. Templater broadcasts events such as Post Batch and Bot Disabled, and a shell script registered to one can send an email or text message. Event scripts run only with Templater Bot. Dataclay publishes sample scripts on GitHub and can help you write them.
How do I re-run a row that failed?
Fix the cause, then type ready in that row’s render-status cell. Our documentation says you or your application should only enter ready or empty the cell, and that Templater writes the other values. The Bot picks the row up on its next check.
