Skip to main content
This guide helps you find out why a workflow step or tool call that uses your On Prem Agent failed, got stuck, or never ran. Most problems can be solved from the agent’s own files on the machine where it is installed, without contacting Engini. You will need access to the Windows machine that runs the agent (or someone from your IT team who has it).

How the agent works

The agent runs as a Windows service named Engini Agent. It regularly asks Engini for new tasks, runs each one against your internal system (database, file system, HTTP API, and so on), and sends the result back to Engini. The connection is always outgoing from your network to Engini over HTTPS. Every task has a numeric ID. The same ID appears in Engini, in the name of the task’s file on the agent machine, and on every related line in the agent’s log. This ID is how you connect what you see in Engini to what happened on the machine.

Quick diagnosis

Step 1 - Read the error in Engini

  1. Open the workflow’s run history and open the failed run. A tool call also creates a run in the history, so look it up the same way.
  2. Open the failed step and read the error message. Often this already tells you the cause (see Step 2).
  3. Copy the OPA Task ID shown in the step details. You will use it to find the task on the agent machine.
  4. Open Connections and then On-Prem Agents, and check the agent’s status:
    • Online - the agent is running and talking to Engini.
    • Waiting for connection - a new agent that has not connected to Engini yet. Install the agent and start the service (see On Prem Agent).
    • Offline - Engini has not heard from the agent recently. Open Services on the agent machine, check that Engini Agent is running, and start or restart it.
    • Disabled - the agent was disabled. Open the actions menu on the agent’s row and choose Enable.
The agent does not retry a failed task by itself. After you fix the cause, run the workflow or tool call again.

Step 2 - Look up the error

When a task fails, Engini shows the error as <what failed>. Details: <error>. The part after Details: comes from your own system (database, API or file system), so read that part first. The same text appears in the error= part of the task’s log line. These are the errors we see most often, starting with the most widespread: If your error is not in this table, the text after Details: is still the message from your own system. Search it together with your system’s name (for example SQL Server or DB2), or ask your system’s admin. To see exactly what the agent sent, continue with the agent’s files below.

Step 3 - Find the agent’s files

By default the agent is installed in:
If you chose another folder during installation, open Services, find Engini Agent, and check the path of its executable. Two folders inside the install folder matter: For most problems you need both: the task file shows the request, and the log shows what went wrong.

Step 4 - Find the task file

Inside Tasks\ there are six folders. A task file moves between them as the task progresses. Old files are cleaned up automatically. By default, failed tasks are kept 30 days and finished tasks 60 days. Both periods are set in the agent’s settings (Error Folder Retention Days and Finished Folder Retention Days). To find your task’s file:
  1. Open File Explorer and go to the folder that matches the task’s situation (for a failed step, start with ErrorResult\).
  2. Paste the task ID into the search box at the top right of the window. The file name contains the ID.
  3. Open the file with Notepad, or any text editor.
File names follow this pattern:
Priority is Standard for workflow steps and tool calls. High is used for internal tasks, such as updating the agent’s settings or loading a database’s tables and fields while you build a step. For example: Standard_4823917_Database_RetrieveRecords.json. Some tasks have no operation type, so that last part may be missing. The file contains the request the agent received:
  • HTTP steps - the URL (Url), the method (Method), the headers (Headers) and the body (BodyContent).
  • Custom SQL scripts - the exact script the agent ran, with your values already inserted. This is where you find a value that breaks the script.
  • Other steps - the connection details and the query or file path the agent used.
Important: task files can contain credentials, for example inside a connection string. Before you send a task file to anyone, replace every password, key and token in it with REDACTED.

Step 5 - Read the agent log

The log files are in the logs\ folder. Two kinds of file are written, and a new file starts every day: For example, the log for 15 October 2026 is general20261015.log. Each file is limited to 10 MB (if it fills up, the agent starts another file for the same day), and the agent keeps the most recent 31 files of each kind.
Tip: a task that fails because of its own request, such as wrong credentials, an unreachable server or a timeout, is recorded as a warning in general<date>.log. It is not in exceptions<date>.log. The exceptions file only collects errors, such as the agent failing to process or deliver a task. Search general<date>.log first, and use exceptions<date>.log when the agent itself seems to misbehave.
To search a log:
  1. Open the file for the day of the failure in Notepad.
  2. Press Ctrl+F and paste the task ID.
  3. Click Find Next to read all the lines about that task. Typically you will see when the task was picked up, when it started, and how it ended.
