IMD SolutionComputing LibraryShop main store

Troubleshooting

Why Tier 2 historian replication loses the asset hierarchy view

Edge computing and IIoT Published 7 min read

Short answer

Tier 2 replication does not lose the asset hierarchy: each tag's Location extended property arrives intact, and Historian Client Desktop simply does not render it as a tree. Point general users at Historian Client Web search on Tier 2 and keep Desktop on Tier 1 for power users. Rebuild a custom Public Namespace only if a tree is mandatory, and design its orphan cleanup for renames first.

On this page
  1. Separate the hierarchy data from the client view
  2. Confirm the Location property on Tier 2
  3. Route the users: Client Web on Tier 2, Client Desktop on Tier 1
  4. When a custom Public Namespace rebuild is justified
  5. Worked example: one rename from Foo to Foobar in a rebuilt Tier 2 namespace
  6. The decision for this deployment
  7. Questions asked

Nothing is lost in the replication itself. Every tag that replicates from Tier 1 to Tier 2 carries its Location extended property, and that property holds the asset hierarchy address, renames included, because renames propagate to it. What fails is the view: Historian Client Desktop on Tier 2 shows one folder per Tier 1 source under Replication Sources, with a flat list of thousands of tags inside and no tree. So route people, not data. Give general office users Historian Client Web against Tier 2, where search uses the Location property, and keep Client Desktop for power users and administrators against Tier 1, where the native hierarchy still browses. Rebuild a custom Public Namespace on Tier 2 only if a tree is a hard requirement, and design its orphan cleanup before you build it.

Separate the hierarchy data from the client view #

Three layers get conflated into one complaint, and they fail independently:

  • The Tier 1 namespace. The tree users browse. Any AVEVA Historian client that incorporates the Public Groups folder in its navigation can browse the ArchestrA model view hierarchy, which is the experience Tier 1 power users have today.
  • The replicated tag on Tier 2. It arrives with its extended properties, including Location, which carries the same hierarchy information and propagates automatically. Renames of areas and objects come through to it.
  • The Tier 2 client view. Historian Client Desktop presents Replication Sources, one folder per Tier 1 with the tags listed flat, and does not use Location to render a tree. Historian Client Web can use Location in search, but it does not visualize a hierarchy either.

Historian replication is documented to chain across tiers: data originating at tier 1 can be replicated to tier 2, then on to tier 3. Nothing in that chain drops the Location property; what never crosses is the rendered tree.

Read each symptom to its layer before changing anything:

What you see Layer at fault Check
One folder per Tier 1 and a flat tag list in Client Desktop Client navigation on Tier 2 Confirm the tag's Location on Tier 2 matches Tier 1
Location absent or stale on Tier 2 tags Property propagation or source data Compare the same tag on both tiers before touching client strategy
Client Web search finds the intended asset Search experience, adequate without a tree Validate against real user tasks
A custom tree shows an old and a new node after a rename Custom hierarchy synchronization Reconcile obsolete entries

If Location matches across tiers, replication is healthy and no change to the replication configuration will produce a tree. The server side is its own subject: configuring AVEVA Historian Tier 2 replication and summaries covers the setup that moves tags and properties to Tier 2.

Confirm the Location property on Tier 2 #

  1. Pick representative tags from every Tier 1 source, across different sites and asset levels, not just one area.
  2. Read each tag's Location on Tier 1, inside the native hierarchy, and again on Tier 2, in the tag's properties.
  3. Confirm the Tier 2 value carries the full site path your naming convention defines.
  4. In Historian Client Web on Tier 2, search using the location strings the convention produces, and confirm the results identify the intended site and asset rather than relying on tag names alone.
  5. Run the trend and query workflows users actually need from those results, and record the boundary you validated: location powers search, it does not draw a tree.

A tag whose Location is absent or differs between tiers is a propagation problem, and you fix that first because it is data, not user experience. When every sampled tag matches, the only remaining defect is tree rendering, and the answer is routing, not reconfiguration.

Route the users: Client Web on Tier 2, Client Desktop on Tier 1 #

Commit to this split:

  • General office users get Historian Client Web against Tier 2. Search uses the propagated Location information. Validate it with the steps above before you announce it.
  • Local power users and administrators keep Historian Client Desktop against Tier 1, where the ArchestrA model view browses natively through the Public Groups folder.
  • Client Desktop against Tier 2 is not a browsing tool in this deployment. The flat list of thousands of tags per source folder is the exact complaint you are solving.

Do not hold the roll-out for a client fix. The vendor's stated planning horizon separates ideas from plans: a plan carries budget, schedule and staff, plans rarely extend more than three to four months, and for replicating the hierarchy into Trend there is no plan. Size the routing against the clients you run today.

If the office users reach Tier 2 from corporate networks rather than the plant floor, exposing a historian web client through a reverse proxy is the access pattern to plan alongside the routing decision.

When a custom Public Namespace rebuild is justified #

One condition justifies the rebuild: a browsable tree on Tier 2 is a hard requirement, and Client Web search failed the validation with real users. An annoying flat list does not qualify, because that is the routing problem you already solved.

If you build it, the mechanics are known: create the Public Namespace from the Location property using SQL or an external program. A recursive SQL Common Table Expression is the right tool, with one reversal to plan for, since the usual published CTE example builds a path out of a namespace and you need a tree out of paths.

