IMD SolutionComputing LibraryShop main store

Troubleshooting

Aggregation Matrix report fails when tag count rises

Edge computing and IIoT Published 10 min read

Short answer

The failing report is the bigger aggregate workload even though it covers a shorter time range: report size follows tags times intervals, not the date span. The error name identifies the database function that was executing, not the cause. Capture the complete SQL message and test one report setting at a time.

On this page
  1. Why does a ten-tag month fail when a three-tag four-year report passes?
  2. What does the udf_GetTagValueAggregateSeriesPrecise error actually tell you?
  3. Which versions and settings do you record before changing anything?
  4. How do you isolate the trigger with one-change-at-a-time tests?
  5. What does the gupdate event in Process Historian Diagnostics mean?
  6. How much aggregate work does an Aggregation Matrix report request?
  7. How do you measure the database during the failing run instead of trusting the hardware sheet?
  8. What is the fix once the tests point at a trigger?
  9. Questions asked

A four-year Aggregation Matrix report for three tags runs to completion, while a one-month report for ten tags stops on the database function udf_GetTagValueAggregateSeriesPrecise. That pattern already points at workload: report size follows tags times intervals, not the date span, so the shorter report can be the bigger job. The error name marks where execution stopped — inside the function that computes the aggregated series — not what caused the stop. Capture the complete SQL message first, isolate the trigger with one-change-at-a-time tests, then apply the correction the trigger calls for; this article works that path on an installation of SIMATIC Information Server 2014 SP3, Process Historian 2014 SP3 and SQL Server 2014 SP2.

Why does a ten-tag month fail when a three-tag four-year report passes? #

The report that fails demands more aggregate work than the one that passes: ten tags over one month at a daily interval produce 300 output cells, while three tags over four years at monthly intervals produce 144, so the failing report is the larger workload.

An Aggregation Matrix report's output size is, as a first approximation, selected tags times requested intervals. The arithmetic for the two runs in question:

  • Failing report: 10 tags × 30 daily intervals (one month) = 300 cells.
  • Passing report: 3 tags × 48 monthly intervals (four years is 48 months) = 144 cells.
  • Ratio: 300 ÷ 144 ≈ 2.1, so the one-month report produces roughly twice the aggregate output of the four-year report while covering 1/48th of the dates.

Cells estimate report size, not exact SQL cost — archive row density, calculation type, quality filtering and concurrent load all shift the real cost. They rank jobs correctly, though, and here they rank the shorter month as the bigger job, which is exactly what the failure shows. That ranking, not the calendar, is what your tests should reproduce.

What does the udf_GetTagValueAggregateSeriesPrecise error actually tell you? #

The name tells you the report died inside the database function that builds the aggregated value series, the udf_GetTagValueAggregateSeriesPrecise call, and nothing more; the surrounding SQL error number, severity, message text and timestamp decide whether the fault is data, permission, object, resource or report size.

A user-defined function is database logic that a query calls, so an error naming it can originate inside that logic or in the conditions met while running it: the input series, the objects it reads, the rights of the reporting account, or the resources the query receives. The message around the name selects the path.

Separate the two look-alikes early:

  • A timeout means an operation exceeded the period it was allowed to wait or run; report size and server load drive it.
  • A blocking condition means the query waited for another operation to release a resource it needed; concurrency drives it.

Both can surface under the same function name, and they take different corrections.

Capture the complete text every time: the SQL error number and state that follow the message prefix, the severity or level, any nested provider message, and the execution timestamp. When the message points at rights on the historian database instead, the six runtime grants a historian login needs are cataloged in SQL historian database permissions.

Which versions and settings do you record before changing anything? #

Record the exact installed combination before changing anything, because a correction is only valid for a named build: SIMATIC Information Server 2014 SP3, SIMATIC Process Historian Server 2014 SP3, Microsoft SQL Server 2014 SP2, WinCC V7.4 + SP1 as the data source, and Windows Server 2012 R2 Standard.

The reporting path splits into four pieces, and success in one proves nothing about the others: Information Server defines and renders the report, Process Historian stores the archives, SQL Server executes the aggregation function, and WinCC feeds values into the historian on its own schedule. Clean trends in WinCC show collection is healthy; they do not show that the report's calculation completes. When the symptom sits in the trend display itself rather than the report, troubleshooting historian trend client connection failures covers that separate path.

