Troubleshooting
Fix Historian timeout error 1460 after a 23.1 upgrade
Short answer
Error 1460 after a 17.2 to 23.1 Historian upgrade is a server-side timeout: packet processing, tag retrieval and the INSQL linked-server route all miss their deadlines, so the server and every client lose tags together. Prove it by retrieving SysTimeMin on the server itself, then fix the branch that failed - services, storage, provider or upgrade components - and leave display bindings alone.
On this page
- What the three log lines establish
- Timing the failed SysTimeMin retrieval over the logged windows
- Prove it locally before touching display bindings
- Check services and storage together
- Check the INSQL route the detector query uses
- Close out the upgrade path
- Repair from the failed check, not from the code
- Questions asked
Error 1460 after a Wonderware Historian upgrade from 17.2 to 23.1 is a server-side timeout, not a display fault. Three paths fail together on the server - incoming packet processing, history retrieval, and the SQL route through the INSQL linked server - which is why the server and every client lose their tags at once. The log text behind the code is the whole story it tells: "This operation returned because the timeout period expired." Prove where it stalls by retrieving SysTimeMin on the server itself before touching any display binding, then fix the branch that actually failed: a service that will not stay up, a storage fault, a broken provider route, or an upgrade that did not finish.
What the three log lines establish #
| Log line | What it establishes | Where to look next |
|---|---|---|
Data packet was rejected and backed up ... last error = 1460 ... tagkey = 0, component = CSR, driver Myservername_sysdrv [pipeserver.cpp; 809] |
An incoming packet missed its processing deadline and was retained as F:\Historian\Data\Support\bPacket_134057515983643633.bin, rejected before storage |
Ingestion: packet handling on the server |
StartDataRetrievalQuery failed ... SysTimeMin ... last error = 1460 [o_node.cpp; 391] |
Retrieval of a server system tag timed out with no client screen in the path | The retrieval engine on the server |
ExecuteDetectorSQL: Cannot execute the query "SELECT Tbl1001.DateTime ... FROM Runtime.dbo.History ..." against OLE DB provider "INSQL" for linked server "INSQL" [EventDatabase.cpp; 256] |
The SQL-to-History route through the linked server fails too | Provider, linked server, service account |
Code 1460 is the operating system's timeout code, and the parenthetical text is all it diagnoses: an operation missed its deadline. It does not name the resource that stalled - the checks below do. tagkey = 0 does not single out one bad user tag. And leave the support folder alone: the rejected packets under F:\Historian\Data\Support are both the evidence of the ingestion fault and the only copy of the data they carried.
Timing the failed SysTimeMin retrieval over the logged windows #
Inputs.
- Detector query bounds, from the
ExecuteDetectorSQLstatement in the Main EventService log:DateTime > '2025-10-24 13:21:05.1010000'andDateTime <= '2025-10-24 13:26:05.2680000'. - Retrieval failure span, from the
StartDataRetrievalQuery failedentry in the server log: 2025/10/24 17:46:41.012 to 2025/10/24 17:52:11.038, marked "occurred 3 times". - The tag both name: SysTimeMin, a server system tag that exists regardless of any machine's process-tag configuration.
Rule. The span a bounded retrieval covers is its end timestamp minus its start timestamp. One tag over that span is the most work the request can represent, so a request this small that cannot finish tells you the path is stalled, not that the request is oversized.
Arithmetic.
- Detector window: 13:26:05.268 - 13:21:05.101 = 5 min 0.167 s = 300.167 s.
- Retrieval failure span: 17:52:11.038 - 17:46:41.012 = 5 min 30.026 s = 330.026 s.
- Gap between the two entries: 17:46:41.012 - 13:26:05.268 = 4 h 20 min 35.7 s.
Result. Both failing requests are one system tag over about five minutes, and the retrieval failure repeated three times inside its span.
Decision. A single-tag read over a 300 s window that returns 1460 on the server itself is a stalled retrieval path: work the services, storage, provider and upgrade checks below, and stop tuning client timeouts or query sizes. The 4 h 20 min gap between the two log entries also means they do not share a time-zone convention - confirm it before reading them as one simultaneous event.
Prove it locally before touching display bindings #
- On the Historian server, with a supported retrieval tool, request SysTimeMin over a short window that should contain data.
- Repeat the request for one known process tag over the same window.
- Read the branch:
- Both requests return 1460: a server-side fault. Continue with services, storage, the INSQL route and the upgrade checks; no binding change repairs a shared failure.
- Local retrieval succeeds but clients fail: from the affected client, test the same tag and window, then compare server name, connection credentials, client component versions and network reachability.
- SysTimeMin reads but one process tag fails: that tag's configuration and acquisition path - incoming value, timestamp and quality.
- The request completes with no rows: widen to a period known to hold data and check time-zone handling. An empty result is not a 1460 timeout.
A tag fault follows the tag across every working display and client; a binding fault follows one display while the tag still reads elsewhere. SysTimeMin gives you that distinction without depending on any machine's process tags.
Check services and storage together #
- Service state: the Historian services must be running, not restart-looping. Resolve the startup or dependency error named in the application event log before retesting retrieval.
- Storage: free space and write access on the data volumes, including the support path the rejected packet named, plus disk errors in the Windows system log.
- Resource saturation: measure CPU, memory and disk latency while a request fails. Saturation is the condition to fix, not a timeout to extend.
- SQL health: blocking, connection failures and database errors separate a SQL execution fault from a retrieval fault downstream of it.
Correlate the first failed retrieval with these readings by timestamp, and confirm each log's time-zone convention before calling the packet timeout, the retrieval timeout and the detector failure one event.
Check the INSQL route the detector query uses #
The detector statement reads Runtime.dbo.History through OLE DB provider "INSQL" for linked server "INSQL". Its filters - Value = (0.0000000000000000e+000), Value IS NOT NULL, Quality <> 1, wwEdgeDetection = N'Leading', wwRetrievalMode = N'Delta' - choose which rows come back and can legitimately return none; none of them can push a five-minute, single-tag query past its deadline.
- Run a plain bounded read of SysTimeMin through the same SQL access route, without the detector's edge and value filters, and capture the complete SQL and provider errors.
- If the plain read fails, check linked-server connectivity, the provider installation, service dependencies, and the account the failing operation runs under.
- If the plain read works, rerun the detector statement with its original filters and bounds - once interactively, once under the EventService account. If only the service execution fails, fix that account's permissions and execution context before touching detector logic.
If the plain read fails with a database error rather than a timeout, the fault sits on the SQL side of the migration: trace a SQL log error after a historian migration before returning to the Historian path. Then compare the installed provider and client components against the versions the vendor documents for the 23.1 release, and use the documented repair or reinstall procedure if the upgrade left them inconsistent.
Close out the upgrade path #
- The installer log for 23.1: every step completed, with no deferred actions or rollback entries.
- An inventory of installed provider and client components, checked against the versions the target release documents.
- The vendor's upgrade documentation for the supported path from 17.2, including its prerequisites and any intermediate releases that path requires.
Repair from the failed check, not from the code #
Neither a larger query timeout nor an undirected service restart establishes why retrieval stopped after this upgrade. Save the server logs, the installer log, the component inventory and the rejected packet files first, and record service-account details without collecting passwords. Then correct the one condition the checks named - a failed dependency, a provider installation to repair, access rights, storage, or measured resource contention - through the vendor's documented procedure, and retest the local SysTimeMin read before returning clients to service.
Questions asked
Is error 1460 a Historian fault code?
No. 1460 is the Windows timeout code, and the log prints its full text: this operation returned because the timeout period expired. The Historian process is reporting that an operation - packet handling, a retrieval, a detector query - did not finish inside its deadline. The code tells you something stalled, not what; the service, storage and provider checks identify the stalled part.
What should I do with the backed-up packet files?
Leave them in place. The message means a packet was rejected and written to a backup file under F:\Historian\Data\Support, not that it reached the history archive. Those files are the evidence of the ingestion fault and the only copy of the data the rejected packets carried, so preserve them until the timeout is fixed and then follow the vendor's documented handling for rejected packets.
Can the detector query's filters cause the timeout?
No. The filters - a value equal to zero, non-null values, quality not equal to 1, leading edge detection and delta retrieval mode - control which rows return and can legitimately return none. A filter that narrows a result set cannot make a 300-second, single-tag query exceed its deadline; that points to a stalled retrieval path.
Should I raise the query timeout or restart services to clear it?
Neither. A single system tag over a five-minute window timing out three times is not a timeout-setting problem, and an undirected restart destroys the evidence of why retrieval stopped after the upgrade. Find the failed branch - service, storage, INSQL provider or upgrade component - correct it, then retest the local SysTimeMin read before returning clients.
How do I check whether the 17.2 to 23.1 upgrade itself is the cause?
Read the installer log for the 23.1 upgrade and confirm every step completed, then inventory the installed provider and client components against the versions the vendor documents for that release. The vendor's upgrade documentation states the supported source versions, prerequisites and any intermediate releases the path from 17.2 requires.