Problem Overview
After migrating a SIMATIC WinCC V5.0 SP2 runtime project from a legacy PC670 station on Windows NT to a newer PC on Windows 2000 (W2K), the project loads, the PLC connection establishes, and the process screens render correctly, but the User Archive runtime view does not display any records. The Import/Export menu commands are greyed out, the archive control reports "No connection", and restoring the original project folder on the original PC670 immediately restores full archive visibility. The runtime is licensed, the FM357-2 extension package is installed, and the new PC has a clean WinCC install with the same project folder copied in place.
This is a classic WinCC V5.x operating-system compatibility failure that does not surface during configuration, project copy, or PLC connection, because the offending code path only executes when the User Archive database engine attempts to bind to its backing store. The same symptoms are reported by field engineers who copy WinCC V5.0 SP2 projects between Windows 2000, Windows XP, and embedded PC stations without verifying the service pack and hotfix matrix.
Affected Configurations
| Component | Value Reported in the Field |
|---|---|
| Source PC | Siemens PC670 industrial workstation |
| Source OS | Windows NT 4.0 (legacy project runtime) |
| Target PC | Generic industrial PC |
| Target OS | Windows 2000 (W2K) with Service Pack 2 |
| HMI Software | SIMATIC WinCC V5.0 + Service Pack 2 |
| Extension Package | FM357-2 channel/option package |
| Archive | User Archive (Sybase-based) attached to the project database |
| Licensing | WinCC RT and User Archive RT licenses present on the target PC |
Root Cause Analysis
The User Archive runtime in WinCC V5.0 SP2 relies on a Sybase SQL Anywhere engine that is tightly coupled to the underlying Windows kernel components and the MDAC/ODBC layer shipped with the host operating system. Windows 2000 SP2 ships an updated MDAC stack and a different Sybase Anywhere run-time shim than Windows NT 4.0, and WinCC V5.0 SP2 was not validated against this combination in its original release.
The documented compatibility position from the official WinCC V5.0 Service Pack 2 release notes (Siemens Support entry 6883784) states that beginning with WinCC V5.0 Service Pack 2 the Sybase database was upgraded to Version 7, increasing the quantity schedules for archiving. That Sybase 7 runtime requires specific Windows 2000 SP2 system libraries that were not present in the original WinCC V5.0 SP2 install media and must be patched in via a hotfix.
The exact patch level required to bring WinCC V5.0 SP2 into a stable state on Windows 2000 SP2 is Hotfix 7 (HF7). Without HF7, the User Archive service starts, the control appears in the picture, but the underlying database handle never returns rows, and the Import/Export toolbar buttons remain disabled because the control never receives a valid archive handle.
Windows 2000 SP2 + WinCC V5.0 SP2 Compatibility Matrix
| Host OS | WinCC Build | Required Patch | User Archive Status |
|---|---|---|---|
| Windows NT 4.0 | WinCC V5.0 SP2 (RT) | None | Working |
| Windows 2000 (no SP) | WinCC V5.0 SP2 (RT) | None | Working |
| Windows 2000 SP2 | WinCC V5.0 SP2 (RT, original media) | HF7 required | Fault: no connection |
| Windows 2000 SP2 | WinCC V5.0 SP2 (RT, HF7 applied) | HF7 | Working |
| Windows 2000 SP4 | WinCC V5.0 SP2 (RT) | HF7 minimum, verify with Siemens Hotline | Verify |
| Windows XP SP1/SP2 | WinCC V5.0 SP2 (RT) | Not supported; upgrade to V5.1 SP2 or V6.x | Not supported |
Resolution Path A - Apply WinCC V5.0 SP2 Hotfix 7 (HF7)
The first resolution preserves the existing project version. Apply the Siemens-issued HF7 for WinCC V5.0 SP2 on top of the current installation on the Windows 2000 SP2 machine.
- Stop the WinCC runtime and close the WinCC Explorer on the target PC.
- Stop the WinCC services:
WinCC_RT_<projectname>and theSybase Anywhere - WinCCengine fromservices.msc. - Insert the Siemens-issued WinCC V5.0 SP2 HF7 package (typically delivered as a self-extracting archive or via the Siemens Automation License Manager / customer support portal). Verify the file size and SHA against the Siemens download record.
- Run the hotfix installer with administrator rights. The installer will update the Sybase Anywhere run-time shim, the ODBC bridge used by the User Archive control, and a number of internal DLLs in
%ProgramFiles%\Siemens\WinCC\bin. - Reboot the PC. Windows 2000 caches ODBC driver lists; a reboot is required to pick up the new DSN definitions used by the User Archive.
- Re-start the WinCC runtime and verify the archive control binds. Import/Export menu items should now be enabled.
HKLM\SOFTWARE\Siemens\Automation\WinCC\CurrentVersion\Hotfixes
Look for an entry named
SP2_HF7 with a date stamp matching the patch release.
Resolution Path B - Upgrade the Project to WinCC V5.1 SP2
When HF7 is not available (for example, the original media is not on site, the support contract has expired, or the customer wants a forward-compatible runtime), the proven field fix is to upgrade the runtime to WinCC V5.1 SP2 on the same Windows 2000 SP2 machine. This is the path confirmed working in the original incident.
- Back up the existing project folder completely (copy
<project>\<computername>\<projectname>.mcpand the project database sub-folders). - Export the User Archive definition to a CSV using the Export command from the archive control on the legacy NT machine before decommissioning it. This is your migration safety net.
- Capture the licensing state. Open the Automation License Manager on the NT machine and record each license (WinCC RT, User Archive RT, FM357-2 option, alarm logging RT, tag logging RT).
- On the new PC, uninstall the WinCC V5.0 SP2 runtime cleanly. Remove the license keys via the License Manager only after the uninstall completes; do not reformat without removing the licenses first.
- Install WinCC V5.1 SP2 from the Siemens media. Apply the V5.1 SP2 hotfix chain as advised by the Siemens product hotline for Windows 2000 SP2.
- Re-install the option packages: FM357-2 extension, connectivity pack, and any redundant/standby options. Confirm the option DLLs register under
HKLM\SOFTWARE\Siemens\Automation\WinCC\Options. - Re-activate the licenses using the original License Key Disk or License Key USB. The License Manager will reassign the slots to the new PC's hard-lock or soft-container.
- Copy the original project folder into the WinCC V5.1 SP2 project directory. WinCC V5.1 SP2 will offer an automatic project conversion the first time the project is opened. Accept the conversion and review the conversion log for warnings about the User Archive schema, tag logging segments, and alarm logging structure.
- Open the User Archive control in Graphics Designer and verify that the archive fields, column widths, and access permissions were carried over. If the conversion log reports schema changes, re-import the CSV exported in step 2.
- Re-compile the OS project, start runtime, and confirm the archive control binds, Import/Export is enabled, and a sample write/read round-trip completes.
Sybase Database Considerations in WinCC V5.0 SP2
The User Archive is backed by an embedded Sybase SQL Anywhere database. The introduction of Sybase 7 with WinCC V5.0 SP2 (see the Siemens Support entry 6883784 release notes) was the first WinCC V5.x build to increase the quantity framework for archives. The engine is started by a per-project Windows service; the DSN is created automatically by the WinCC project installer and points at the project-specific *.db file under <project>\<computername>\<projectname>\ArchiveManager\UserArchive\.
Common Sybase-related fault indicators and their meaning:
| Indicator | Location | Likely Meaning |
|---|---|---|
| Sybase service stops immediately on WinCC start | Event Viewer / Sybase log | DSN mismatch, missing ODBC driver, OS patch missing (HF7 on W2K SP2) |
| Archive control shows "No connection" | Runtime graphics | Sybase engine never started, or failed authentication on the DSN |
| Import/Export greyed out | Archive control toolbar | Control has no valid archive handle; resolve engine first |
| Archive opens, rows blank | Runtime graphics | Schema migration missing; import original CSV |
| ODBC error -1814 / -832 | Sybase console log | Transaction log corruption; restore from backup |
Diagnostic Procedure When the User Archive Does Not Bind
- Open
services.mscand confirm the Sybase engine for the project is in theRunningstate. If it is not, attempt a manual start and read the error description. - Open the ODBC Data Source Administrator (32-bit) from the Control Panel → Administrative Tools. Verify the WinCC project DSNs are present and that the Sybase driver version matches the installed WinCC build.
- Open the Sybase Anywhere console log, typically located under
<project>\<computername>\<projectname>\ArchiveManager\. Look for engine bind errors on TCP port 2638 (default Sybase Anywhere port). - From a command prompt, run
netstat -an | findstr 2638to confirm the Sybase engine is listening. If the port is not bound, the engine has not started. - From a command prompt, run
telnet 127.0.0.1 2638(if the telnet client is installed) to verify the loopback connection; this isolates ODBC client vs. engine server faults. - Open WinCC Explorer → Tools → User Archive Editor and confirm the archive fields are visible there. If the editor can read but runtime cannot, the fault is in the runtime view binding, not the database.
- Cross-check the OS patch level. On Windows 2000, run
winverorreg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CSDVersionand confirm the Service Pack level. Then cross-reference with the WinCC V5.x compatibility matrix. - If the host is Windows 2000 SP2 and the WinCC build is V5.0 SP2 without HF7, apply HF7 (Path A) or upgrade to V5.1 SP2 (Path B).
Migration Checklist for WinCC V5.x Projects
Use this checklist whenever a WinCC V5.0 / V5.1 project is moved to a new PC, regardless of whether the OS is changing.
- Verify the destination OS is on the official WinCC V5.x compatibility list for the exact build you are running (V5.0, V5.0 SP1, V5.0 SP2, V5.1, V5.1 SP1, V5.1 SP2). Service Pack and Hotfix levels on the OS must match the matrix entry.
- Apply the latest available Hotfix for the WinCC build, even if the OS appears to be supported without it. WinCC V5.x hotfixes are cumulative within a service pack.
- Capture the project on the source PC before decommission: export the User Archive to CSV, capture the License Manager report, archive the WinCC project to a self-restoring
.ardfile using WinCC Explorer's Archive/Restore. - On the new PC, install WinCC before copying the project folder so the installer creates the correct directory structure, ODBC DSNs, and services.
- Install every option/extension package used by the source project (FM357-2 in the reference case). Open the option pack installer, not just copy DLLs.
- Re-install the licenses via the License Manager. Do not assume that license keys are transportable across machines without re-activation.
- Copy the project folder in, open it once with WinCC Explorer, and accept any automatic conversion. Review the conversion log for archive schema and segment changes.
- Verify runtime behavior end-to-end: process screens, alarm logging, tag logging, user archive read/write, Import/Export, scripting actions, and the FM357-2 channel handshake.
Verification Steps After the Fix
- Start WinCC runtime. Confirm the User Archive control populates with rows and that the toolbar shows Import/Export enabled.
- Execute an Export to CSV from the runtime control. Verify the CSV opens in Excel with all expected columns and values.
- Modify a field, commit, and execute Import. Confirm the value round-trips and is reflected in the database.
- Stop and restart the runtime. Confirm the archive is persisted and re-bound cleanly.
- Reboot the PC. Confirm the Sybase engine auto-starts with the WinCC service and the archive binds without manual intervention.
- Trigger a PLC-driven archive write via the FM357-2 channel. Confirm the record is appended and visible in the control.
Troubleshooting Matrix
| Symptom | First Check | Second Check | Resolution |
|---|---|---|---|
| Archive control shows "No connection" | Sybase service state in services.msc
|
Port 2638 listening via netstat
|
Start service, then re-verify; if it crashes, re-apply HF7 or upgrade |
| Import/Export greyed out | Control handle state in the debugger or via the Archive Editor | Whether the Sybase engine is running | Resolve engine issue; menu items follow handle state |
| Archive opens, rows blank | Schema in Archive Editor vs. project | CSV export from source machine | Re-import CSV or recreate schema fields |
| Engine starts then stops | Sybase console log | ODBC DSN configuration | Recreate DSN, re-apply HF7 |
| WinCC start logs Sybase DLL load failure | WinCC bin directory contents vs. install manifest |
OS service pack level | Re-install hotfix or WinCC runtime |
| FM357-2 channel OK, archive fails | Confirm the fault is in the archive subsystem only | Re-verify OS patch level | Apply HF7 or upgrade WinCC build |
| Project copied, license present, but archive not bound | License Manager: User Archive RT slot | WinCC version + OS patch | Re-activate license, then re-test |
Safety and Operational Notes
- Never re-format or re-image the source PC until the User Archive has been exported to CSV and the WinCC project has been archived to a self-restoring file. The User Archive is the only place the recipe/batch data lives; a missing CSV means data loss.
- Do not run two copies of a WinCC V5.0 SP2 project that share a license against the same Sybase database. The Sybase engine uses file locks; concurrent access will corrupt the transaction log.
- When applying HF7 on a running production machine, schedule a maintenance window. The Sybase engine is restarted by the hotfix and any in-flight archive writes will be rolled back.
- On Windows 2000, disable the Windows Indexing Service on the project directory. The Indexing Service can lock archive
.dbfiles and prevent the Sybase engine from starting.
Field-Proven Outcome
The reference incident was closed by upgrading the runtime from WinCC V5.0 SP2 to WinCC V5.1 SP2 on the same Windows 2000 SP2 PC, after confirming that the V5.0 SP2 + HF7 path required the original hotfix media to be retrieved from Siemens support. The User Archive, Import/Export, and the FM357-2 channel all returned to normal operation with no further manual intervention. The project was then placed back in service, and the original PC670 was retired. This confirms that the root cause was strictly the WinCC V5.0 SP2 + Windows 2000 SP2 patch-level mismatch described in the official WinCC V5.x compatibility documentation, not a project corruption, license issue, or PLC connection fault.
Why does my WinCC V5.0 SP2 user archive show "No connection" after moving the project to a Windows 2000 PC?
WinCC V5.0 SP2 uses the Sybase SQL Anywhere Version 7 engine introduced with that service pack (see Siemens Support entry 6883784). Windows 2000 SP2 ships an MDAC/ODBC layer that the original WinCC V5.0 SP2 media was not tested against. The Sybase engine fails to bind, the archive control never receives a valid handle, and Import/Export is disabled. Apply WinCC V5.0 SP2 Hotfix 7 (HF7) or upgrade to WinCC V5.1 SP2.
Which hotfix is required for WinCC V5.0 SP2 on Windows 2000 SP2?
Hotfix 7 (HF7) for WinCC V5.0 SP2. Without HF7 the User Archive engine does not start, the archive control reports "No connection", and Import/Export remains greyed out even when the runtime, the project, and the licenses are otherwise correct.
Do I have to upgrade to WinCC V5.1 SP2, or can I keep V5.0 SP2?
Both are valid. Path A is to keep V5.0 SP2 and apply HF7 if you have the patch media. Path B is to upgrade to WinCC V5.1 SP2 on the same Windows 2000 SP2 machine, which is the path confirmed in the field incident. Path B is preferred when the HF7 media is not on site, when the support contract cannot retrieve it, or when the customer wants a more recent runtime baseline.
Why does the PLC connection still work when the user archive fails?
The S7 / MPI / TCP channel drivers in WinCC V5.0 SP2 were tested against the Windows 2000 SP2 network stack and do not depend on the Sybase 7 components. The fault is isolated to the archiving subsystem, which is why screens, tags, and alarms continue to operate normally while the archive control is empty.
What should I back up before decommissioning the old WinCC runtime PC?
Export the User Archive to CSV from the archive control, capture a full License Manager report of every installed license (WinCC RT, User Archive RT, FM357-2 option, alarm logging, tag logging), and create a self-restoring WinCC project archive (.ard) from WinCC Explorer. These three artifacts are the minimum required to rebuild the runtime on a new PC without data loss.