WinCC Activation Stuck at Alarm Logging 69%: Troubleshooting

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

On a single-station Siemens IPC with preinstalled PCS 7 V7.0, the WinCC V6.2 SP2 Runtime activation sequence halts at two specific milestones:

  • Alarm Logging progress bar stops at 69% and never advances.
  • If Alarm Logging is forced past, the activation halts at Initialize Archive Management (5%).

The WinCC Explorer process becomes unresponsive. Only terminating CCExplorer.exe through Windows Task Manager (End Process Tree) releases the workstation. Until the underlying issue is resolved, the only functional workaround is to uncheck Alarm Logging and Tag Logging in the WinCC Explorer Computer → Properties → Startup list. This disables long-term archiving and is unacceptable for production operation.

The same project copied to a second identical Siemens IPC single-station activates without incident, confirming the fault is local to the affected machine (database, file system, or component registration), not the project database itself.

Scope: This article addresses WinCC V6.2 SP2 in PCS 7 V7.0 deployments on Siemens IPC547C / IPC547D / IPC647C / IPC847C single-station configurations. The same root-cause family has been observed in WinCC V7.0, V7.0 SP1, V7.3, and V7.4 on similar IPC hardware where the underlying database engine (MSDE 2000 / SQL Server 2005 Express) is damaged.

Affected Versions and Components

Component Version Status
SIMATIC WinCC V6.2 SP2 Confirmed affected
SIMATIC WinCC V6.2 SP3 Reported affected
SIMATIC WinCC V7.0 / V7.0 SP1 Reported affected
SIMATIC WinCC V7.3 Reported affected
SIMATIC PCS 7 V7.0 Confirmed affected
SIMATIC PCS 7 V7.1 / V7.1 SP1 Reported affected
Underlying DB MSDE 2000 / SQL Server 2005 Express Root-cause target
Hardware Siemens IPC547C, IPC547D, IPC647C, IPC847C Most affected

Root Cause Analysis

WinCC Runtime stores alarm messages, tag logging archives, and user archives in a Microsoft SQL Server / MSDE database engine. When WinCC Explorer activates Runtime, it issues sequential startup commands to the following Windows services in this order:

  1. CCAlgLoggingServer.exe — Alarm Logging service
  2. CCArchiveServer.exe — Tag Logging / Archive service
  3. CCSysdiag.exe — System diagnostics
  4. CCMessageService.exe — Message service

If the underlying database engine cannot be initialized, the Alarm Logging service blocks on the database open call (this is what produces the 69% progress stall). When Alarm Logging is bypassed, the Archive service then stalls on its database open at the 5% mark — the same root cause exposed through a different component.

The five most common root causes for this fault, in order of frequency on field-deployed systems:

  1. Damaged SQL/MSDE master or tempdb database on the local IPC (typical after uncontrolled shutdown, power loss, or disk-full condition).
  2. WinCC V6.2 SP2 component corruption — missing or unregistered DLLs/OCXs used by Alarm Logging (notably CCAlgLoggingServer.dll, CmAlgDB.dll).
  3. Insufficient disk space on the drive hosting the WinCC project path (default C:\Program Files\Siemens\WinCC\WinCCProjects\<project>) and/or the archive partition.
  4. NTFS permissions or share conflicts on the project folder after a project copy or restore from image.
  5. Missing WinCC V6.2 Hotfix 5 / Patch 3 — a known Siemens-distributed fix for the 69% alarm-logging stall.
Reference: See the Siemens Runtime API error code reference for RT Professional at Error messages (RT Professional) - WinCC. The documented internal error class DM_E_SYS_ERROR 0x10000000 indicates a generic data-management system error returned from the underlying database layer and is consistent with the symptoms described above.

Pre-Diagnostic Checklist

Before applying the corrective procedures below, capture the following data points. They are required when escalating to Siemens Technical Support and shorten triage time significantly.

Check Command / Location Expected / Healthy
WinCC version & service pack WinCC Explorer → Help → About 6.2.2.0 or later with SP2
MSDE / SQL Express build Query Analyzer: SELECT @@VERSION 8.00.2039 (SP4) or higher
WinCC services running services.msc CCAgent, CCArchiveServer, CCAlgLoggingServer, CCMessageService — all Started, Automatic
SQL Server (WinCC) service services.msc SQL Server (WINCC) — Started, Manual (started by CCAgent)
Free disk on project drive dir C:\Projects / Explorer ≥ 2 GB free minimum, ≥ 10 GB recommended
Free disk on archive drive Project properties → Tag/Alarm Logging → Storage paths ≥ 20% headroom
Last successful shutdown Event Viewer → System Log → Event ID 1074 Clean shutdown
Pending restarts reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v RebootRequired None

Solution 1 — Verify and Repair the Underlying Database Engine

