Selection guide
Backfilling Wonderware Historian data into PI: connector or RDBMS
Short answer
For outages and gaps on tags the connector already serves, keep the PI Connector for Wonderware Historian: recovery runs from each tag's last known good timestamp and, before release 1.3.0.2, reaches at most four days back. For older history and migrations, use the PI Interface for RDBMS; there is no OPC HDA route into Wonderware Historian.
On this page
- Match the route to the kind of gap
- Why live values arrive while older history stays missing
- What release 1.3.0.2 changes for new tags
- The RDBMS route when history predates the connector
- Make both ends agree before moving data
- Checking a 56-hour outage and an 11-day migration against the limit
- Questions asked
Pick by what the gap is, not by what the tool is called. For ongoing acquisition, and for outages inside its recovery window, keep the PI Connector for Wonderware Historian. For history older than that window, and for any migration you want to run in controlled date ranges, use the PI Interface for RDBMS against the historian's SQL query surface. The numbers that decide it: before release 1.3.0.2, connector history recovery reaches at most four days back per tag; from 1.3.0.2 the recovery start time for newly discovered tags is configurable. There is no OPC HDA route into Wonderware Historian at any release, so OPC-based options collapse to current-value acquisition.
Match the route to the kind of gap #
Three demands look identical in a PI trend — a hole where events should be — but they need different machinery: keep acquiring, recover after an interruption, or migrate an archive that predates the connector. Match the route to the demand before touching configuration.
| Route | History capability | Choose it when |
|---|---|---|
| PI Connector for Wonderware Historian, before 1.3.0.2 | Recovers from each tag's last known good timestamp at startup, capped at four days behind current time | The gap is an outage of four days or less on tags the connector already serves |
| PI Connector for Wonderware Historian, 1.3.0.2 and later | Same recovery, plus a configurable history recovery start time for newly discovered tags | You are adding tags and want their earlier source history pulled in with them |
| PI Interface for RDBMS | Runs the SQL you define and writes the returned timestamp, value and quality rows to PI points | Migration-scale backfill, repeatable date windows, any history beyond the connector's reach |
| PI OPC DA Interface | Reads current values from any source exposed through OPC DA | Ongoing acquisition only; DA carries no archive query |
| PI OPC HDA interface | No connection to this historian | Not a candidate: there is no HDA server side to connect to |
Asset-model preference does not decide this; timestamp, value, quality and date-range fidelity do. If the destination is another historian rather than PI, the routing problem is different — start from moving Wonderware Historian data into Canary Historian.
Why live values arrive while older history stays missing #
A current value on a PI point proves the live path works: the connector is reading the historian right now. It proves nothing about archive retrieval, which is a separate operation run from the connector's own bookkeeping. The documented behavior, under Learn about history recovery in the connector documentation: the connector persists the last known good value timestamp for each tag it is configured to write to PI, evaluates a recovery point per tag at startup, and works forward from there. Before release 1.3.0.2, when a tag's recovery point sits more than four days behind current time, the connector recovers only four days of the missing data.
Before blaming the transfer, query the source. If Wonderware Historian itself is missing the interval — collection lost upstream, retention expired — no route into PI will find it. And confirm the gap lives in the archive rather than the picture: read the archived events for the point and interval directly before reconfiguring anything.
What release 1.3.0.2 changes for new tags #
Release 1.3.0.2 extended history recovery so you can configure how far back the connector reaches when it discovers a tag; the capability is documented as Configure History Recovery Start Time for New Tags. The scope is the qualifier. The setting governs the initial history pull for newly discovered tags; it is not a replay control for points the connector already manages, whose recovery still keys off the persisted last-known-good timestamps.
Release 1.4.0.44 is the later release on the same line. Confirm the installed release before counting on the new-tag setting, and take the accepted start-time format, the configuration location and the activation procedure from the documentation for that release instead of guessing a setting name.
The practical read: adding tags whose older history you need, on 1.3.0.2 or later — set the start time at or before the earliest event you want. Established tags, or an earlier release — the RDBMS route carries the load.
The RDBMS route when history predates the connector #
For migration-scale backfill, the PI Interface for RDBMS is the route to use: it executes the SQL you define and writes the returned rows — timestamp, value, quality — into the PI points you map. It is the recommended answer for moving large amounts of Wonderware Historian data into PI, and the same interface is also run for ongoing logging out of Wonderware runtime databases.
What you gain over connector recovery is control: exact date windows per batch, repeatable runs, and a tag-to-point mapping you can review before the first row moves. The trade is that you own the query: the historian returns whatever the SQL asks for, interpolated rows included, so ask for recorded events.
Prove the route on one tag over one short window before loading the archive. A wrong time interpretation surfaces in an hour of test data; across a month of migrated data it becomes an archaeology project. The destination-side checks — confirming the load against known tags and timestamps — are the same as in backfilling PI from an existing plant historian.
Make both ends agree before moving data #
- Tag identity: map each Wonderware Historian tag to its intended PI point, and check near-duplicate names and any naming transforms either route applies.
- Time interpretation: establish what time zone the source rows carry and how PI interprets them, and resolve local time, UTC and daylight-saving boundaries before comparing event edges.
- Value representation: numeric types, discrete states, engineering units and quality flags must survive the trip; a float standing in for a source state is a silent corruption.
- Retrieval mode: a backfill writes recorded source events, not interpolated query output dressed up as measurements.
Checking a 56-hour outage and an 11-day migration against the limit #
Inputs. The documented reach of connector history recovery before release 1.3.0.2 is four days — 4 × 24 h = 96 h behind current time — evaluated per tag at startup. Two illustrative cases; substitute your own times. Case A: a connector host down from Friday 22:00, back Monday 06:00. Case B: established tags needing 11 days of history that never transferred.
Rule. At startup the connector measures the distance between each tag's last known good timestamp and current time. At or under 96 h it recovers the whole gap; over 96 h it recovers only the most recent 96 h, and the older part stays missing.
Arithmetic. Case A: Friday 22:00 to Monday 06:00 is 56 h; 56 h ÷ 24 h/day = 2.3 days, and 2.3 days < 4 days. Case B: 11 days > 4 days, so recovery fills only the latest 4 days; 11 − 4 = 7 days left unfilled.
Decision. Case A is inside the window: restart the connector and let recovery close it — no backfill project, no SQL. Case B is outside it: bring the 7 missing days across through the PI Interface for RDBMS in controlled date windows, or, if those tags are newly discovered and the connector runs 1.3.0.2 or later, set the history recovery start time to the start of the 11 days and let the connector pull them. The threshold is the whole decision: gaps within 96 h belong to connector recovery, and anything older belongs to SQL unless the new-tag setting covers it.
Questions asked
Will restarting the connector backfill a gap older than four days?
No. Before release 1.3.0.2 each restart re-evaluates the same per-tag recovery points under the same four-day cap, so a longer gap keeps its hole no matter how often you bounce the service. Closing more than four days takes the PI Interface for RDBMS, or the configurable start time from 1.3.0.2 onward when the tags are newly discovered.
Can the PI OPC HDA interface read Wonderware Historian instead?
No. Wonderware Historian presents no OPC HDA server to connect to, so the HDA interface is not a candidate for this source. The PI OPC DA Interface does connect to OPC-exposed sources, but DA exchanges current values only. It has no archive query, so it cannot backfill any gap at any window length.
Does the four-day recovery limit mean Wonderware Historian lost the older data?
No. The limit is on the connector's reach, not on the source. The historian holds whatever its own collection and retention allow, so query it directly for the interval before touching the transfer. If the source has the data, the RDBMS route can move it; if the source lacks it, no route will find it.
If we already log through the RDBMS interface, does adding the connector duplicate anything?
The two can coexist, but decide the split deliberately: let the connector own ongoing acquisition and short recovery, and keep the RDBMS interface for migration loads. Point both at the same PI points rather than building a parallel tag set, and compare timestamp and quality handling from each route on one tag before trusting the merged history.