The initial build proves only that current Location values can produce a tree. It proves nothing about next year. Design the lifecycle before the first run:

  • The job must read current Location values and map them to namespace levels.
  • It must identify obsolete nodes, meaning names no current Location references.
  • It must apply updates without disturbing valid branches.
  • It must be tested on a limited tag set and on renamed assets before it touches the full hierarchy.

Stale browse entries are not unique to custom trees; stale historian tag browse tree entries after a restore is the same symptom with a different cause, and users read both as the tree lying.

Worked example: one rename from Foo to Foobar in a rebuilt Tier 2 namespace #

Inputs, each with its source:

  • The deployment in question: one regional Tier 2 fed by many Tier 1 historians, where Client Desktop shows one Replication Sources folder per Tier 1, each a flat list of thousands of tags.
  • One Tier 1 area renamed from Foo to Foobar, the standard rename case that tests any custom namespace.
  • Documented behavior: renames propagate to Location on Tier 2 with no extra configuration.
  • The job under test builds namespace nodes only from the Location values it reads.

Rule in words: after the rename, every tag under the area carries Foobar in its Location and no tag carries Foo. A correct reconciliation adds the Foobar node and deletes the Foo node once its member count reaches zero. An append-only job adds Foobar and deletes nothing.

Arithmetic:

  • Renames applied: 1.
  • Location values changed: every member tag of the area. Read the member count from the Foo node before the rename; with thousands of tags per source folder, each pass re-reads thousands of property values to notice the change.
  • Correct job: +1 node (Foobar), −1 node (Foo) = net 0, and tree depth is unchanged.
  • Append-only job: +1 node (Foobar), −0 = net +1 orphan. After r renames, r orphan branches accumulate.

Result and decision: the job ships only if the test shows Foobar appearing with the moved tags and Foo disappearing when its member count reaches zero. If it can insert but not delete, it does not ship, because one stale branch is clutter and r stale branches send users down dead paths. Keep the Web-search routing and Client Desktop on Tier 1 instead.

The decision for this deployment #

  1. Tell the customer the hierarchy is not lost: Location arrives on Tier 2 intact, renames included. Replication needs no fix.
  2. General office users get Historian Client Web against Tier 2 and search by location, after the representative-search validation passes.
  3. Local power users and administrators keep Client Desktop against Tier 1 for the native tree.
  4. A custom Public Namespace is built only if a Tier 2 tree is mandatory, only with a reconciliation job that provably deletes orphaned nodes, and only after the Foo-to-Foobar test passes.

Questions asked

Will a future Historian release show the hierarchy in Client Desktop on Tier 2?

Treat it as unavailable today. The vendor separates ideas from plans, with plans rarely extending beyond three to four months, and has no plan for replicating the hierarchy into Trend. Re-check at each upgrade, but size the user routing and any custom namespace work against the clients you run now.

Does adding a Tier 3 historian change any of this?

No. Historian supports chains where data originating at tier 1 replicates to tier 2 and on to tier 3. A tier 3 sees what every tier below the source sees: replicated tags with their Location property and no rendered tree in Client Desktop. The same routing decision repeats at each tier.

Is the flat list under Replication Sources a sign replication is misconfigured?

No. One folder per Tier 1 source with the replicated tags listed inside it is how Client Desktop presents a Tier 2. Misconfiguration shows up as missing tags or missing and stale Location values, which you verify tag by tag. If the properties match across tiers, leave the replication configuration alone.

Which Historian clients can browse the asset hierarchy as a tree at all?

On Tier 1, clients whose navigation includes the Public Groups folder render the ArchestrA model view as a tree, and that is the experience power users keep. On Tier 2 the same Desktop client shows Replication Sources folders instead, and Client Web offers search rather than a tree.

Do renames on Tier 1 reach the Tier 2 Location property?

Yes. Renames of areas and objects come through to Location on Tier 2, so the hierarchy information itself stays current. The exposure is in anything you build from it: a custom namespace job must explicitly delete nodes whose member tags have moved, or the old names linger as orphans.

Keep reading

  • Troubleshooting

    Historian trend flat line: check Query Row Limit

    A historian trend that draws one straight value in history mode while live mode and a direct SQL query both return good data is truncating rows client-side. The tag's Query Row Limit on the graph was set to 2 instead of the documented default 0, so only two samples came back. Set it to 0, then confirm the trend's saved row count matches the SQL count.

    Edge computing and IIoT

  • How-to

    Reading Ignition historian data from MATLAB or Python

    Put a REST endpoint on the Ignition gateway with the Web Dev module: it runs system.tag.queryHistory for the requester and returns JSON or CSV, so MATLAB or Python parses a defined recordset and never touches historian storage tables. Direct SQL against the documented tables is the fallback; an SDK module is the heavyweight path. One contract to define: tag paths, time bounds, alignment basis, output format.

    Edge computing and IIoT

  • Troubleshooting

    Why Historian Client Web stays in English and how to fix it

    Historian Client Web follows the browser's first preferred language, but only among the translations the installed release and its classic or modern experience include; with no match it falls back to English. Set the language first in the browser and reload; if the release lacks it, the Web language pack comes through the distributor. The Historian Client Language Toolkit localizes Desktop only.

    Edge computing and IIoT