The Alarm Logging database CC_ALG_<ProjectName>_<Timestamp>.LDF/.MDF lives under <ProjectPath>\<ComputerName>\<ProjectName>\ALG. The Tag Logging archive database lives under <ProjectPath>\<ComputerName>\<ProjectName>\ArchiveManager\TagLogging.

  1. Stop all WinCC services:
    net stop "CCAlgLoggingServer"
    net stop "CCArchiveServer"
    net stop "CCAgent"
    net stop "CCMessageService"
    net stop "CCSysdiag"
    net stop "SQL Server (WINCC)"
  2. Open an elevated command prompt and run an MSDE / SQL Express integrity check on each WinCC database:
    osql -E -S \\<ComputerName>\WINCC
    1> EXEC sp_dboption 'CC_ALG_<ProjectName>', 'single user', true
    2> DBCC CHECKDB('CC_ALG_<ProjectName>', REPAIR_ALLOW_DATA_LOSS)
    3> EXEC sp_dboption 'CC_ALG_<ProjectName>', 'single user', false
    4> GO
  3. Repeat for CC_TL_<ProjectName> and CC_US_<ProjectName>.
  4. Restart the services in reverse order.

If DBCC CHECKDB reports allocation or consistency errors, the repair step usually clears the 69% stall. If REPAIR_ALLOW_DATA_LOSS reports unrepairable corruption, escalate to a clean database re-import (Solution 3).

Solution 2 — Apply WinCC V6.2 Hotfix 5 / Patch 3

Siemens released a targeted fix pack (sometimes referenced as “Patch 3 CD” or “WinCC V6.2 Hotfix 5”) that addresses the 69% alarm-logging stall on preinstalled Siemens IPC images. Confirm hotfix presence and install order:

  1. From Start → Settings → Control Panel → Add/Remove Programs, confirm SIMATIC WinCC V6.2 Hotfix 5 (or higher) is listed. If absent, source the installer from your local Siemens representative or the Siemens Support entry Entry ID: 21528075.
  2. Stop all WinCC services and close WinCC Explorer.
  3. Insert the Hotfix CD (or mount the ISO). The installer registers and replaces CCAlgLoggingServer.dll, CmAlgDB.dll, and related COM components.
  4. Run the installer with administrator credentials. A reboot is required at the end of installation.
  5. After reboot, open the project and verify Help → About now reports Hotfix 5 installed.

Test activation. If the 69% stall persists, the hotfix did not resolve the fault because a database corruption (Solution 1) or component conflict (Solution 4) is masking it.

Field note: Installing the hotfix on a damaged database will not repair the database — the sequence must always be: repair database first (Solution 1), then apply hotfix (Solution 2), then activate.

Solution 3 — Re-create the Project Using Project Duplicator

When the project was copied manually across IPCs and the secondary machine activates cleanly while the primary does not, the file system on the primary carries stale COM registrations, .dll locking, or ACL differences. The Siemens Project Duplicator rewrites the project path and re-registers COM components during the copy.

  1. On the healthy second IPC, close WinCC Explorer.
  2. Launch Start → All Programs → SIMATIC → WinCC → Tools → Project Duplicator.
  3. Click Open, browse to the source project .mcp, and click Open.
  4. Click Save As… and select a new project name and a fresh target path on the primary IPC's project drive.
  5. Confirm Copy with reorganization is checked. This forces WinCC to rebuild the internal project database, alarm logging database skeleton, and archive path mappings.
  6. On the primary IPC, transfer the duplicated project folder via the network share or external media. Do not restore from a Windows image ghost created before the hotfix install — the image will reintroduce the fault.
  7. Open the project on the primary IPC, confirm the computer name in WinCC Explorer → Computer matches the local hostname, and activate Runtime.

Solution 4 — Validate File System, Permissions, and COM Registration

  1. Open dcomcnfg → Component Services → Computers → My Computer → DCOM Config. Confirm CCAlgLoggingServer and CCArchiveServer are listed. If they are missing, re-register them:
    cd /d "C:\Program Files\Siemens\WinCC\bin"
    regsvr32 CCAlgLoggingServer.dll
    regsvr32 CCArchiveServer.dll
    regsvr32 CmAlgDB.dll
  2. Right-click the project folder → Properties → Security. The local SIMATIC HMI user group must have Modify rights; the SYSTEM account must have Full Control.
  3. Confirm the project drive is NTFS (not FAT32) and that folder compression is disabled on the project tree. NTFS compression on .MDF/.LDF files causes the database engine to deadlock.
  4. Open Computer Management → System Tools → Local Users and Groups → Groups. The SIMATIC HMI group must contain the user account under which WinCC services run (typically CCServiceUser or SYSTEM on a single-station).
  5. Clear any pre-existing WinCC process locks by running sc delete "CCAlgLoggingServer" — then restart the IPC and re-install Hotfix 5 (Solution 2) to recreate the service registration cleanly.

