Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SQL Server Error 1084: Invalid Event Type Fix

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

SQL Server error 1084, "is an invalid event type," is not a SQL Server engine error at all. It comes from SQL Server Agent when a job step or alert definition references an event type that the Agent does not recognize, most often after a script, job, or alert was created or edited incorrectly, or after a database was restored or upgraded from an older version. The fix is to correct or recreate the offending job step or alert so it uses a valid event type, then refresh the Agent. You do not need to reinstall SQL Server.

What You'll Need

  • An account with permission to view and edit SQL Server Agent jobs and alerts (sysadmin or a role with the SQLAgentOperatorRole or equivalent).
  • SQL Server Management Studio (SSMS) connected to the affected instance, or access to run T-SQL against msdb.
  • The text of the job step, alert, or script that was last changed before the error appeared, if you have it.
  • Permission to restart the SQL Server Agent service (local admin or service control rights).

Step-by-Step

  1. Confirm where the error appears. Open SQL Server Management Studio, connect to the instance, and expand SQL Server Agent. Check the Agent error log (right-click SQL Server Agent > View History, or open the Agent error log file) and the Windows Application event log. Note the job name, alert name, or step number mentioned next to error 1084. Labels in SSMS and the Agent history can differ slightly by version, so read the surrounding text rather than relying on one exact menu name.
  2. Identify the object that was changed. In Object Explorer, expand Jobs and Alerts. Sort by date modified if your version shows it, or open the jobs most recently edited. The error usually appears immediately after a job or alert is saved, so the newest change is the prime suspect.
  3. Open the suspect job step. Right-click the job and choose Properties, then select the Steps page. Open each step and look at the Type (for example T-SQL, operating system command, PowerShell, SSIS package) and the command text. An invalid event type typically means the step type or the event referenced inside the command does not match what the Agent expects.
  4. Correct the step. If the step type is wrong, change it to the correct type from the Type drop-down. If the command text contains an event name or event type that was hand-edited, restore the original valid value. If you are unsure what the original was, recreate the step from a known-good script rather than guessing.
  5. Check alerts the same way. Right-click the suspect alert and choose Properties. Review the database, error number, severity, and event settings. An alert built on an event type the Agent does not support will fail the same way. Recreate the alert using the built-in options rather than pasting in a modified definition.
  6. Save and test. Save the job or alert, then run the job manually (right-click the job > Start Job at Step) or trigger the alert condition in a test database. Watch the Agent history for a repeat of error 1084.
  7. Restart SQL Server Agent. If the error persists in the log after the object is corrected, restart the SQL Server Agent service from SQL Server Configuration Manager or the Windows Services console. This clears cached job and alert definitions. Restarting the Agent does not stop the database engine, but any jobs currently running under the Agent will be interrupted, so do it in a quiet window.
  8. Verify the fix. Reopen the Agent error log and confirm no new 1084 entries appear after the restart and after a test run. Then re-enable any jobs you disabled while troubleshooting.

Common Mistakes

  • Treating 1084 as a database corruption or engine error and running repair tools. It is an Agent-side definition problem, so DBCC checks and reinstalls waste time.
  • Editing the job step in a text editor and pasting it back with altered event names or quoting. Recreate the step in SSMS instead.
  • Fixing one job and assuming the error is gone while a second job or alert still holds the bad definition. Search all jobs and alerts modified around the same time.
  • Restarting the whole SQL Server service when only the Agent service needed a restart, which needlessly interrupts user connections.
  • Ignoring the Windows Application log, which often names the exact job or alert that failed.

Tips

  • Script out jobs and alerts (right-click > Script Job as > CREATE To) before editing, so you can compare the working version with the broken one.
  • Keep a known-good copy of any job definition you change, and note what you changed and when.
  • If the instance was recently restored or upgraded, check jobs that came from the old server first; event types and step types can differ between versions.
  • Use the Agent history filtering by date to narrow down which object changed just before the first 1084 entry.

Troubleshooting

If the error returns after you correct a job, open the Agent error log again and read the full line, not just the code. It usually names the object. If no job or alert looks wrong, script out all jobs to a folder and search the files for event-related keywords, then compare against a fresh job created in the same SSMS version. If the error appears only when a specific step runs, disable that step and run the rest of the job to confirm the step is the cause. If the Agent will not start at all after a change, restore the job or alert from your scripted backup, or delete the offending object and recreate it. As a last resort, and only after backing up msdb, you can drop and recreate the single broken job or alert; do not drop msdb itself. If the problem follows a restored database, check whether the jobs reference objects or event types that no longer exist in the restored copy.

Frequently Asked Questions

Is error 1084 caused by a corrupted database?

No. It is raised by SQL Server Agent when a job step or alert uses an event type the Agent does not recognize, so the fix is in the job or alert definition, not the database files.

Will restarting SQL Server Agent fix it?

Only if the bad definition was already corrected or removed. A restart clears cached definitions but does not repair an invalid job or alert on its own.

Can error 1084 stop other jobs from running?

It can prevent the affected job or alert from running and can clutter the Agent log, but unrelated jobs normally continue. Check the Agent history for each job if you suspect wider impact.

Does this error appear in older SQL Server versions too?

Agent errors of this kind are not tied to one version, and the exact wording and menu labels vary by version and edition. Use the Agent error log and the job or alert properties as your guide.

What if I cannot find the job or alert mentioned?

Search the Windows Application log and the Agent history by timestamp, and script out all jobs to compare. If the object was deleted, the error should stop after an Agent restart.

Do I need to reinstall SQL Server to clear it?

No. Correcting or recreating the offending job or alert and restarting the Agent is the standard fix; reinstalling is unnecessary and risks data loss if done carelessly.