Troubleshooting a Tag
When a tag encounters a problem during its device's scan cycle, Koios records three pieces of diagnostic information:
- Error Code — a category that identifies what kind of failure occurred
- Error Message — a short description of the problem (e.g. "Failed to read tag")
- Error Detail — additional context, typically the underlying exception or system message that caused the failure
Together, these three fields tell you what went wrong, why, and where to start investigating.
Where Errors Appear
Tag Detail Page
On a tag's Overview tab, the status hero banner at the top shows the current state. When a tag is in a Failed state, a red error strip appears below the status showing the error message and error detail. You can click this strip to copy the full error text to your clipboard.
If the tag also has an info message (a non-error status note), it appears as a separate blue strip below the error.
Tag List
In the tag list table, each tag shows a colored status icon. When a tag has failed, hovering over the red icon displays the error message as a tooltip.
Parameters Tab
All three error fields — error code, error message, and error detail — are also visible in the Parameters tab under the Live Data section, alongside other real-time values like the tag's current value and timestamp.
Error Codes Reference
Each error code corresponds to a specific stage in the tag's read/write cycle. When Koios reports an error code, the accompanying error message and error detail provide the specifics.
Parent Device Errors
General Errors
Read Errors
Write Errors
Value Errors
Configuration Errors
Expression Errors
Mapping Errors
Redundancy Errors
Data Storage Errors
License Errors
Common Scenarios
Tag failed but device is running
If the device is running but an individual tag is in a failed state, the problem is specific to that tag — not the connection. Common causes:
- Wrong address — the tag's node ID, register address, or query points to something that doesn't exist on the device. Use the Browse button on the Configuration tab to re-select the correct data point.
- Data type mismatch — the configured data type doesn't match what the device is actually returning. Try a different data type in the protocol settings.
- Permission denied — the device credentials don't have permission to read or write this specific data point.
All tags on a device failed
If every tag on a device shows Parent Failed (error code 1), the problem is at the device level. Navigate to the device's detail page and troubleshoot the device error first — see Troubleshooting a Device.
Tag shows "Device is stopped"
If a tag is enabled but its parent device is stopped, you'll see an info banner on the tag's overview: "Device is stopped — Tag will not be updated until device is enabled and running." This isn't an error — enable and start the parent device to begin scanning.
Tag is not historizing properly
If a tag's live value is updating but Trends show flat lines or far fewer recorded points than expected, the cause is almost always a mismatch between the tag's Range Min / Max and the compression settings.
Koios uses Swinging Door Trending (SDT) to compress historical data. SDT calculates a tolerance band as a percentage of the tag's configured range — not the actual value. If the range is left at the default 0–100 but the tag only moves between 0 and 1, the tolerance band is wider than the entire signal and almost nothing gets recorded.
How to fix it:
- Set the tag's Range Min and Range Max to match the actual expected value range (e.g. 0–1, not 0–100)
- Review the global Compression Deviation in System > Retention > History Compression — 1–2% is a good starting point
- If only this tag needs special treatment, enable Override global compression settings on the tag's Configuration tab and set a tighter deviation or disable compression for this tag alone
- To disable compression globally, turn off the Compression Enabled toggle on the Retention page
Testing a Tag
You can test whether Koios can read a value from a tag without enabling it. On a tag's Configuration tab, each protocol section includes a Test button.
How It Works
- Open the tag's Configuration tab
- Ensure the protocol settings are saved (node ID, register address, expression, etc.)
- Click Test — Koios performs a one-time read from the device for this tag
The button shows the result:
When to Test
- After creating a tag — verify the protocol settings are correct before enabling
- After using a device browser — confirm the auto-populated settings read the expected value
- When troubleshooting — isolate whether the problem is with the tag's configuration or the device connection
How Errors Are Resolved
Tag errors clear automatically when the tag is successfully read or written on the next scan. You don't need to manually acknowledge or dismiss them — once the underlying issue is resolved (e.g. the address is corrected, the device recovers, or the expression is fixed), the next successful scan resets the error code to None and clears the error message and detail.
If a tag is stuck in a failed state:
- Check the error message and error detail for specifics
- Review the device's logs — set the device's log level to Debug for maximum detail about tag-level operations
- Verify the tag's protocol settings on the Configuration tab
- Use the Test button to attempt a single read and see if the error reproduces
- Try toggling the tag off and on with the Enabled switch