On each line about your task, the part after error= is the message from your system - the same text Engini shows on the failed step. A failed task looks like this in the log (the parts are separated by tabs):
The parts are the time, the level ([INF], [WRN], [ERR], or [DBG] with the debug level), the task ID, and the message. type tells you what kind of task it was, for example MsSqlServerTask, HttpCloudTask or PrioritySdkCloudTask. The messages you will meet most often:

PowerShell commands

You can run these on the agent machine instead of browsing folders. The service shown as Engini Agent in Services is named EnginiAgent in PowerShell. Set $id to your task ID. Starting or stopping the service needs an administrator PowerShell. For a failed task, run them in this order: check the service, search the log for the task ID, find the task file (its folder is the task’s stage), then look up the error= text in Step 2. When you report back, include the error= text, the stage folder and the task type, with passwords and tokens replaced by REDACTED.
How to read the results: If neither the log search nor the file search finds the task ID, the task never reached this agent (check the agent’s status in Engini, and that the step uses this agent), or it is older than the logs and files the agent keeps.
Before you share output: task files and log lines can contain passwords and tokens. Replace them with REDACTED before you paste the output anywhere, including into an AI assistant.

Common problems

A step waits and nothing happens

Check these in order:
  1. The agent’s status in Engini (Connections > On-Prem Agents). If it is Offline, the agent cannot pick up tasks. See the first row of the table below.
  2. Files in Tasks\Pending\ - the agent received the tasks but is busy with others. Raise Parallel Tasks Amount (second row below).
  3. The task’s file in Tasks\Processing\ for much longer than the timeouts - the task is stuck. Task Timeout (default 300 seconds) limits each database query and file operation, and Http Timeout (default 300 seconds) limits each HTTP call. Read the warning below, then restart the service and send the logs to Engini support.
Before you restart: when the service starts, every task in Tasks\Processing\ goes back to Pending\ and runs again from the start. If the stuck task writes data (for example an insert, an update or an HTTP POST), check first whether it already did, so it is not written twice.

Other problems

Get more detail with the debug log level

By default the agent logs at the Information level. If the usual log does not explain a problem, you can switch to Debug for a short time:
  1. Open Connections and then On-Prem Agents.
  2. Open the actions menu of the agent and choose Edit.
  3. Set Log Level to DEBUG and click Save. The agent switches to the new level right away, without a restart. This works only while the agent is not Offline. The agent does not store the log level on its machine. If the Engini Agent service restarts, it goes back to INFORMATION, even though Engini still shows DEBUG. To turn debug on again, open Edit and click Save.
  4. Run the workflow again, then look at general<date>.log.
  5. When you are done, set Log Level back to INFORMATION and save.
Do not leave Debug on. It writes much more to disk and the 10 MB daily files fill up faster, so older history is deleted sooner.

Download the logs

Open the actions menu on the agent’s row in On-Prem Agents and choose Download logs. This works only while the agent is not Offline. The agent packs the files in its logs\ folder into one zip file (up to 50 MB; the newest files are included first). This does not include the Tasks\ folder. If the agent is Offline, or you also need the task files, zip the logs\ folder and the relevant Tasks\ subfolders on the agent machine yourself.

What to send Engini support

If you could not solve the problem, send us the following in one message. It saves us a round of questions:
  1. Your account and workspace name.
  2. The agent’s name.
  3. The workflow name and the link to the failed run.
  4. The error message shown on the failed step.
  5. When it started failing, including your time zone.
  6. What you already tried (for example restarted the service, checked the credentials).
  7. The logs zip, and the task file from Tasks\ErrorResult\ for the failed task, with all passwords and tokens replaced by REDACTED.
  8. The scope: is it one task, one workflow, or every task on this agent?
You can reach us at info@engini.io.