Before any change, write down:

  • Exact versions and service packs of all four components, plus any installed hotfixes or updates
  • The report definition: selected tags, date range, aggregation interval, calculation type, template
  • The report's data source configuration and the account it executes under
  • License status — Information Server Client Access, Information Server Datasource Access, PCS 7 Information Server V14.0 and PCS 7 Process Historian Server V14.0 are names on paper; verify the reporting account can actually reach every selected data source
  • The compatibility entry for this exact combination in Siemens' documentation, including any correction the vendor requires beyond matching service-pack labels
  • Server hardware inventory by role only — RAM, core count and disk layout become evidence later as measurements, not as numbers on a spec sheet

The expected outcome is an identified reporting path with no access or license fault, and a combination that documentation lists as supported. One line you do not cross while testing: do not disable the Windows Firewall service, MpsSvc, or strip the reporting account's rights to force a pass — that erases the evidence and weakens the network the historian sits on.

How do you isolate the trigger with one-change-at-a-time tests? #

Change one report setting at a time and keep everything else fixed, because comparing a four-year, three-tag run against a one-month, ten-tag run changes several variables at once and proves nothing about which one stops the report.

  1. Save a baseline that completes: the passing request exactly as it ran, with its tags, interval and calculation unchanged. Record the settings and the runtime so every later run compares against a known good.
  2. Add tags in steps — start from the baseline and grow the selection until it fails — holding range, interval, calculation, template and execution account fixed. The first failing selection is your installation's threshold: an observed point, not a documented product limit.
  3. Take the first failing selection and shorten only the date range, with the interval unchanged. If a shorter range completes, the trigger is the number of intervals — total workload — not the tag count alone.
  4. Swap tags inside the failing selection while keeping its size constant. If some selections at that size complete, a particular tag's archive segment or quality states drive the fault, not the count.
  5. Coarsen the interval resolution — daily to hourly — on the failing selection, or split the selection into two smaller reports. Either one completing confirms a workload trigger and hands you the workaround in the same test.

Repeat the failing request twice with nothing changed. An identical signature both times means a deterministic fault; a differing one means contention, and the measurements below become your evidence.

What does the gupdate event in Process Historian Diagnostics mean? #

Treat the gupdate entry as a co-occurring record, not a diagnosis: it is an event source in Process Historian Diagnostics, and only its own provider, event identifier, message text and timestamp tell you whether it belongs to the same fault or merely to the same minute.

Correlate instead of assuming. Rerun the failing report once, then pull the records for that exact window from four places: the Information Server side's report execution records, Process Historian Diagnostics, the SQL Server error log, and the Windows Application and System event logs. A matched sequence across them shows where execution stopped — report rendering, database execution, or archive access.

Record the full provider, event identifier, timestamp and message text for the gupdate entry so it can be classified on its own; its presence beside the failure proves sequence, not causation. The same discipline — one timestamp window, every log, matching failure signatures — is what you use to trace a SQL log error after a historian migration.

Compare two repeats of the failing request: an identical signature confirms a deterministic fault you can chase to an object, a right or a data path; a changed signature confirms an intermittent condition and moves the investigation to the resource measurements in the next section.

How much aggregate work does an Aggregation Matrix report request? #

Workload scales with tag count times interval count: the failing selection at a daily interval produces 300 cells, and the same selection at a one-minute interval produces 432,000 — a 1,440-fold increase from interval resolution alone.

The arithmetic behind that jump: one month is about 30 days × 1,440 minutes/day = 43,200 minutes, so one-minute aggregation asks for 43,200 intervals per tag instead of 30, and 43,200 ÷ 30 = 1,440 is exactly the factor from 300 to 432,000 cells. Three levers move the workload: tag count multiplies it linearly, interval resolution multiplies it linearly, and calculation type and archive row density change the cost per cell. That is why one report setting — the interval — can move a job by three orders of magnitude without touching the tags or the dates.

How do you measure the database during the failing run instead of trusting the hardware sheet? #

Measure during execution, because the inventory on paper — four cores, 32 GB RAM, four 1 TB SATA drives — describes capacity, not the memory, waits, blocking and storage latency present at the moment the function fails.

Run one passing report and one failing report back to back, and during each watch per-core CPU, SQL Server's memory against what other services on the box hold, storage latency on the archive volume, temporary and log growth, and the wait list. The passing run is the baseline that makes the failing run's numbers mean something.

