Resolving WinCC Error 'No Connection to Data Server' - Alarm Logging Runtime and DCF File Cleanup
When WinCC AlarmControl in SIMATIC PCS 7 OS Runtime displays the persistent error message 'No connection to data server' ('Keine Verbindung zum Datenserver') and scripts or faceplates become unresponsive, the root cause is a communication breakdown between the graphic runtime and the internal WinCC Alarm Logging database engine (CCAlgRtServer.exe). To eliminate this error, execute three primary remediation actions: first, open WinCC Explorer -> Computer Properties -> Startup tab and ensure that 'Alarm Logging Runtime', 'Tag Logging Runtime', and 'Global Script Runtime' are checked; second, close WinCC, navigate to the OS project directory, and delete the temporary project cache file <ProjectName>.dcf (which WinCC regenerates automatically upon reopening); third, verify that the OS computer name matches the physical Windows computer name and that the Standard Server for Alarms and Split Screen Manager (SSM) is assigned.
Table of Contents
- Architectural Anatomy of the WinCC 'Data Server' in SIMATIC PCS 7
- Root Causes: Inactive Runtime Services, DCF File Locks, and Name Mismatches
- The Critical Role of the Project Configuration File (.dcf)
- Standard Server Assignments for Split Screen Manager (SSM) and Alarms
- Comparative Fault Diagnostic Matrix: 'No Connection to Data Server'
- Step-by-Step Procedure to Restore Data Server Communication and Purge Cache
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Architectural Anatomy of the WinCC 'Data Server' in SIMATIC PCS 7
In SIMATIC PCS 7 OS (WinCC Runtime), the graphical operator interface does not communicate directly with controller hardware; instead, it communicates through internal background subsystems called Data Servers:
-
Alarm Logging Data Server (
CCAlgRtServer.exe): Manages the message queue, incoming alarms, operator acknowledgments, and alarm archive storage in Microsoft SQL Server. -
Tag Logging Data Server (
CCTlgRtServer.exe): Manages real-time process value archiving and historical trend queries. -
Graphic Runtime (
PdlRuntime.exe/WinCCExplorer.exe): Hosts the WinCC AlarmControl embedded in@alarm.pdland process pictures.
When the operator opens an alarm screen and observes the banner 'No connection to data server' ('Keine Verbindung zum Datenserver'), the AlarmControl ActiveX/.NET control is signaling that inter-process communication (IPC) via DCOM or SQL Server sockets to CCAlgRtServer.exe has failed or timed out.
Root Causes: Inactive Runtime Services, DCF File Locks, and Name Mismatches
Field troubleshooting reveals five primary failure modes that trigger this error:
-
Unchecked Startup Applications: In WinCC Explorer Computer Properties, if the Alarm Logging Runtime checkbox was inadvertently deselected, WinCC activates Graphics Designer without starting the background alarm database engine.
-
Corrupted Project Cache (
<ProjectName>.dcf): The.dcffile caches local computer names, server package GUIDs, and network endpoints. Following an unclean shutdown, engineering station conversion (e.g., converting an ES to an ES/OS Single Station), or network card replacement, stale GUIDs in the.dcflock data server handshakes. -
Computer Name Mismatch: If the physical Windows computer name was changed or differs from the name defined under Computer in WinCC Explorer, runtime services fail to resolve the local server handle.
-
Corrupted Archive Segments: If SQL Server archive files (
*.mdf) became corrupted or locked during a power loss,CCAlgRtServerhangs during database attachment. -
Missing Standard Server Assignment on OS Clients: On distributed clients, if the client does not know which server handles alarms, the alarm banner remains disconnected.
The Critical Role of the Project Configuration File (.dcf)
The <ProjectName>.dcf file (located directly in the WinCC project root directory) is a temporary SQLite/relational cache file used by WinCC to track active station properties, communication channels, and redundancy states:
-
When WinCC crashes or is terminated via Windows Task Manager, the
.dcffile frequently retains stale process locks and orphaned station IDs. -
Safe Deletion Protocol: The
.dcffile contains no user programming, graphics, or archive data. When WinCC is closed, deleting<ProjectName>.dcfis completely safe. Upon reopening WinCC Explorer, the system automatically rebuilds a fresh, pristine.dcffile from the master project database (<ProjectName>.mdf), instantly clearing corrupt pointers.
Standard Server Assignments for Split Screen Manager (SSM) and Alarms
On OS Clients and Multi-Clients, alarms and Split Screen Manager (SSM) utility functions require an explicit server destination:
-
In WinCC Explorer, right-click Server Data -> select Standard Server...
-
Ensure that the component Alarms and component SSM (Split Screen Manager) are assigned to a valid, active OS Server package.
-
If these fields are set to 'No server', the client's alarm controls will display 'No connection to data server' because no routing target exists.
Comparative Fault Diagnostic Matrix: 'No Connection to Data Server'
The following table compares root causes, symptoms, and corrective actions for WinCC data server disconnects:
<ProjectName>.dcf file<ProjectName>.dcf; restart WinCCSystem vs WinCC ComputerCCArchiveManager.exe -reset all via Run prompt.pck files; re-import fresh packagesStep-by-Step Procedure to Restore Data Server Communication and Purge Cache
Follow this comprehensive procedure to resolve 'No connection to data server':
-
Deactivate Runtime and Close WinCC:
- Deactivate WinCC Runtime cleanly.
- Close WinCC Explorer and SIMATIC Manager. -
Purge Corrupted
<ProjectName>.dcfFile:
- Open Windows Explorer and navigate to your WinCC project directory (e.g.,D:\Projects\OS_PRJ\).
- Locate the file<ProjectName>.dcf(e.g.,OS_SRV.dcf).
- Delete this file (or rename it toOS_SRV.dcf.bak). -
Verify Computer Name in WinCC:
- Reopen the project in WinCC Explorer.
- Confirm that WinCC automatically rebuilds the.dcffile.
- In the project navigation tree, click Computer.
- Verify that the computer name listed on the right matches the physical Windows computer name exactly (case-sensitive). -
Verify Startup Applications:
- Right-click the computer name -> Properties -> Startup tab.
- Ensure the following checkboxes are enabled:Alarm Logging RuntimeTag Logging RuntimeGlobal Script Runtime- Click OK.
-
Reset Archives if Database Corruption Suspected:
- If the error persists, pressWin + R, type:CCArchiveManager.exe -reset all, and press Enter.
- This purges corrupted active archive buffers while preserving closed historical segments. -
Assign Standard Server (For OS Clients):
- On OS Clients, expand Server Data -> right-click Standard Server...
- Set Alarms and SSM to the primary OS Server package. -
Re-run OS Project Editor and Test Runtime:
- Run OS Project Editor to refresh system templates.
- Activate WinCC Runtime. Confirm that the AlarmControl initializes with full connection to the data server.
Verification
Verify data server restoration through these validation checks:
- Activate WinCC Runtime. Observe the startup progress dialog: confirm that 'Alarm Logging Runtime' and 'Global Script Runtime' initialize.
- Open the main alarm overview screen (
@alarm.pdl). - Confirm that the error banner 'No connection to data server' is completely gone.
- Trigger a process alarm or toggle a test digital input. Confirm that the alarm appears in the active incoming list within 1 second.
- Click an interactive block icon and verify that the technological faceplate opens immediately and responds to operator clicks.
Limitations and Operational Precautions
CCArchiveManager -reset allData Impact: RunningCCArchiveManager -reset allclears the active runtime database segment. It is an emergency diagnostic tool; always back upArchiveManagerfolders before executing an archive reset.- Never Delete
.mdfFiles Manually: Deleting<ProjectName>.dcfis completely safe, but never delete<ProjectName>.mdfor<ProjectName>_RT.mdf, as doing so permanently deletes the WinCC configuration and runtime databases. - Redundant Server Synchronization: If one server in a redundant pair displays this error, redundancy synchronization will pause. Resolve the data server failure immediately to prevent historical archive drift between partners.
Engineer FAQ
Is it safe to delete the <ProjectName>.dcf file?
Yes, 100% safe. The .dcf file is a temporary cache file that WinCC automatically regenerates from the master SQL database upon opening the project.
Why did faceplates stop responding when this error appeared?
Faceplate operations and script actions require Global Script Runtime and the Alarm Logging subsystem. When the data server connection breaks, WinCC pauses script execution to prevent inconsistent data writes.
Can network firewall rules cause 'No connection to data server'?
Yes. On OS Clients, if Windows Firewall blocks DCOM (TCP 135) or dynamic RPC ports, the client cannot communicate with the server's CCAlgRtServer.exe process.
What does CCArchiveManager.exe -reset all do?
CCArchiveManager.exe -reset all detaches and cleans corrupted active logging segments in Microsoft SQL Server, allowing the logging engines to start with fresh, healthy database segments.
Why did converting my ES to an ES/OS Single Station cause this error?
Converting an ES project to an ES/OS Single Station alters the project type from Multi-User to Single-User. The cached .dcf file still expected a remote server package. Deleting the .dcf file re-registers the project as a local Single Station.
Technical References
- WinCC V7.4 / V7.5 System Manual: Working with WinCC - Alarm Logging Configuration
- Siemens Industry Online Support (SIOS) Entry ID 41169 - Meldung Keine Verbindung zum Datenserver
- SIMATIC Process Control System PCS 7 OS Process Control (V8.2 / V9.0) Manual - Chapter 9: Alarm System Architecture
- Siemens Industry Online Support (SIOS) FAQ 22533824 - Dealing with WinCC DCF File Locks and Project Corruption
Related Articles
- Resolving Empty WinCC Event Lists and SQL Transaction Log Ballooning in SIMATIC PCS 7
- Activating WinCC OS on an Engineering Station Without Dedicated OS Servers
- Configuring and Synchronizing the Picture Tree on WinCC OS Clients in SIMATIC PCS 7
- Activating the Lock and Unlock Alarm Buttons in WinCC AlarmControl
Related Tags
- WinCC AlarmControl
- No Connection to Data Server
- DCF File
- Alarm Logging
- CCArchiveManager
- Project Cache
- PCS 7 OS