IMD SolutionComputing LibraryShop main store

Troubleshooting

Why WinCC tag data never reaches Process Historian 2014

Edge computing and IIoT Published 7 min read

Short answer

An empty Outgoing Queues folder under Message Queuing on the WinCC host means the PH-Ready publisher never enqueued a message, so this is not a network or delivery fault. The fix is Process Historian 2014 SP2 Update 2 with Information Server 2014 SP2 Update 2 on both machines at the same level, a manually typed PH server name in the PH-Ready wizard, and the CCCAPHServer service account present with the same password on both machines.

On this page
  1. How WinCC hands tag data to the Process Historian
  2. What an empty outgoing queue rules out
  3. Work through these checks first
  4. Example: an empty queue after 5 minutes of a 2-second logging cycle
  5. Install SP2 Update 2 on both servers
  6. Verify values are landing
  7. When the matched pair still leaves the queue empty
  8. Questions asked

If the upper graph in Process Historian Management is alive, every PH service shows green, ping works in both directions, and the Outgoing Queues folder under Message Queuing on the WinCC machine is completely empty, you are looking at the diagnosis rather than a vague symptom: the PH-Ready publisher on the WinCC host never handed a single message to MSMQ, so no network fix can recover data that was never sent. The fix that resolves this exact condition on Process Historian 2014 SP2 is a matched patch level — Process Historian 2014 SP2 Update 2 and Information Server 2014 SP2 Update 2, both servers at the same level — plus the PH server name typed by hand into the PH-Ready wizard and the CCCAPHServer account present with an identical password on both machines. Work the checks in order; the worked example shows how to prove nothing was enqueued before you patch.

How WinCC hands tag data to the Process Historian #

The setup behind this fault is the common test bench: the Process Historian 2014 on one machine — frequently a virtual machine on Windows Server 2008 R2 SP1, installed from PCS 7 v8.1 media — with WinCC v7.3 on a second machine, the pair joined by an internal virtual network. WinCC runtime writes tag logging values and alarms into its own archives. The PH-Ready component, installed separately on the WinCC machine from the same media generation, adds the Process Historian entries to WinCC Explorer and runs the publisher that hands those records to Microsoft Message Queuing. MSMQ carries them from the WinCC host's outgoing queue to the PH server, where the CCCAPHServer service receives them and writes them into the historian's 64-bit SQL Server 2014 database. The historian then acknowledges successful storage back to PH-Ready.

The Management Console splits the picture in two. The upper graph is the PH server's own local activity; the lower graph is data arriving from WinCC. A live upper graph over a flat lower graph is the documented signature of two machines that exchange their connectivity information while no data flow is established. Where a Process Historian belongs as the long-term archive behind a PC-based SCADA host is a sizing decision of its own — choosing a site historian for a PC-based SCADA host walks that choice.

What an empty outgoing queue rules out #

The PH/IS 2014 SP2 installation and commissioning manual sends you to Outgoing Queues under Message Queuing — reachable through Computer Management on the WinCC host — for the case where messages exist but cannot be delivered: an entry sits in the folder while MSMQ retries. That is a transport fault, and it responds to network and credential work. The case in this article is the opposite: no entry at all, so nothing was ever enqueued, there is nothing to retry, and no network fix applies.

Read the folder as a timing test. Once WinCC runtime starts, an entry named for the PH server should appear under Outgoing Queues within about 60 seconds. Inside that window with an entry present, you have a delivery problem and the manual's path applies. Past that window with the folder still empty, the publisher never initialized — stop working the wire and run the checks below.

Work through these checks first #

Four configuration faults fill the same folder with silence, and each is quick to eliminate:

  • Type the PH server name by hand. In the PH-Ready configuration wizard, browse very often returns nothing — across virtual NAT networks and routed subnets that is the norm. Manual entry works even when discovery finds no server, so never let an empty search stop the configuration.
  • Match the service account on both machines. CCCAPHServer is not auto-started on a fresh PH installation. Start it under the PH server's service account, and create a user with the identical name and password on the WinCC machine, because the publisher authenticates with that identity.
  • Confirm Message Queuing is installed on the WinCC host. Without the Windows feature, the PH-Ready wizard still writes its settings, but no queue path exists to hold anything.
  • Prove the WinCC side archives locally. Create at least one tag logging archive, drive a value from PLCSIM, watch the runtime trend update, and restart runtime to confirm the value persisted. If that holds, the fault sits downstream of WinCC.

With all four clean and the folder still empty past the queue-check window from the section above, the patch level is the remaining suspect — and the example below shows why waiting longer will not help.

Example: an empty queue after 5 minutes of a 2-second logging cycle #

Inputs, and where each comes from:

  • Logging cycle: 2 s per value. This is the example's declared input, matching the single tag logging archive driven from PLCSIM in this scenario; set it to your archive's real cycle before reusing the arithmetic.
  • Observation window: 300 s of WinCC runtime online, also a declared input.
  • Queue-entry threshold: 60 s after runtime start, the practical check limit from the section above.

Rule in words: a runtime that has been online for a given time owes one archived value per logging cycle, and every owed value must pass through the outgoing queue on its way to the historian. Delivery trouble shows up as messages waiting in that queue; it never shows up as a missing queue.

