Troubleshooting
Why FactoryTalk View SE Alarm Setup Fails After an APA Restore
Short answer
Disable History on the Priorities and History tab of the restored AE_Server's properties and Alarm and Event Setup opens again: the restored server had History enabled with no database definition selected, which blocked the Tag Alarm and Event Server connection. Check that tab before rebuilding alarms or touching SQL.
On this page
- Why does Alarm and Event Setup fail right after an APA restore?
- How do I open the alarm editor without losing the existing alarms?
- Does disabling History delete or change the alarm configuration?
- What should I leave alone until the editor opens?
- What if the connection error survives History being disabled?
- How do I turn alarm history back on?
- How do I prove the alarms work before the station goes back online?
- What is the final call for each outcome?
- Questions asked
Open the properties of AE_Server in the restored application, go to the Priorities and History tab, disable History, and Alarm and Event Setup opens. On a FactoryTalk View SE 7.0 local station application restored from an APA, the error "Cannot connect to the Tag Alarm and Event Server. Unable to load alarm configurations." appears because the restored alarm server carried an enabled History function with no database definition selected. The alarms are still in the application; the editor simply cannot reach them through that incomplete server configuration. The sections below cover the fix, what to leave alone while applying it, and how to restore history recording before the station returns to service.
Why does Alarm and Event Setup fail right after an APA restore? #
The restored alarm server has History enabled with no database definition selected, and the editor fails while it tries to load configurations through that incomplete setting; the alarm definitions themselves survived the restore intact. The Tag Alarm and Event Server is the piece that hands Alarm and Event Setup its configuration. Alarm history is a separate function that writes events to a SQL database through the definition chosen for history. After this restore, History stood enabled next to an empty definition, and the connection attempt failed at that gap. A failing history database therefore says nothing about the alarm list: the definitions are not stored there, and the error is an access failure, not a report of lost data.
How do I open the alarm editor without losing the existing alarms? #
Disable History on the Priorities and History tab of the AE_Server properties, apply the change, and reopen Alarm and Event Setup; the editor then loads the existing configuration, and you can add alarms without touching the rest. The same workaround is documented in Rockwell Automation technote 68418. Work through it in this order:
- Restore into an isolated copy rather than onto the operating station, keep the original APA untouched, and take a separate working backup — then verify what the platform backup actually contains before you depend on it.
- In the application explorer, right-click AE_Server and open its properties.
- Open the Priorities and History tab and record two things: whether History is enabled, and which database definition is selected.
- Disable History and apply.
- Reopen Alarm and Event Setup and confirm the existing definitions load before you add anything.
- Add the new alarms using the naming, priority, and message conventions already in the list.
- Save, then create a new backup distinct from the original APA.
Does disabling History delete or change the alarm configuration? #
No — History is the recording function, not the storage of the alarm definitions, so disabling it changes what gets written to the database and leaves every configured alarm, priority, and message untouched. Nothing has to be re-created afterward. Treat the toggle as a workaround for editor access, not as a repair of the database connection, and plan two separate fixes: one that gets you into the configuration, and one that restores recording.
What should I leave alone until the editor opens? #
Leave the alarm list, the AE_Server object, the SQL installation, and the original APA alone until the editor opens, because each of those repairs treats an access problem as damaged data. Specifically:
- The alarm list. Rebuilding it discards configuration you cannot yet see, on the assumption that it is already gone. It is not gone.
- The AE_Server object. Deleting and recreating it throws away the settings and definitions you need for comparison.
- The SQL installation. A connection failure at the editor is not evidence that the database engine is broken; establish the history setting before touching the engine.
- The history destination. Do not point history at an arbitrary database to make the error disappear; opening the editor and preserving the intended destination are separate requirements.
- Repeated restores of the same APA. The backup carries the same incomplete history settings, so the failure returns unchanged; the dependency is what changes, not the backup.
What if the connection error survives History being disabled? #
If the error survives History being disabled, the fault sits in the alarm server or in the FactoryTalk services behind it, and the next move is diagnostics, not another restore. Stop toggling the setting and check, in this order:
- The application and the alarm server you actually opened; a wrong selection produces the same error text.
- The host configured for the alarm server and the state of the FactoryTalk services on that machine.
- The FactoryTalk Directory, if the application landed on a computer whose Directory differs from the one the original server references point to.
- Rights and permissions; the FactoryTalk troubleshooting documentation for the Tag Alarm and Event Server points at rights assignments under FactoryTalk Security and at network and device permissions, which a restore onto another computer can leave misaligned.
- Firewalls between the machine running the editor and the machine running the server.
- FactoryTalk diagnostics for the recorded failure, read before you change any credential or server name.
Keep the exact error text with its diagnostics. If the editor opens but comes up empty, stop before creating replacements and confirm the application and the alarm server you selected. And once the editor behaves, server status still reaches the clients: the pattern of View SE clients that wireframe while servers show active has its own checklist.
How do I turn alarm history back on? #
Select the intended database definition on the same Priorities and History tab, re-enable History, and trip one test alarm to confirm a record lands in that database before the station returns to service. The definition must name the database the operating application actually uses; read it from that application's configuration, not from a similar database name on the server. If a definition is already selected but recording still fails, the connection and the permissions on that database are the next checks, in that order. Leaving History disabled is acceptable on an isolated editing copy only; the operating station needs the definition selected and History re-enabled before it goes back to recording. Keep the database-definition change and the alarm-definition changes as separate entries in your change record so the two repairs stay auditable.
How do I prove the alarms work before the station goes back online? #
An open editor proves configuration access only, so trip one alarm from a test condition that commands no equipment and watch the runtime alarm display for the message and priority you configured. Then close the loop:
- Reopen the editor after saving and confirm that the existing and the newly added definitions are all still present.
- Force the test condition — never a command to real equipment — and verify that the alarm appears with the correct message and priority.
- Acknowledge the alarm and verify that the return-to-normal behavior matches the alarm's configuration.
- If an alarm shows bad quality, tag syntax is the usual suspect; re-browse the input tag and let the browse write the reference.
- With History re-enabled, confirm exactly one new record for the one test trip in the intended database, then reopen the editor once more to confirm that access survived the re-enable.
The count is the pass criterion: one forced trip produces one new record. Any other result points you at the history path, not at the alarm configuration.
What is the final call for each outcome? #
Disable History to get the editor open, keep the original APA untouched while you work, and restore the database definition before the station goes back to recording; everything else follows from which of those steps you are on. The decisions:
| Where you are | The call |
|---|---|
| Editor fails after an APA restore | Disable History on the Priorities and History tab of AE_Server, in an isolated copy, and reopen Alarm and Event Setup. |
| Editor opens | Add the alarms with the existing conventions, save, and take a new backup distinct from the original APA. |
| Error persists with History disabled | Stop toggling; check the server host, service states, Directory, security rights, and firewalls, and read the diagnostics before changing anything. |
| Editor opens but no definitions appear | Stop; confirm the application and the alarm server selection before creating any replacement. |
| Editor fine, no live alarm | Check the alarm definition, re-browse the tag, and check the runtime server state. |
| Live alarm fine, no history record | Go back to the database definition, its connection, and its permissions. |
Questions asked
Where is the alarm history database actually created?
Not inside FactoryTalk View Studio. The database for FactoryTalk Alarm and Events is configured with the dedicated FactoryTalk Alarm and Events database setup, and the Priorities and History tab then selects that existing database as its definition. Creating it from inside View Studio is a documented cause of this connection failure.
Do I need the SQL database running just to edit alarms?
No. With History disabled, Alarm and Event Setup loads the configuration through the Tag Alarm and Event Server without touching the history database. The database becomes a dependency again the moment you re-enable History, which is why the editor failure and the history failure are repaired separately.
What if AE_Server or Alarm and Event Setup is missing from the explorer?
Alarms and Events must be enabled for the application first. In a View SE project that is done in Communication Setup, where enabling FactoryTalk Alarms and Events makes the alarm setup items appear in the explorer. Enable it there before expecting an alarm server object to exist.
How long a recording gap does the workaround leave?
From the moment History is disabled until it is re-enabled with a valid database definition, no alarm or event records are written, and nothing is backfilled afterward. Record the disable and re-enable times in the change log so the gap can be accounted for when the records are audited.