IMD SolutionComputing LibraryShop main store

Troubleshooting

Perspective realtime provider binding fails when names collide

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

A historical query that returns rows proves only the historical source. Prove the live half by reading the tag in the tag browser under the realtime provider, then bind the component with the provider-qualified path that browse writes; leave both provider names and the project default provider untouched. Only a history failure after a provider or gateway rename points into historian metadata, never the binding.

On this page
  1. A historical result and a live value resolve through different paths
  2. Run these checks before you touch the binding
  3. Worked example: a current-value binding where both providers are named LLB
  4. Apply the repair without disturbing the rest of the project
  5. When history is the half that fails: the rename trail
  6. Match the symptom to the branch
  7. Questions asked

A Perspective component that shows a current value resolves its tag in a realtime provider; a trend or a historical query resolves recorded data in a historical provider. When the two share a name, a query through the historical selection can return rows while the live binding on the same name returns nothing, and the working historical query proves nothing about the live side. Fix it in this order: read the tag in the tag browser under the realtime provider, bind the component with the provider-qualified path that browse writes, and leave both provider names and the project default provider untouched. Only when the history half misbehaves after renames does the historian metadata become a suspect.

A historical result and a live value resolve through different paths #

A tag binding asks a realtime provider for one tag's current value and quality. A historical binding or query asks a historical source for stored samples over a time range. The two run on separate configuration and separate resolution, so either can work while the other fails: a historical source can keep returning rows while the realtime provider of the same name is stopped, misselected or fed by a gateway connection that is down, and a provider can sit in a configuration list while its tags are unreachable.

Matching names make the wrong pick easy. From Ignition 8.1.13 the tag history binding's browse dialog in Perspective can select tags from both realtime and historical providers, so a browse that begins at the wrong binding type lands on the historical entry first when both entries carry one name. Judge each half with its own test: a stored series is not evidence about a current value, and a healthy current value is not evidence about stored history.

Run these checks before you touch the binding #

Work down the list and stop at the first check that fails; each step narrows the fault.

  • Decide what the property needs. A current value with quality and live updates needs the realtime provider; a trend, recorded samples or a historical calculation needs the historical source. Check the binding type on the destination property before anything else.
  • Confirm the realtime provider where it is configured, in the Gateway configuration section under Tags > Realtime. The provider should be present and running, and the tag should exist in its tree.
  • Read the tag in the tag browser under the realtime provider and note the value and quality. This one read splits the problem: a failed read points at the provider or its connection, a good read points at the binding.
  • Open the failing binding and record its type, provider selection, path, and any property or expression feeding the path. A dynamic path keeps whatever its input holds, often a name from before a rename.
  • List the project references that omit a provider; those resolve against the default provider set in the project properties. Leave that default unchanged while you test.
  • If the provider sources another gateway, check that connection as part of the provider check.

Worked example: a current-value binding where both providers are named LLB #

The inputs, with their source. Two providers share the name LLB, one realtime and one historical (the reported case). Components that need current values return nothing through the realtime selection, while a query through the historical selection returns rows (reported symptom). Both names must stay, and the default provider in the project properties must stay (stated requirement).

The rule in words: a historical query exercises only the historical source, so it cannot clear the realtime provider of the same name. Prove the tag under the realtime provider with a tag browser read, then bind through that provider explicitly, with the path the browser writes — never by copying the historical path and never through the project default.

Worked step by step:

  1. Tag browser read under the realtime provider: succeeds, with the value current and the quality good. The provider, its connection and the tag are healthy, so the binding is the remaining suspect. Had this read failed, the fault sits upstream of Perspective and no binding edit fixes it.
  2. Direct tag binding on a spare test property, choosing the tag from the browser under the realtime provider: the inserted path names the realtime provider and its folder path explicitly, and the binding preview shows the live value with good quality.
  3. The same test property pointed through the historical selection: it returns stored samples, not the current value. The two results differ, which is the proof that the selections resolve independently and the original failure was path resolution, not a dead provider.

Result: the component binds live values through the explicit realtime path, with both names and the default provider untouched.

Decision: a good browser read puts the fault in the binding — repair it with the explicit realtime path and carry that binding to every affected component. A failed browser read puts the fault in the provider or its connection — repair there first and repeat the trace before editing any binding.

Apply the repair without disturbing the rest of the project #

