WinCC Runtime Activation Error: Initializing Archives Fix

David Krause10 min read
SiemensTroubleshootingWinCC
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Problem Description

When activating a SIMATIC WinCC Runtime project, the system halts during the Initializing Archives phase and the WinCC Explorer process terminates. The reported symptom is a runtime error dialog referencing a missing or failing .EXE component (commonly the archive manager subsystem). The runtime never reaches the Activated state, leaving the HMI/SCADA visualization inoperable.

Typical indications reported on the engineering station:

  • Windows Event Viewer entries tagged Application Error for CCArchiveManager.exe, CCAlg.exe, or WCCILdata.dll.
  • SIMATIC Runtime Manager displaying Partly Running with a yellow warning indicator next to one or more services.
  • Last log line in WinCC_Sys_.log: Initializing archives followed by a process abort.
  • SQL Server service starts but no CC__<nr>_R / _ALG databases materialize.
Critical: Do not delete the project folder or the SQL databases before capturing a full backup. Tag values and alarm logs required for compliance reporting may reside in the corrupted archive files.

Root Cause Analysis

WinCC Runtime initializes three archive subsystems in sequence: Tag Logging (process value archive), Alarm Logging (alarm/history archive), and User Archive (recipe/report). If any referenced component binary is missing on disk, fails signature verification, or its backing SQL database is corrupt, the archive manager raises a non-recoverable error and aborts the runtime start sequence.

The four most frequent root causes observed in field deployments:

  1. Missing or damaged executable: The archive subsystem binary is absent from %ProgramFiles%\Siemens\Automation\WinCC\bin or has been quarantined by antivirus software after an update.
  2. Misconfigured user archive selection: A user archive is enabled in the WinCC Explorer Computer Properties dialog but the underlying database is missing or detached.
  3. Corrupt SQL Server database files: The CC_*_R.mdf / .ldf files attached to the runtime instance are inconsistent (forced shutdown, full disk, write-cache disabled on controller).
  4. Incomplete installation or repair state: The WinCC installation was patched in place without re-running the Setup in repair mode, leaving component registration broken in the Windows registry.

Pre-Diagnostic Checklist

Before applying any corrective action, gather the following artifacts:

Item Location Purpose
WinCC project file <Project>\<Computer>.pck Source-of-truth configuration
Diagnostics file <Project>\<Computer>\<Project>.LOG Runtime startup trace
System log <Project>\<Computer>\WinCC_Sys_<Computer>.log Detailed component init
SQL data path C:\Program Files\Microsoft SQL Server\MSSQLxx.<instance>\MSSQL\DATA Archive database files
Installation log %TEMP%\Siemens\Setup\WinCCSetup.log Component install history
Windows event log eventvwr.msc → Windows Logs → Application Process crash signatures

Copy all of the above to a working directory and review the last 200 lines of the system log. The line preceding the abort typically contains the failing module name, for example:

ArchiveManager: LoadLibrary failed for C:\Program Files\Siemens\Automation\WinCC\bin\CCUserArchive.dll (126: The specified module could not be found.)

Solution 1: Verify the Failing Executable

The error dialog lists the exact executable that aborted. Confirm that the file is present, not zero-byte, and not blocked by the operating system.

  1. Open File Explorer and navigate to %ProgramFiles%\Siemens\Automation\WinCC\bin.
  2. Right-click the failing .EXE (commonly CCArchiveManager.exe) → Properties → General tab.
  3. Verify the Security field at the bottom of the dialog does not read This file came from another computer and might be blocked to help protect this computer. If present, check Unblock and click Apply.
  4. Check the digital signature tab. A missing or invalid signature indicates the file was overwritten by a third-party process (typical with aggressive antivirus quarantine).
  5. Open secpol.msc → Software Restriction Policies. If a deny rule references the WinCC binary path, remove it.

Re-attempt activation from the WinCC Explorer after each verification. If the runtime aborts on a different .EXE, repeat the procedure for each component.

Field note: On Windows Server 2019 and later, Windows Defender Controlled Folder Access silently blocks binaries copied from network shares. If the WinCC installation source was a UNC path, re-run Setup from a local drive.

Solution 2: Correct User Archive Configuration

