We have a number of servers/instances running 2016. One of the instances has an issue with SQL Agent jobs, such that for every job history record, there is an error in the error log:
[298] SQLServer Error: 14624, At least one of the following parameters must be specified. "@body, @query, @file_attachments, @subject". [SQLSTATE 42000] (ConnExecuteCachableOp)
Tried:
- Removing all notifications from all jobs, even though they were all configured as failure responses
- Changing the "Include body..." selection
- Changing "Enable mail profile" selection
- Deleted and recreated mail account and mail profile
...however the issue persists.
Tried removing the mail configuration from SQL Server, but that just changes the error:
[298] SQLServer Error: 14636, No global profile is configured. Specify a profile name in the @profile_name parameter. [SQLSTATE 42000] (ConnExecuteCachableOp)
Any help would be appreciated.