Observation during a failing run What it points to Next check
Failure follows one tag or one date interval That tag's archive path or quality data Read the tag alone over the range in historian trends; note gaps and quality states
Failure tracks tag count at a fixed interval Workload-sensitive execution Split the report or coarsen the interval
Failure shifts when other load runs Blocking or contention Capture waits and blocking chains during a repeat run
Identical SQL error on every run, immediately Input, permission or object fault Act on the message text, not the function name

Gaps or quality flags in a tag's history are findings about data availability, not proof of corruption; read the individual failing tags over the affected dates before treating archive damage as the cause. If the database administrator can capture waits, blocking and execution duration for one failing run, attach that capture to the escalation — it replaces a vague slow-report complaint with a named condition.

What is the fix once the tests point at a trigger? #

Match the correction to the trigger: a tag-count or interval trigger is fixed by splitting the report into halves at the observed threshold, a data trigger is fixed on that tag's archive, a permission fault on the login's rights, and a timeout by shrinking or rescheduling the report.

  • Workload trigger — the add-tags, shorten-range and split tests all agree: split the matrix into smaller reports, half the tags or a coarser interval, and schedule them apart so their aggregate series never execute together. That caps concurrent series per run and is the committed workaround for this failure pattern.
  • Data trigger — the tag-swap test isolated one tag: chase that tag's archive segment and quality states, and keep the other tags reporting by splitting the selection meanwhile.
  • Permission or object fault — the same identical message on every run: correct what the message names, the login's grants or the missing object, not the function.
  • Timeout — shrink the cells per run, move the report off-peak, or split it as above; raising the wait alone only moves the wall.
  • Documented product fault — apply a correction or an update only when Siemens documents this exact symptom for these exact builds: Information Server 2014 SP3 with Process Historian 2014 SP3 on SQL Server 2014 SP2. An update without a documented symptom match is a hope, not a fix.

The decision for this installation, in order: rerun the failing report and capture the full message; place your own threshold on the test matrix by growing a passing selection until it first fails; if workload is the trigger — as the tag-count pattern here indicates — split the reporting below that threshold and archive the capture file with the report definition, so the next version change starts from evidence rather than a hunch.

Questions asked

Should I disable the Windows Firewall service to rule the network out?

No. Stopping the Windows Firewall service, MpsSvc, removes a security control and proves nothing. Run the same failing report directly on the historian server, where it never crosses the network at all. If it still fails there, the network was never the suspect, and the firewall on the plant segment stays intact.

Can I push the failing tag count higher by adding server resources?

Only when the captured message shows a timeout or a resource fault, and even then the extra memory moves the threshold instead of removing it. The observed failing count belongs to one installation, so no hardware figure tells you where your own report stops. Find your threshold with the incremental test and size reports below it.

What should I send when I escalate the case to the vendor?

Send the complete error text with the SQL message number and execution timestamp, the report definition with tags, date range, interval and calculation, the installed builds of Information Server, Process Historian, SQL Server and the operating system, the correlated event entries from one failing run, and your one-change-at-a-time results naming the first failing selection.

Does a clean WinCC trend display prove the report should also run?

No. Trends read stored values back out of the archive, while the Aggregation Matrix report asks SQL Server to compute new aggregate series across many tags in one execution. Clean trends show collection and storage are healthy; they say nothing about the report's calculation path, its permissions or the resources it receives.

Is waiting for a product update a valid fix?

Only when the manufacturer documents this exact symptom for your exact builds. Look up the failing function name together with Information Server 2014 SP3, Process Historian 2014 SP3 and SQL Server 2014 SP2 in the vendor's support entries; if a documented correction exists, apply it. Without that match, an update is a hope rather than a fix.

Keep reading

  • Explainer

    Do you need a historian or just an OPC tag server?

    No. An OPC tag server (OPC DA) supplies the current value, quality and timestamp of each item and stores nothing, so monthly figures need a historian or a SQL logger collecting from that same server. Keep a reporting client like ActiveFactory only if you also run the historian it expects.

    Edge computing and IIoT

  • Troubleshooting

    Fix Historian error 241 tag has too many versions

    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.

    Edge computing and IIoT

  • Troubleshooting

    Fix historian table creation failing on MySQL over ODBC

    Capture the MySQL error from the historian's table-creation attempt. Use the historian's runtime connection settings to check the database, account, grants and supported schema. After provisioning for the exact historian release, verify a known test value and its recorded timestamp.

    Edge computing and IIoT