IMD SolutionComputing LibraryShop main store

Troubleshooting

PI AF attribute with no PI Point tag in PI Vision

Edge computing and IIoT Published 6 min read

Short answer

An AF attribute whose PI Point data reference resolves to no tag returns an error state, not a default, and PI Vision plus any Analysis reading it inherit that error. Fix it in PI System Explorer: create the point when a measurement is coming, or switch the reference to Formula or None with a defined default, and guard Analyses with BadVal and NoOutput.

On this page
  1. What the missing point breaks
  2. Trace the failure from symbol to point
  3. Decide: create the point or change the reference
  4. Create the missing PI Point from the attribute
  5. Replace the reference when no tag should exist
  6. Guard the Analysis with BadVal and NoOutput
  7. Prove the fix end to end
  8. Questions asked

An AF attribute configured with a PI Point data reference stores a tag name, and that name maps one-to-one to one point on the Data Archive. When the configured name matches no point, AF returns an error state instead of a value; PI Vision renders that state in the symbol, and any Analysis expression reading the attribute inherits it. The fix belongs at the attribute in PI System Explorer: create the point when a measurement is coming, or switch the reference to Formula or None with a defined default, then guard the Analysis with a bad-value check.

What the missing point breaks #

The failure propagates through three consumers, and each one shows it differently:

  • PI Vision symbol: the value or trend symbol shows an error or bad-quality state instead of a number. Other attributes on the same element render normally, which tells you the display binding is not the fault.
  • Asset Analysis: the expression that reads the attribute evaluates to a bad result or writes no output, so downstream attributes and displays that consume the Analysis go bad too.
  • Recalculations and backfills: a sign-up or recalculation over a period that includes the missing reference produces bad values across that whole range, not just at the current time.

Connectivity is a different fault with similar symptoms: when PI Vision reaches only some archives, symbols go bad even though every tag exists, which is the case covered in the guide to PI Vision cannot connect to PI Data Archive. Confirm connectivity first, then look at the attribute itself.

Trace the failure from symbol to point #

Work top-down; the break is almost always at the last hop:

  1. On the PI Vision display, open the affected symbol and note the element path and attribute name it binds to.
  2. In PI System Explorer, navigate to that element and select the attribute; read its data reference and the configured tag name in the attribute's settings.
  3. Search the Data Archive for that exact name. No match confirms the missing point; a match under a different name means the reference is simply stale.

Two outcomes, two fixes: if the point exists under a different or renamed tag, correct the tag name in the data reference and you are done. If the point never existed, take the decision in the next section.

Decide: create the point or change the reference #

Commit based on whether a real measurement will ever exist for this attribute:

  • An instrument or interface will feed the value: create the PI Point and keep the PI Point data reference. The attribute stays historized and nothing needs rework later.
  • No source exists and the attribute is on the display for layout or completeness only: set the data reference to None with a static default, or to a Formula. No dead lookup, no error state.
  • The value is derived from other attributes: use a Formula data reference or an Analysis output, not a hand-created tag. The calculation belongs in AF.
  • Only some elements of a template carry the measurement: move the attribute to a separate or derived template, so elements that lack the instrument do not define it at all.

Do not create a static placeholder tag when both options would work: a placeholder hides the gap and risks being read as a real measurement on the floor. One safety note: never disguise a bad state as a plausible process number; an operator will act on it.

Create the missing PI Point from the attribute #

When a measurement is coming, build the point so AF resolves cleanly:

  1. Open the element template in PI System Explorer and select the attribute template, so the fix inherits to every element, not just the one you noticed.
  2. Confirm the data reference is PI Point and read the configured tag name or substitution pattern that builds it.
  3. Create the point on the Data Archive with that exact resolved name, either through AF's own point creation for the data reference or manually in PI System Management Tools.
  4. Set the point's data type to match the measurement, using the point type setting the interface expects, and set the point source and engineering units from the instrument specification, not from defaults.
  5. Refresh the attribute in PI System Explorer. The value must leave the error state and show either a live value or a plain no-data state.

A new tag stays empty until its interface writes a first value. That is expected; confirm the interface is running before treating it as a second fault.

Replace the reference when no tag should exist #

When the tag should not exist yet, remove the error at the source instead of hiding it on the display. Set the attribute's data reference to Formula and compute from attributes that do resolve, or set it to None and give it a static default typed so it cannot be mistaken for a reading, for example a string such as Not configured or a number clearly outside the process range.

After changing the reference, rebind the affected PI Vision symbols, because a symbol built while the attribute was in error can keep showing the cached state. Reload the display and confirm the symbol shows the default or computed value while every other symbol on the page is unchanged. A fixed default carries the same trap as a fallback in any expression-driven value: if you use one, the guide to fixing an expression tag switch returning a fallback value shows how to keep the placeholder from being taken as a real result.

