Troubleshooting
Why Citect OPC DA fails in Runtime Manager service mode
Short answer
Run the Runtime Manager service and the Schneider Electric SCADA OPC DA Server DCOM identity under one specific Windows account. CO_E_SERVER_EXEC_FAILURE for SchneiderElectric.SCADA.OpcDaServer.1 is a COM activation failure caused by the SYSTEM-versus-interactive identity mismatch, not a tag or DCOM-permissions problem, and adding SYSTEM to DCOM security does not fix it.
On this page
- What does CO_E_SERVER_EXEC_FAILURE tell you about the OPC DA connection?
- Why does the same Citect server work interactively and fail as a service?
- Is the DCOM security setup wrong when SYSTEM is already listed?
- How do you put the service and the OPC server on one account?
- Should you change the AutoStartByClient parameter?
- How do you prove the fix on redundant Citect servers?
- Which configuration do you run in production?
- Questions asked
Put the Runtime Manager service and the OPC server on one Windows account. The CO_E_SERVER_EXEC_FAILURE your client returns for SchneiderElectric.SCADA.OpcDaServer.1 is a COM activation failure: in service mode the Citect processes run as SYSTEM, the OPC server — a separate COM process that must attach to that runtime — comes up under a different identity, and it dies before it serves a single item. DCOM permissions are not the fault; your installation already lists SYSTEM there and still fails. What follows decodes the error, explains why interactive mode works, and gives the identity change that fixes Citect 2018 redundant servers, plus the proof to collect afterwards.
What does CO_E_SERVER_EXEC_FAILURE tell you about the OPC DA connection? #
It tells you the failure happens before any OPC traffic: the client asked Windows to start the OPC server through COM activation, Windows could not execute it, and the call returned CO_E_SERVER_EXEC_FAILURE, so no tag, browse or read has run yet. The OPC Data Access specification defines the server as a COM component. Your client resolves the ProgID SchneiderElectric.SCADA.OpcDaServer.1, activates that class, and only afterwards negotiates the DA interface, adds items and reads values; the message text, server execution failed, means step one broke, so tag names and item bindings are not in play.
Take the number apart once, because clients print it three ways: the symbol, the hex 0x80080005, or the decimal 2,148,007,941. The decimal falls straight out of the hex: 2^31 + 8 × 65,536 + 5 = 2,147,483,648 + 524,288 + 5 = 2,148,007,941. Bit 31 is set — the value exceeds 2^31 — so the result is a failure, not a warning; the low 16 bits hold the code, 5, and bits 16 to 26 hold the reporting group, 8. A client that prints signed 32-bit values shows 2,148,007,941 − 4,294,967,296 = −2,146,959,355: same failure, different dress.
Compare the code a DCOM permission fault returns: access denied reads 0x80070005, decimal 2,147,942,405 — same trailing 5, but reporting group 7, the Win32 group, usually with a DCOM 10016 event in the System log. Same last digit, different cause: that code sends you to the permission lists, this one sends you to identities.
Why does the same Citect server work interactively and fail as a service? #
Because the execution identity changes: with Runtime Manager interactive, every Citect process runs as the logged-on administrator and the OPC server inherits that working context, while in service mode the runtime runs as SYSTEM and a client-triggered OPC server starts under a different account. The OPC DA server is its own COM server process that attaches to the Citect runtime to fetch the values it serves, and two identities have to agree for that attachment: the account the runtime processes run under, and the account the OPC server executes under. Interactively both are your administrator, which is why local and remote clients read data. Under the service they split, the attachment fails, and Windows reports it as server execution failed.
Local System is not a weak account — it holds broad local rights — but it lives in session 0 with its own profile, and on the network it presents the computer's machine account instead of a user. Those differences stay hidden while everything runs in your desktop session and surface the moment Runtime Manager becomes a service. The giveaway is scope: a client on the server itself fails exactly like the remote DCS, so the cause sits in the server's activation path, not in the network.
Is the DCOM security setup wrong when SYSTEM is already listed? #
No: the permission lists and the identity setting answer different questions — launch, activation and access permissions decide who may start and call the server, while the identity setting decides which account executes it — and your lists already passed their test. This installation configured DCOM as the Citect online manual describes, added SYSTEM to the DCOM security setup, and activation still fails. Granting SYSTEM permission cannot make a SYSTEM runtime agree with an OPC server executing as someone else; the settings never meet. A genuine permission rejection shows up as access denied with a 10016 event, as decoded above, and that is not what the client reports.
Keep the permission lists at the manual's minimum — the vendor's own DCOM guidance manages client access through a Windows user group with matching settings — and change the identity instead.
How do you put the service and the OPC server on one account? #
Change two logon settings and nothing else: set the Runtime Manager service to log on as one dedicated Windows account, set the DCOM identity of the Schneider Electric SCADA OPC DA Server to that same account, restart, and verify both process owners before any client test. Setting the identity explicitly also makes the result independent of which account the activating client — a local test client, the DCS driver, a script — happens to run as. Take the node out of service in an agreed window first: the DCS reads live plant data through this server.
- Create or pick one dedicated account, for example a domain service account in the plant's runtime group. Not Local System, and not the administrator for production.
- Grant it the Log on as a service right and the file access the runtime needs on the Citect program, configuration and log folders.
- In the Services console, open the Runtime Manager service properties and set the logon to this account, with the password stored.
- In Component Services, open the DCOM application Schneider Electric SCADA OPC DA Server and set its identity — the account that executes the server — to the same account.
- Leave launch, activation and access permissions as the manual's procedure set them; add the new account where that procedure expects the runtime account or its group.
- Close every test client, restart the service, and check in Task Manager that the runtime processes now show the new account as owner — a process left over from before the change hides the effect of the new setting.
- Connect a local OPC DA client first, for example Ignition set up as in reading Citect SCADA 2018 R2 tags from Ignition via OPC DA, then point the DCS at the node.
If you have never moved a runtime service off Local System, the same Windows task for another SCADA's autostart service is shown end to end in configuring an autostart service for a specific Windows user account.
Should you change the AutoStartByClient parameter? #
Not in the first test: keep [OpcDaServer]AutoStartByClient where it is while you align the identities, because the parameter only decides whether a client connection brings the OPC server up, and no verified result ties it to this failure. The parameter lives in the OpcDaServer section of the Citect configuration; with the value 1, a client's connection starts the OPC server on demand rather than the runtime bringing it up itself. Speculation about a regression in that path exists, but nothing confirmed, and the parameter changes who triggers the start, not which account the processes run under.
So the order is fixed: identities first, this parameter second, never both at once. If activation still fails with both process owners verified equal, make it the next single change — set it so the runtime brings the server up itself — restart and retest with the same client. Its documented location and allowed values are in the installed Citect help; read them there.
How do you prove the fix on redundant Citect servers? #
Prove it by ownership and a fresh activation: after the restart the runtime processes and the OPC server process must show the same account in Task Manager, a local client must connect without the error, and only then do you point the DCS at the node. Change one node while the partner keeps serving, and verify each node on its own; a standby that cannot activate takes the data path down at the next switchover. Correlate the Windows System and Application logs with the minute of each test: a server process that starts and immediately exits points at the account's file access or the stored service password, while no process at all points back at activation.
If the local client now reads data but the remote DCS still fails, and the complaint changed to an RPC or security-package error, one more cause exists on patched systems: a 2021 Windows DCOM server security change refuses legacy RPC calls that authenticate below packet privacy on Windows 10 and Windows Embedded 8.1, and the documented answers are to update the calling application so it requests that level through RpcBindingSetAuthInfo(), or to run it on an OS without the change. That fault is remote-only and never blocks the local activation you just fixed.
Which configuration do you run in production? #
Run production on the aligned dedicated account: service-mode Runtime Manager and the OPC server identity on one non-administrator account with its log-on right and the manual's DCOM permissions, which survives reboots and logoffs and serves local and remote clients. The decision per arrangement:
- Interactive Runtime Manager: data flows today, but the runtime dies at logoff and after a reboot nobody is logged on — a working baseline, never production.
- Service on the Local System account: reproduces CO_E_SERVER_EXEC_FAILURE on this installation — rejected.
- Service and DCOM identity both on the administrator account: acceptable for one diagnostic run to isolate a permissions difference; as production it hands administrator rights to everything the runtime does.
- Service and DCOM identity both on one dedicated account: the configuration to deploy — unattended through reboots, least rights, and verifiable in a minute by comparing process owners.
That is the whole fix: one account, two settings, proven by ownership, with the DCOM permission lists left at the manual's minimum.
Questions asked
What rights does the dedicated account need?
Log on as a service, read access to the Citect program and configuration folders, write access where the runtime puts its logs and trend files, and membership in the Windows group the DCOM procedure names for launch and access. Add nothing else up front; grant more only when an event-log entry names a specific denial, and record each addition with the node's configuration.
Does the aligned configuration survive a reboot with nobody logged on?
Yes. Windows starts the Runtime Manager service before any logon, the OPC server inherits the configured identity, and local and remote clients can activate. Give the account a password that does not expire, or a managed rotation that also updates the credentials stored on the service, because an expired password stops the service at the next boot and the DCS loses its data path.
What should you record before calling the SCADA vendor's support line?
Five items: the client's exact error text with the hexadecimal code, the owner shown in Task Manager for each Citect runtime and OPC process, the Runtime Manager service logon account, the DCOM identity of the OPC server application, and the System and Application events from the minute of the failed attempt. That set demonstrates an identity mismatch directly and usually shortens the call to one change.
Can you keep the runtime as Local System and only change the OPC server?
That leaves the mismatch in place: the failure follows the split identities, and no verified result supports any Local System variant of this arrangement. The reported installation already had SYSTEM in its DCOM security setup and activation still failed. Deploy the one dedicated account on both sides instead; verifying it takes a minute in Task Manager.
Does this failure happen with other OPC DA servers or only with Citect?
The mechanism is generic, because every OPC DA server is a COM server: wherever the runtime and the OPC server execute under different Windows accounts, activation can fail the same way. The service names, the DCOM application entry and the configuration parameters differ per product, so read those from that product's documentation; the one-account rule and the ownership check carry over unchanged.