Troubleshooting
Fix Historian error 241 tag has too many versions
Short answer
Error = 241 (Tag has too many versions) is a configuration-history buildup: every change to the tag's settings, such as an EU limit edit, saves another version until retrieval fails and the tag reads null. The fix that keeps the data is the tag-version consolidation utility from AVEVA technical support, reference HF 2138814, provided for Historian 2020 R2 and later. Delete the tag instead only when its history is disposable, after disabling historization at the creating source and clearing the cached IDs.
On this page
Error = 241 (Tag has too many versions) is a configuration-history problem, not a corrupt tag and not a missing one. Every change to a tag's configuration — an edited EU minimum or maximum is the classic case — saves another version of that configuration in the Historian, and the accumulation eventually overruns the tag until retrieval fails and the data reads null. The repair that keeps the data is version consolidation through AVEVA technical support: reference HF 2138814 and ask for the tag-version consolidation utility. Redeploying an instance with the same name does not touch the saved versions, which is why the error survived that attempt. Delete the tag only when its history is disposable, and in the order below.
What the log entry reports #
The Log Viewer entry names four things: the affected tag, the requested retrieval range (a start timestamp ending in the literal <INFINITY> token), the host with the reporting source file, and the condition itself, error = 241 (Tag has too many versions). Read it as follows:
- The range is the request that failed, not a window of corrupt data.
- The tag being listed in the administrator with null data means the record exists but cannot be served — it is not proof the tag was deleted or that the controller stopped.
- The error code scopes the fault to that one tag's saved configuration versions.
A tag that never collects anything is a different fault with a similar screen appearance; the collection-side diagnosis in historian trend empty: PLC tag collection troubleshooting is the one that applies there. Copy the full line — tag, range, host, code — into your notes before anything changes; the same capture-first discipline is what makes tracing a SQL log error after a historian migration workable.
Why redeploying the instance did not clear it #
The saved versions belong to the Historian tag record, not to the deployed object. Undeploying an instance and creating a new one with the same name and the same historized attribute re-attaches to that record with its version history intact, so retrieval fails the same way. Nothing in the deployment path consolidates versions or removes them: only consolidation, which keeps the data, or deleting the tag itself, which does not, changes the count.
Size the buildup and stop what feeds it #
The reported failure region is several thousand saved versions on one tag; no exact numeric limit is published, so treat that as the region engineers actually hit rather than a supported threshold. The rewrite rate decides how fast you arrive:
- Each configuration change — an EU limit edit is the usual culprit — appends one version.
- A deliberate change once a week adds 52 versions a year: decades from trouble.
- An automatic rewrite every 10 minutes (illustrative: a script setting EU limits on a timer) is 6 changes/h × 24 h = 144 versions/day, and 144 versions/day × 30 days = 4,320 versions — inside the several-thousand region in about a month.
- Even an hourly rewrite (illustrative) is 24 versions/day × 365 days = 8,760 versions each year, so the same several-thousand region is crossed in well under a year.
Before either repair path, find and stop the feed: scheduled redeployments, scripts that rewrite tag settings, or a galaxy redeploy on every save. Consolidating a tag that is still being rewritten rebuilds the same failure.
Path A: consolidate the versions and keep the data #
- Open a case with AVEVA technical support under your support subscription and reference HF 2138814; support article 000011738 (2015) is the older write-up of the same buildup if background is requested.
- State your exact Historian release: the consolidation utility is provided for Historian 2020 R2 and later.
- Take a verified backup of the history store before any utility or query runs.
- Run only the utility and queries the case supplies — consolidation reduces the accumulated versions so the tag queries normally again. An ad-hoc query against the history store can destroy blocks no backup covers, which is why the queries come from the case and not from a forum.
- Verify by retrieving the same range that failed: values must return where null appeared before.
Path B: delete the tag when its history is disposable #
Deletion itself is done in SMC, or OCMC in newer releases; the order around it is what makes it stick:
- Establish who creates the tag. An IDAS tag is removed differently from one created by an external source such as AppServer or an SDK.
- For an externally created tag, disable historization at that source first. Deleting only the Historian record leaves the publisher free to recreate the tag under the same name.
- Follow the case's steps to clear the cached IDs; the steps are release-specific and come from support.
- Delete the tag, then confirm after a redeploy or reconnect cycle that it has not returned.
Deletion removes the stored history with the tag; consolidation keeps it. That is the whole trade.
The decision #
| Situation | Action |
|---|---|
| The tag's history must be kept | Consolidation case referencing HF 2138814; utility provided for Historian 2020 R2 and later |
| History disposable, IDAS-created tag | Delete in SMC or OCMC and verify it stays gone |
| History disposable, tag from AppServer or an SDK | Disable historization at the source, clear cached IDs, then delete |
| Release older than Historian 2020 R2 | Same case and diagnosis; ask for the release-specific queries |
| Either path | Stop the configuration rewrite loop first |
Questions asked
Is there a fixed version count that triggers error 241?
No published numeric limit exists; the reported failure region is several thousand saved versions on one tag. Watch the rewrite rate rather than a count: a deliberate change once a week is harmless, while any timer-driven rewrite of an EU limit crosses the region eventually, and every ten minutes means about a month. If your screens do not expose the version count, that is normal; it comes out of the support case.
What should the support case contain?
The exact Log Viewer line with the tag name, requested range and error = 241; your Historian release, since the consolidation utility is provided for 2020 R2 and later; the reference HF 2138814; and your estimate of how often the tag's configuration is rewritten, including the script or deployment that does it. With those, support can match the utility or queries to your release in one pass.
Our Historian predates 2020 R2 — what changes?
The diagnosis does not change: the tag still carries too many saved configuration versions and the data remains recoverable through support. The consolidation utility is provided for Historian 2020 R2 and later, so on an older release ask in the same case for the queries support uses for that release. If an upgrade is already planned, consolidate after it, and fix the rewrite loop first regardless.
Why does a deleted tag come back?
Because something other than the Historian is still publishing it. A tag created by an external source such as AppServer or an SDK is recreated as long as that source historizes it, no matter how cleanly it was deleted in SMC or OCMC. Disable historization at the source, clear the cached IDs per the support steps, then delete. After a disable and re-enable cycle, also expect the historian not to reconnect to unchanged tags until it is rebooted.