IMD SolutionComputing LibraryShop main store

Troubleshooting

Why PI Vision shows Calc Failed when you click Now

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

Short answer

Calc Failed at Now means the clock resolving Now runs ahead of the clock stamping the data, so the calculation asks for a value from the future; restarting servers changes nothing. Moving the display time thirty seconds back confirms it. The fix is one NTP source across the data source, Data Archive and PI Vision servers, with residual offset well below the shortest scan interval.

On this page
  1. Why does PI Vision show Calc Failed when the display time is Now?
  2. Which three clocks decide whether Now lands ahead of the data?
  3. Why does the trend show a value when the symbol says Calc Failed?
  4. How much skew does it take to break a calculation at Now?
  5. Why did restarting the servers twice a day change nothing?
  6. How do I confirm clock skew instead of a tag fault?
  7. How do I fix the clocks permanently?
  8. How do I verify the fix held?
  9. Questions asked

Calc Failed at Now is a clock problem, not a display problem, and restarting the servers cannot fix it. When a PI Vision symbol fails only at the current time and recovers when the display time is shifted back, the clock resolving the request runs ahead of the clock stamping the data, so the calculation asks for a value that has not arrived yet. Typing *-30s into the display time gets numbers back immediately and fixes nothing permanently. The permanent fix is one NTP time source across the data source, Data Archive and PI Vision servers, with the residual offset held well below the shortest scan interval.

Why does PI Vision show Calc Failed when the display time is Now? #

The clock that resolves the * timestamp runs ahead of the clock that stamps the data, so the calculation asks for a value from the future, the scheduler cannot perform it, and the symbol shows Calc Failed.

The PI Server documentation states the behavior behind the text: when the scheduler cannot perform a calculation during runtime it returns the error value Calc Failed, and that error value propagates through most of the calculations built on top of it, which is why one failing input turns a whole panel of symbols bad at once. The reported pattern carried three markers together: the fault appears only when the display time is Now, the same symbols recover when the time is shifted back, and the trend for the same attribute draws a normal curve. A tag configuration fault or a broken display binding fails at every time, on the trend as well, so timing is the suspect and the tag is not.

Which three clocks decide whether Now lands ahead of the data? #

Three clocks matter: the one on the interface or data source node that stamps incoming events, the one on the PI Data Archive server, and the one that resolves the current-time request on the PI Vision web server or the browser client.

Only two of the three decide this fault: the stamping clock and the clock that resolves the request. Event timestamps are created on the interface or data source node and travel with the event into the archive, so arrival at the archive is not what stamps the value — why a value timestamp is not a receipt time covers that split in detail. A single interface node with a fast clock puts future timestamps into the archive for its own tags, and every calculation reading those tags fails at Now while the rest of the plant looks healthy. Check the ends of the path first: the node that stamps, and the machine whose clock answers Now.

Why does the trend show a value when the symbol says Calc Failed? #

The trend asks for a time range and renders the last archived event inside it, while the symbol asks for a calculated result at one exact timestamp, and that instant can sit ahead of the newest stored input.

A trend plots whatever archived events fall inside the range, so it always has something to draw once a single event exists. A calculation symbol needs a result at one exact instant, and when that instant sits past the newest stored input there is no later event to interpolate from, so the input is missing and the scheduler reports the failure. Read a good trend next to a bad symbol as a timing indicator: the data is present, and the request time is the problem.

How much skew does it take to break a calculation at Now? #

A skew ahead of the data by more than your stopgap margin does it: with a 10 s scan, about 5 s of interface latency and the display clock 45 s ahead, Now lands 60 s past the newest event and even the thirty-second stopgap still fails.

Worked example with example inputs — substitute your own measured values and apply the same ledger:

  • Natural lag: the newest archived event trails true current time by S + L = 10 + 5 = 15 s even when every clock agrees, where S is the scan interval and L the interface-to-archive latency.
  • Skew: with the display server Δ = 45 s ahead of the source clock, a click on Now evaluates 45 + 15 = 60 s past the newest event.
  • Stopgap: *-30s moves the request to 60 − 30 = 30 s past the newest event, still ahead of the data, so it still fails.
  • Matched clocks: with Δ near zero the same click lands about 15 s past the newest event, a gap a small fixed display offset covers.

The rule that falls out: a calculation at Now fails whenever skew plus natural lag exceeds the time shift you apply. The older deployment in the report survived because its PI time ran almost one minute behind wall clock, a margin that absorbed both terms at once. Hold the residual offset below one tenth of the shortest scan interval that feeds a calculation — under 1 s for the example scan — and typical LAN synchronization, tens of milliseconds, sits far inside that.

Why did restarting the servers twice a day change nothing? #

A restart resets services but leaves each clock where it was, so the offset between the stamping node and the display server survives the reboot and the calculation fails again on the first click of Now.

A service restart clears memory and reloads configuration; it does not move a clock. The reported deployment restarted its servers at 00:00 and at 12:00 every day from July 2024 and the fault persisted; it disappeared only after a new time synchronization system went in on 28 November 2024. Draw the operational conclusion: any fix that leaves the offsets unchanged is not a fix, and restart schedules do not belong in the plan.

How do I confirm clock skew instead of a tag fault? #