Back up the project and record each affected property's binding type, provider selection and path before editing anything.

  • Bind one component first with the direct, provider-qualified path and confirm the displayed value before moving on.
  • Check transforms and property types on the way, so a correct tag read is not converted into an invalid display value.
  • Restore any dynamic selection only after the direct binding passes: inspect every property or expression that builds the path and confirm the resolved path for each provider it can select, including the one that failed.
  • Change the default provider only as a deliberate project-wide decision, never as the first repair: it does not redirect an explicit reference aimed at another provider, and it moves every unqualified reference in the project at once.

When history is the half that fails: the rename trail #

If the live binding reads correctly and history is what misbehaves after several provider renames or a gateway rename, the trail sits in historian metadata, not in the binding. The historian keeps one driver entry per source system in its sqlth_drv table, and a change to the gateway's system name sends future records to a new entry there while older rows keep the previous one, so storage continues even when queries aimed at the newer entry miss the old rows. Renames can also leave stale or duplicated tag associations in sqlth_te.

Keep this repair off the live path: a current-value binding never reads those tables. Handle stale associations through Why storeTagHistory creates duplicate sqlth_te entries after a rename, carry history across a tag path change as in Bridge Ignition tag history after a tag path change, and clear entries left behind by a deleted provider as in Remove stale tags from the Ignition historian tag browser. On the connection side, a related warning — a new historian connection finding the sqlth_drv table already in place — has its own fix in sqlth_drv table already exists warning fix.

Match the symptom to the branch #

What you observe Where the fault sits What to do
Live value fails in the tag browser Provider, its connection or the tag itself Repair under Tags > Realtime or at the remote connection; no binding edit applies
Browser read good, the component binding fails The binding path Bind the explicit provider-qualified realtime path from the browser
Live value good, historical retrieval fails Historical source selection or recording Check the historical binding's source; after renames, follow the historian metadata trail
Historical query works, live binding fails Live resolution; historical success proves nothing Run the worked example from the tag browser read upward

Treat the halves as independent: a working historical query never clears a failed live binding, and a repaired binding never repairs history.

Questions asked

Can the realtime and the historical provider keep the same name?

Yes, the two can keep their names. Nothing in this repair requires renaming either provider: bind current-value components with the explicit provider-qualified path the tag browser writes, and the historical provider with the matching name keeps serving queries unchanged. Treat a rename as a separate, deliberate configuration change made only after every binding has been rechecked, because each rename leaves old paths behind.

Why did the binding break after I renamed providers several times?

Each rename strands the paths built earlier: a path that was browsed or typed keeps the provider name it carried when it was made, and a dynamic path keeps whatever text its input property holds, so a component can still carry the name of a provider state that no longer exists. Rebuild the path by browsing the provider as it stands today.

Should I delete old rows in the historian metadata tables to fix the binding?

No. A live tag binding never reads the historian tables, so no edit there can repair a current-value read, and hand-deleting rows or renumbering identifiers risks access to retained history. Aim the repair at the binding when live values fail, and at the history side only when recorded data is what misses, using the historian's own documented procedures.

What proves the repair is complete?

Three reads, each against its own half. The tag browser read under the realtime provider returns the current value with good quality. The binding preview on the repaired property returns the same value. The historical query behind the trend still returns the expected range. With all three passing, both provider names and the project default provider stay untouched.

Keep reading

  • Troubleshooting

    Getting backfilled Sparkplug history through Ignition reference tags

    Your settings are right; order is the missing condition. Backfill reaches the reference tags only when Store Historical Events is OFF so backfilled samples drive the Engine tag, and only when the edge replays its backlog oldest-to-newest past metric timestamp validation. Out of order, disable metric timestamp validation and keep the replayed value out of live control reads.

    Edge computing and IIoT

  • Troubleshooting

    Remote tag history stops when gateway redundancy fails

    A running Gateway Network connection proves the transport, not the services behind it. In the reported case the redundant pair hosting the history providers had detected thread deadlocks on the backup and a disconnected redundancy peer on the primary after a direct upgrade to 8.3.4, so gateway and redundancy health must be restored before any remote provider is reconfigured.

    Edge computing and IIoT

  • Troubleshooting

    Why DB Table Historian is missing on Ignition 8.0

    The DB Table Historian provider type does not exist in any Ignition 8.0.x gateway, regardless of module or license state: the type ships with the 8.1 line. The same configuration that lacks it on v8.0.2 shows it and populates MySQL on v8.1.4, so the fix is upgrading the gateway to 8.1.x and creating the provider on the existing connection.

    Edge computing and IIoT