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 ErrorforCCArchiveManager.exe,CCAlg.exe, orWCCILdata.dll. - SIMATIC Runtime Manager displaying
Partly Runningwith a yellow warning indicator next to one or more services. - Last log line in
WinCC_Sys_: Initializing archives followed by a process abort..log - SQL Server service starts but no
CC_/_<nr>_R _ALGdatabases materialize.
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:
-
Missing or damaged executable: The archive subsystem binary is absent from
%ProgramFiles%\Siemens\Automation\WinCC\binor has been quarantined by antivirus software after an update. - Misconfigured user archive selection: A user archive is enabled in the WinCC Explorer Computer Properties dialog but the underlying database is missing or detached.
-
Corrupt SQL Server database files: The
CC_*_R.mdf/.ldffiles attached to the runtime instance are inconsistent (forced shutdown, full disk, write-cache disabled on controller). - 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.
- Open File Explorer and navigate to
%ProgramFiles%\Siemens\Automation\WinCC\bin. - Right-click the failing
.EXE(commonlyCCArchiveManager.exe) → Properties → General tab. - 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.
- 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).
- 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.
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.
- Open WinCC Explorer and right-click the Computer node → Properties.
- Switch to the Archives tab.
- If User Archive is selected and the project does not actually use user archives, clear the check box.
- Click OK and confirm the prompt to save the project configuration.
- 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
- Open SIMATIC Runtime Manager and stop the affected runtime.
- Open
services.mscand stop the serviceSQL Server (WINCC)(instance name varies by WinCC version).
3.2 Back Up the Existing Data
- Copy the entire folder
C:\Program Files\Microsoft SQL Server\MSSQL<inst>\MSSQL\DATAto a backup location. - Copy the WinCC project folder completely.
3.3 Attempt a SQL Repair
- Start
SQL Server Management Studioand connect to\\.\pipe\MSSQL$WINCC\sql\query(named-pipe) orlocalhost\WINCC. - Right-click each
CC_database → Tasks → Check Database Integrity. The DBCC CHECKDB result will report the corruption level. - 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.
- Stop the runtime and the SQL service as described in step 3.1.
- Delete the affected
CC_<Project>_<No>_*.mdfand*.ldffiles from the SQL data directory. - In WinCC Explorer, select Tools → Reset Archive Data (visible only when the runtime is stopped).
- Confirm the prompt. WinCC regenerates the archive skeletons on the next runtime start.
Solution 4: Repair the WinCC Installation
If the binary verification in Solution 1 reveals a genuine file loss, run the Setup in repair mode.
- Insert or mount the WinCC installation media matching the installed version (for example, WinCC V7.5 SP2 Update 7 or TIA Portal V20).
- Launch
Setup.exeas Administrator. - Select Repair Installation and accept the default component selection.
- Allow the installer to register all COM/DCOM components. A full repair typically takes 15–30 minutes.
- 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:
- Use Control Panel → Programs and Features to uninstall all WinCC components in the order: SIMATIC WinCC → WinCC Options → SQL Server (WINCC instance).
- Manually remove residual folders:
%ProgramFiles%\Siemens\Automation,%ProgramData%\Siemens\Automation, and the project folder. - 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:
- Open WinCC Explorer and confirm the computer node is in the Activated state. The status bar reads Runtime: Activated.
- Open SIMATIC Runtime Manager and verify all components show a green check mark; no yellow Partly Running warning.
- Connect a WinCC Trend Control to a known process tag and confirm live values appear. This validates the Tag Logging archive path.
- Trigger a test alarm from the script engine and confirm it surfaces in WinCC Alarm Control; this validates the Alarm Logging archive.
- Inspect the last 50 lines of
WinCC_Sys_<Computer>.log; no entries should contain ERROR or FATAL. - 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\Automationand 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_Installfirst. -
Schedule SQL maintenance. Configure a weekly
DBCC CHECKDBjob on theWINCCinstance 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 |
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.