Change the display time from Now to a time thirty seconds in the past: a value that turns normal proves the inputs are healthy and the problem is timing, while a value that stays bad points at the inputs, the syntax or the point status.

  1. Reproduce it: open the failing display, click Now, and record the exact text on the symbol, whether Calc Failed, No data or Bad.
  2. Type *-30s into the display time. A value that turns normal proves timing; a value that stays bad points at the inputs, the calculation syntax or the point status.
  3. Open the trend for the same attribute and compare its newest event timestamp against the clock on the PI Vision server. A gap far larger than the scan interval signals latency; a server clock ahead of the event stamps signals skew.
  4. Compare clocks node by node. On Windows, w32tm /query /status shows the sync source and the last successful sync, and a stripchart against a peer, for example w32tm /stripchart /computer:dc01, prints the offset sample by sample.
  5. Check that every node follows the same time source with the same time zone and daylight-saving settings. Mixed sources give steady offsets of seconds, while a steady offset of whole hours is a zone or UTC interpretation fault, which the article on a historian value hours off takes apart.

How do I fix the clocks permanently? #

Point every node in the path at one authoritative time source, force a resync on each, and keep the residual offset below one tenth of the shortest scan interval that feeds a calculation, which for a 10 s scan means under 1 s.

Make the change inside a window agreed with operations, because a resync moves the timestamps that alarms, shift handovers and the historian rely on.

  1. Pick one authoritative source for the plant, either the domain hierarchy or a dedicated NTP appliance, and document which node owns time.
  2. Point the PI Data Archive server, the PI Vision web server and every interface or data source node at that source, and remove competing services. On virtual machines, turn off hypervisor time synchronization that adjusts the guest clock against the operating system service, and remember that containers inherit the host clock, so the host is the node to correct.
  3. Force a resync on each node and record the residual offset with the stripchart comparison; ordinary LAN synchronization holds far tighter than the target set above.
  4. Never clear the skew by winding a clock backward by hand: PI tags stop updating after manual clock changes, and a hand correction trades this fault for a worse one. Fix the source the clock follows instead.
  5. Keep a small documented display offset only where the data path has inherent latency, sized to more than the scan interval plus the transfer latency, and never to hide real skew.

After the change the skew term in the ledger collapses to milliseconds and the fault at Now stops, which is what the reported plant saw from the day its new synchronization went in.

How do I verify the fix held? #

Set the display time back to Now and click it repeatedly on several displays and several client machines through at least one slow-scan update cycle and one server reboot, because a skew fault is intermittent and one clean click proves nothing.

Include a window when the slowest scan class feeding a calculation is the live one. Repeat after a daylight-saving transition, the other event that exposes half-configured synchronization, and re-run the stripchart on every node to confirm each reports the same source with a small, stable offset. If a symbol still fails at Now with the clocks matched, stop chasing sync precision and size that symbol's display offset to the natural lag of its inputs.

Questions asked

What does the display time entry minus thirty seconds actually do?

In PI time syntax the asterisk stands for the current time and a suffix such as -30s shifts it thirty seconds earlier, so the display evaluates inside stored data instead of at the moving edge of Now. Size the offset to more than the natural lag of the data, which is the scan interval plus the transfer latency into the archive, or symbols will still fail on some clicks.

How far apart should properly synchronized plant clocks sit?

On a healthy network, domain or NTP synchronization holds offsets in the tens of milliseconds, far under any scan interval. An offset of whole seconds means a node is using a competing time source or its sync path is broken. An offset of whole hours points at a time zone or UTC interpretation problem, which is a different fault from the seconds-scale skew that breaks calculations at Now.

Does a daylight-saving transition cause this fault?

Not by itself: the offset between clocks, not the zone, drives the fault. A transition weekend exposes machines whose time zone or daylight-saving settings differ from the rest of the plant, because those machines gain or lose an hour against the archive and every calculation they feed starts failing. Check that every node in the path shows the same local time immediately before and after the change.

Why did the fault appear right after the upgrade to the newer PI Vision?

The earlier deployment ran its PI time almost one minute behind wall clock. That lag worked as a built-in margin: clicking Now landed about a minute inside stored data, so a latent offset between clocks never had a visible effect. The upgrade removed the margin and exposed the offset that had been there all along, which is why the fix is time synchronization and not a display setting.

Keep reading

  • Troubleshooting

    Historian Client concurrent licenses on one RDS server

    Two users running five Historian Client applications on one RDS server consume two concurrent seats, because the Historian Client Desktop concurrent license is allocated per Windows session, not per application. Seats beyond the live-session count come from disconnected sessions still running clients; set a disconnected-session logoff limit on the RDS collection to stop them accumulating.

    Edge computing and IIoT

  • Troubleshooting

    PI AF attribute with no PI Point tag in PI Vision

    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.

    Edge computing and IIoT

  • Troubleshooting

    When PI Vision connects to only one PI Data Archive

    When PI Vision reaches the production PI Data Archive but fails on the development archive, trace the failing request before touching Kerberos: confirm the w3wp connection in the archive's message logs, verify the pool identity, then check the Windows network profile. In the reported case a domain connection reclassified as Private broke the path; restoring the domain classification fixed it.

    Edge computing and IIoT

Why historian configuration shows only system tags