Patrons,
A SQL Agent Job running on using with logic using Ola Hallengren for Update Statistics on a daily basis during after hours. But on EVERY SUNDAY the job is either Skipped or Not Run.
Could Anyone advise me to how to solve this problem
Did you confirm that the schedule(s) assigned to the job will run on Sunday? Is the job that runs Ola's stats procedure just a single step, or does it have multiple steps that could terminate early?
on Checking with Agent Log history -- > Unable to send job completion notification email to the operator 'UserDBA' for job 'update Statistics = USER DATABASES'
Prior to this couple of weeks ago it was running fine but on only SUNDAY the completion Notification is DENIED sending to Operator.
-->Should it be understood though the COMPLETION NOTIFICATION not sent but JOB DONE
Notification to the operator is needed (Including Sundays).
Couldn't find any more clue. How to get this done please.
If you're notifying by email, you'll need to speak to whoever administers your mail server. There may be a sending quota or operational hours that limits its use.
Assuming this doesn't happen any other day, can you set up a simple job that does nothing (maybe a PRINT statement) that notifies the same operator and then run it manually to see if it also fails.
Going back to your original post, "skipped or not run" doesn't mean "failed". Does it show in the job history that it failed? Or is there genuinely no history entry when there should be?
What time on Sundays does it run? If in the past it did run on Sundsys and emails were sent successfully, what changed recently? Was fhere any net new thing done in your network such as maintenance window on all servers such as reboots that overlap and collide with send email schedule. If there are no logs at least see if there was a reboot of that server that sends the email.
The fact that it only happens on Sundays smells like some sort of maintenance window you were not informed about or you dismissed and the notification is in some folder in Outlook
The Job Failed. The job was invoked by Schedule 10 (Daily). The Last step to run was Step 1 (UPdate Statistics - USER DATABASES). NOTE: Failed to notify 'UserDBA' via Email.
Can you please let me know what is to be probed further.
[440] SQLMail failure (reason)
[441] SQLiMail API send mail failure (reason: System.InvalidOperationException: The Mail Profile is not specified.
[298] SQL Server Error:14607, Profile name is not valid
[Log] Unable to send job completion notification email to operator 'UserDBA' for job 'UpdateStatistics - Databases'
Based on the above information (errors) perhaps there might be resolution Please.