An enabled user archive whose backing database has been detached or deleted is one of the most common triggers. The archive subsystem attempts to attach the database, fails, and aborts the entire runtime.

  1. Open WinCC Explorer and right-click the Computer node → Properties.
  2. Switch to the Archives tab.
  3. If User Archive is selected and the project does not actually use user archives, clear the check box.
  4. Click OK and confirm the prompt to save the project configuration.
  5. Rebuild the runtime with WinCC Explorer → Tools → Rebuild All before attempting activation.

If the project genuinely uses user archives, proceed to Solution 3 to repair the SQL database layer.

Solution 3: Repair or Reset the SQL Archive Database

WinCC Runtime stores tag, alarm, and user archives as SQL Server databases named CC_<Project>_<No>_R, _ALG, and _UA. A corrupt MDF/LDF pair is the second most common cause of the activation abort.

3.1 Stop the Runtime and SQL Services

  1. Open SIMATIC Runtime Manager and stop the affected runtime.
  2. Open services.msc and stop the service SQL Server (WINCC) (instance name varies by WinCC version).

3.2 Back Up the Existing Data

  1. Copy the entire folder C:\Program Files\Microsoft SQL Server\MSSQL<inst>\MSSQL\DATA to a backup location.
  2. Copy the WinCC project folder completely.

3.3 Attempt a SQL Repair

  1. Start SQL Server Management Studio and connect to \\.\pipe\MSSQL$WINCC\sql\query (named-pipe) or localhost\WINCC.
  2. Right-click each CC_ database → Tasks → Check Database Integrity. The DBCC CHECKDB result will report the corruption level.
  3. With the database still in single-user mode (set via Properties → Options → Restrict Access), execute:
ALTER DATABASE [CC_<Project>_<No>_R] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
DBCC CHECKDB ('CC_<Project>_<No>_R', REPAIR_ALLOW_DATA_LOSS) WITH NO_INFOMSGS;
ALTER DATABASE [CC_<Project>_<No>_R] SET MULTI_USER;

3.4 Reset Archives (Last Resort)

If the integrity check fails or the database is detached, the archive can be reset to its empty initial state. The procedure is irreversible and erases all logged data.

  1. Stop the runtime and the SQL service as described in step 3.1.
  2. Delete the affected CC_<Project>_<No>_*.mdf and *.ldf files from the SQL data directory.
  3. In WinCC Explorer, select Tools → Reset Archive Data (visible only when the runtime is stopped).
  4. Confirm the prompt. WinCC regenerates the archive skeletons on the next runtime start.
Warning: Reset Archive Data deletes all historical tag, alarm, and user-archive entries. Export the data to CSV via WinCC Trend & Alarm Controls before proceeding if compliance requires retention.

Solution 4: Repair the WinCC Installation

If the binary verification in Solution 1 reveals a genuine file loss, run the Setup in repair mode.

  1. Insert or mount the WinCC installation media matching the installed version (for example, WinCC V7.5 SP2 Update 7 or TIA Portal V20).
  2. Launch Setup.exe as Administrator.
  3. Select Repair Installation and accept the default component selection.
  4. Allow the installer to register all COM/DCOM components. A full repair typically takes 15–30 minutes.
  5. Reboot the engineering station and re-test runtime activation.

If repair mode reports the same fault, perform a full uninstall followed by a clean install:

  1. Use Control Panel → Programs and Features to uninstall all WinCC components in the order: SIMATIC WinCC → WinCC Options → SQL Server (WINCC instance).
  2. Manually remove residual folders: %ProgramFiles%\Siemens\Automation, %ProgramData%\Siemens\Automation, and the project folder.
  3. Reboot, then install WinCC from the local media copy.

SIMATIC Runtime Manager Diagnostics

When the runtime starts but one or more services fail, the SIMATIC Runtime Manager indicates the state. The yellow Partly Running indicator is documented in the Siemens support portal. Common component states and their meaning:

Indicator Component Typical Cause
Red WinCC Explorer / Core Project file not found or license missing
Red Archive Manager SQL corruption or missing DB file
Yellow Alarm Logging Subsystem started but DLL registration failed
Yellow User Archive Database detached or path invalid
Green Data Manager Nominal

Refer to the official Siemens article for the exact list of supported corrective actions and component identifiers: Fix "Partly Running" error message in the SIMATIC Runtime Manager.

RT Professional Error Codes

For TIA Portal V20 RT Professional deployments, the API returns structured error codes in the CMN_ERROR structure. The most common codes observed during archive initialization:

Code Constant Meaning
0x10000000 DM_E_SYS_ERROR Generic underlying system error; inspect log for root cause
0x10000001 DM_E_INVALID_PARAM Invalid parameter passed to data management function
0x10000002 DM_E_CONNECT_FAILED Connection to the archive back-end failed
0x10000003 DM_E_NO_MEMORY Memory allocation failure; check 32/64-bit consistency

The full list of API error codes is documented in the TIA Portal help portal: Error messages (RT Professional) - WinCC.

Verification Procedures

After applying any of the four solutions, validate that the runtime activates cleanly:

  1. Open WinCC Explorer and confirm the computer node is in the Activated state. The status bar reads Runtime: Activated.
  2. Open SIMATIC Runtime Manager and verify all components show a green check mark; no yellow Partly Running warning.
  3. Connect a WinCC Trend Control to a known process tag and confirm live values appear. This validates the Tag Logging archive path.
  4. Trigger a test alarm from the script engine and confirm it surfaces in WinCC Alarm Control; this validates the Alarm Logging archive.
  5. Inspect the last 50 lines of WinCC_Sys_<Computer>.log; no entries should contain ERROR or FATAL.
  6. Restart the engineering station and confirm the runtime auto-starts and reaches Activated without operator intervention.

Preventive Measures

  • Exclude the WinCC folder from antivirus real-time scanning. Add %ProgramFiles%\Siemens\Automation and the project folder to the exclusion list. The binary quarantine is the leading preventable cause of this fault.
  • Use a local installation source. Never install or repair WinCC from a UNC path; copy the media to C:\Siemens_Install first.
  • Schedule SQL maintenance. Configure a weekly DBCC CHECKDB job on the WINCC instance and a daily index rebuild on the archive databases.
  • Monitor disk space. The SQL transaction log can grow without bound if auto-growth is unrestricted. Cap it at a sane size and back up the log daily.
  • Document the archive configuration. Maintain a project README that lists which user archives are enabled and where the MDF files live, so future technicians know which databases belong to which project.

Troubleshooting Matrix

Symptom First Action Second Action Escalation
Runtime aborts, CCArchiveManager.exe missing Check the file in bin folder Run Setup repair Full reinstall
Runtime aborts at Initializing Archives, MDF missing Restore MDF from backup Run DBCC CHECKDB Reset archive data
User archive enabled but no UA database Disable user archive in Computer Properties Recreate the UA database Reset archives
Yellow Partly Running on multiple services Inspect Windows event log for service-start failures Re-register WinCC DCOM components Siemens support
Error code 0x10000000 in API log Review the system log for the underlying driver error Update the TIA Portal to current service pack Siemens support with TRACE
Safety note: Always perform archive repairs in a scheduled maintenance window. A running production line connected to the runtime must be transitioned to a manual control state before SQL operations on live archive databases.

What causes the "Initializing Archives" runtime error in WinCC?

The error is triggered when the archive manager cannot load a required component DLL or attach its backing SQL database. The most frequent causes are a missing .EXE in the WinCC bin directory, a detached or corrupt MDF/LDF file, or an enabled user archive whose database has been removed.

How do I reset a WinCC archive without losing the project?

Stop the runtime and the SQL Server (WINCC) service, then in WinCC Explorer select Tools → Reset Archive Data. The tool deletes the archive MDF/LDF files and recreates empty skeletons on the next runtime start. Project configuration is not affected; only logged data is lost.

Which WinCC service corresponds to the Tag Logging archive?

Tag Logging is handled by the CCArchiveManager.exe process and stores data in the CC_<Project>_<No>_R SQL database. Alarm Logging uses the same process with the _ALG database. Both are started by the WinCC data manager on runtime activation.

Can antivirus software cause this WinCC runtime error?

Yes. Aggressive real-time scanning or Controlled Folder Access on Windows Server 2019 and later can quarantine CCArchiveManager.exe or the supporting DLLs after a signature update. Add the WinCC binary path and the project folder to the antivirus exclusion list to prevent this.

What is the difference between "Partly Running" and "Not Running" in SIMATIC Runtime Manager?

"Not Running" indicates the WinCC core or a critical service has failed to start, preventing runtime activation. "Partly Running" (yellow) indicates that the core started but one or more optional components such as Alarm Logging, User Archive, or a connectivity channel failed. The runtime may continue, but features tied to the failed component are unavailable.

Back to blog