Solution 5 — Restore from a Known-Good Siemens IPC Image

If the IPC was delivered with a preinstalled Siemens WinCC image (common on IPC547C and IPC847C), restore the manufacturer image only after applying Hotfix 5 first on the restored image, then deploying the project with Project Duplicator. Restoring the bare image without re-applying Hotfix 5 reintroduces the 69% stall on activation.

  1. Boot from the Siemens Recovery USB / DVD delivered with the IPC.
  2. Restore the default C: partition image.
  3. On first boot, do not open WinCC. Install WinCC V6.2 Hotfix 5 first.
  4. Reboot, then deploy the project using Project Duplicator (Solution 3).
  5. Activate Runtime and verify alarm and tag logging come up cleanly.

Verification Procedure

  1. Open WinCC Explorer → Computer → Properties → Startup. Confirm both Alarm Logging and Tag Logging are checked.
  2. Right-click Computer → Activate.
  3. Watch the activation log: progress should pass 69% (Alarm Logging) and 5% (Archive Manager) within 30 seconds for projects under 100,000 configured tags.
  4. Open WinCC Alarm Control and trigger a test alarm. Confirm the alarm appears, is acknowledged, and clears correctly.
  5. Open Tag Logging Runtime and confirm the configured swap time fires (default 1 day). Check <Project>\ArchiveManager\TagLogging\<Tag>.dat for new files.
  6. Run DBCC CHECKDB on all three WinCC databases once more to confirm zero allocation errors.

Troubleshooting Matrix

Symptom Likely Cause First Action
Hangs at Alarm Logging 69% Damaged ALG MDF/LDF Solution 1 + Solution 2
Hangs at Archive Manager 5% Damaged Tag Logging MDF/LDF Solution 1
Hangs at 69%, then 5% Both DBs damaged + no hotfix Solution 1 → Solution 2 → Solution 3
Same project OK on second IPC Local DB or permissions Solution 1 + Solution 4
Re-occurs after image restore Image predates hotfix Solution 5
Activation fails after power loss MSDE tempdb corruption Solution 1 with tempdb rebuild
Event log shows MSSQLSERVER 9003 Database marked suspect EXEC sp_resetstatus then Solution 1

Preventive Measures

  • Schedule a weekly DBCC CHECKDB on all WinCC databases via SQL Server Agent or a scheduled osql script.
  • Configure UPS protection on every WinCC single-station IPC to prevent uncontrolled shutdowns.
  • Reserve a minimum 20% free-space margin on the project and archive drives; integrate a low-disk SNMP trap into WinCC.
  • Track hotfix installation in the station's WinCC Change Log and re-verify hotfix presence after every image restore.
  • Use the Siemens Project Duplicator for all project moves — never Windows file copy across IPCs.

FAQ

Why does WinCC V6.2 SP2 hang at exactly 69% on Alarm Logging activation?

The 69% mark corresponds to the Alarm Logging service issuing its open-database call to the local MSDE / SQL Server 2005 Express instance. When the CC_ALG_<Project>.MDF file is damaged, the database engine blocks the open call indefinitely. The WinCC Explorer timeout never fires, so the activation stall is permanent until the process is killed through Task Manager. Repair the database with DBCC CHECKDB and apply Hotfix 5.

Is the WinCC V6.2 Hotfix 5 still available for download?

Yes. Hotfix 5 is distributed by Siemens Technical Support and is referenced as Entry ID 21528075 in the Siemens Industry Online Support knowledge base. Contact your local Siemens representative with the IPC serial number and WinCC license key to obtain the patch media.

Can I bypass the Alarm Logging stall by simply unchecking Alarm Logging in the startup list?

Yes — the runtime will activate and the HMI graphics will display, but no alarms will be recorded, acknowledged, or archived. This is acceptable only as an emergency operational workaround while a maintenance window is scheduled for database repair or hotfix application. It is not a long-term solution.

Does this fault affect WinCC V7.3 and V7.4 on newer IPCs?

Yes. The fault has been reported on WinCC V7.0, V7.0 SP1, V7.3, and V7.4 when the underlying SQL Server 2008 R2 / 2012 database is damaged or when the WinCC installation was restored from an image taken before the corresponding service pack was applied. The same diagnostic and repair sequence applies, but use the service pack and hotfix specific to that WinCC version.

What is the difference between the Patch 3 CD and Hotfix 5 for WinCC V6.2?

Patch 3 (often delivered as a CD with the WinCC V6.2 SP2 media kit) bundles Hotfix 1 through Hotfix 4 plus registry updates. Hotfix 5 is a separate, later fix that specifically addresses the Alarm Logging 69% stall on Siemens IPC images. Installing only Patch 3 is therefore insufficient — Hotfix 5 must be applied on top to resolve this specific fault.

Back to blog