Arithmetic: values owed = runtime online time ÷ logging cycle = 300 s ÷ 2 s per value = 150 values. At the queue-entry threshold the same runtime already owes 60 s ÷ 2 s per value = 30 values, and the folder shows no entry.

Result: 150 values produced inside the window, zero messages enqueued.

Decision: an empty Outgoing Queues folder at the 60-second mark while the runtime is producing values is the publisher initialization fault — apply the matched SP2 Update 2 pair below without further network work. Entries sitting unsent in the folder would instead indicate a delivery fault, where the network and account checks from above apply.

Install SP2 Update 2 on both servers #

This is the fix that resolves the empty-queue condition on PH 2014 SP2: bring both sides to Update 2 so publisher and receiver match.

  • Install Process Historian 2014 SP2 Update 2 on the PH server. The package refreshes the forwarding service and the database migration scripts along with the server itself. Source both packages from the same vendor support channel as your base media.
  • Install Information Server 2014 SP2 Update 2 on the WinCC machine — this is what brings the WinCC-side PH-Ready components to the matching level.
  • Reboot the PH server first, then the WinCC machine.
  • Verify both levels under Programs and Features → View installed updates: each product must show SP2 Update 2 or the same higher cumulative level.

Mixed levels undo the fix: a PH server at Update 2 with WinCC-side components still at SP2 base reintroduces the no-data-flow condition, which is how an update that installed correctly gets blamed for failing. After both installs, re-run the PH-Ready wizard — typing the server name again if browse finds nothing — start WinCC runtime, and re-read the queue folder.

Verify values are landing #

With enqueueing working, the lower graph in PH Management Console picks up shortly after WinCC runtime starts. Confirm it with numbers rather than impressions: watch connected clients, stored values and stored messages climb, then prove one record end to end. Drive a single tag deliberately, read that exact value back out of the archive, and check the timestamp matches the moment you drove it. Rising counters prove volume; the known tag, value and timestamp prove correctness.

Do not judge a first-time pairing by the lower graph alone, because the initial archive import can run far longer than the queue check — that slowness is not the fault described here. And once data flows reliably, later holes in the trend are a different problem with its own fix: fixing historian silent data gaps with a registry value.

When the matched pair still leaves the queue empty #

One field-reported installation with this exact signature never produced a queue entry even with the update path exhausted: the hosts ran strict Windows protection policies, and the cause stayed buried somewhere in Windows and network settings, never isolated. Treat that as a class of fault rather than a dead end. Prove the WinCC-and-PH pair on machines at baseline hardening first, where the queue entry should appear as described; then reintroduce policy pieces one at a time until the entry disappears. The rule that blocks the publisher ends up identified by name instead of fought blind across the whole policy set.

Questions asked

Does an empty outgoing queue mean Message Queuing is missing on the WinCC host?

Not by itself. Message Queuing must be present as a Windows feature before PH-Ready can hand anything over, so confirm the feature is installed before drawing a conclusion. With the feature present, all services green, and the folder still empty after runtime start while values are being logged, the publisher never enqueued — the patch-level condition described in this article, not a transport fault.

Why must the CCCAPHServer account exist on the WinCC machine too?

The forwarding service runs under the PH server's service account, and the WinCC side authenticates to the queue path with that identity. Create a local user on the WinCC machine with the identical user name and password, then start the service under that account on the PH server. Without the match, the publisher cannot establish its session even though every service shows green and ping succeeds in both directions.

Do ping and green services prove the WinCC-to-PH link is healthy?

No. They prove reachability only. In this fault the two machines exchange their connectivity information successfully while no data flow is established, so ping results and running services are fully consistent with a publisher that never enqueues. The only local proof of health is an entry appearing in the WinCC host's Outgoing Queues folder after runtime start, followed by climbing stored-value counters on the PH side.

How long does the lower graph take to show data the first time?

Longer than the queue check, and that is normal. Field-reported first imports run from roughly 10 to 30 minutes on small projects to several hours once the archive holds thousands of tags, because the historian imports the WinCC archive and opens its segments after the first runtime start. Judge success by entries sitting in the outgoing queue, not by an immediate lower graph.

Should a Process Historian Editor entry appear in WinCC Explorer?

Yes, and its presence is normal even though the manual's procedure does not mention it — the entry arrives with the PH-Ready component. The trap is the search inside it: discovery frequently returns no servers, especially across virtual NAT networks and routed subnets. Skip the search entirely and type the PH server's name directly into the PH-Ready configuration wizard, because manual entry works where discovery does not.

Keep reading

  • 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

  • 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

  • Troubleshooting

    Why Historian SDK events never show in AlarmClient mode 2

    Yes, this is expected behavior. The Historian SDK stores records in dbo.Events and never raises transactions in the Alarm and Event system, so AlarmClient mode = 2, which lists recent alarms and events from the alarm provider, cannot show them. AlarmApp in Historical mode reads the Historian database directly and displays the same rows with their custom messages; only Application Server events such as write success reach recent mode.

    Edge computing and IIoT