Guard the Analysis with BadVal and NoOutput #

An Analysis referencing an attribute in an error state evaluates bad or writes nothing, so guard the input explicitly. This worked example converts a discharge pressure to bar and skips the write when the input is bad:

If BadVal('Pump01|Discharge Pressure') Then NoOutput()
Else 'Pump01|Discharge Pressure' * 0.06895

At a reading of 100 psi the expression writes 100 × 0.06895 = 6.895 bar to the output attribute. When the input attribute is bad, the same expression performs no output write at all, so the output keeps its previous good state instead of going bad. Confirm both function names in the expression editor's function list for your AF version before saving, because BadVal tests the input state and NoOutput suppresses the write.

Two refinements:

  • Where downstream consumers need a number even during the gap, return a defined fallback instead of NoOutput, and pick one that is unmistakably not a process value.
  • On a mixed population, scope the Analysis to a template or category containing only elements that carry the tag, so it never evaluates the incomplete ones and the two cases never share one output stream.

Check it: open the Analysis on an element still missing the tag, evaluate, and confirm the result is the intended fallback or no output, not an error.

Prove the fix end to end #

Run this checklist on the element you fixed and one sibling built from the same template:

  • In PI System Explorer, no attribute on the element shows an error value, including the one that was missing its point.
  • In the Analyses view, the analysis status is running and the last evaluation shows no error; preview a backfill only if you also need the history repaired.
  • Open the PI Vision display in a fresh browser session, not a cached tab, and confirm the symbol shows a value, the default, or the deliberate no-data state.
  • Repeat on the sibling element to confirm the fix lives on the template, not in a one-off edit.
  • When the first real value arrives on the new tag, confirm the attribute, the symbol and the Analysis output all move from the default to the measured value.

If you also keep raw historian data in SQL Server alongside AF, the same verify-by-value habit applies when reading default historian data in SQL Server the supported way: confirm one known tag, one known value and one known timestamp before declaring the pipeline whole.

Questions asked

Why does a PI Vision symbol show an error when the AF attribute has no tag?

The attribute's PI Point data reference stores a tag name, and a point name maps one-to-one to one point on the Data Archive. When the configured name matches nothing, AF returns an error value rather than a default, and PI Vision renders the state it receives. Create the point or change the data reference so the attribute returns a real value.

Do PI tags have to exist as AF attributes before an Analysis can use them?

No. Asset Analytics can reference a PI point directly, the same way it references an attribute, so an unmapped tag is still usable in an expression. Mapping matters when you want the point to appear in the element hierarchy, on element-based PI Vision displays, or as an attribute other consumers resolve through AF.

Why does the symbol still show an error after I created the PI Point?

A newly created point holds no archived values until its interface writes the first one, so a fresh tag legitimately has no recent value; that is not a binding fault. Confirm the interface is running and writing, refresh the attribute in PI System Explorer, then open the PI Vision display in a fresh browser session, because a cached tab can keep showing the old error state.

Should I create a placeholder tag just to stop the error?

Only when a real instrument or interface will feed that tag soon. A static placeholder hides the gap and can be read as a genuine measurement by operators, trends and Analyses. If the value exists only for display layout, set the data reference to None with a clearly non-process default or to a Formula, so nothing downstream mistakes the placeholder for live data.

Keep reading

  • Troubleshooting

    Fix a DeltaV embedded trend that shows no PI history

    The error names the chart's own PI history connection, PI1, failing to open — the data is not missing. Process History View working on the same workstation proves the server, network and stored interval are good, so stop cycling hostname, IP and defaulthost and reconcile the chart's Historical Data Server entry and the PI1 connection definition against the viewer's working path.

    Edge computing and IIoT

  • Troubleshooting

    Fix historian silent data gaps with a registry value

    The data is stored; the retrieval view of it is stale. On the Historian server, create the DWORD32 value UseFileCacheForRetrieval set to 0 under HKLM\SOFTWARE\ArchestrA\Historian\Programs\aahStorage, then refresh the trend, with no reboot required. Confirm the fix by loading a previously blank window before running any manual query.

    Edge computing and IIoT

  • Troubleshooting

    Historian trend empty: PLC tag collection troubleshooting

    A live PLC value proves nothing about what the historian stored. Work one known, changing tag through four boundaries — controller to data server, server to collector, collector to point, point to chart — and with a 2 s update rate, a 1% deadband on a 200 in span and a 24 in/h fill, a 20 min window must show about 4 stored events. Zero events means the collector; four events with a flat chart means the display.

    Edge computing and IIoT