Wednesday, November 30, 2011

SP2010 Alert Nightmares

Scenario: Existing alerts on SP2007 sites upgraded to SP2010 after changing web application host name stop working.

Solution: This post from Shane is the solution,
http://msmvps.com/blogs/shane/archive/2011/08/22/after-sharepoint-2010-database-attach-upgrade-alerts-have-the-wrong-urls.aspx

Remeber to first run the powershell script from technet,
http://technet.microsoft.com/en-us/library/cc508847.aspx 
and then use the script provided above by Shane to fix the issues from MS script.

After running the script from technet check the [SiteUrl] column in the [ImmedSubscriptions] table in the content database where your site collection resides to make sure it points to the right host web application host name. If it does not then the alerts are simply not triggered. Also make sure the Outgoing email settings are enabled.

Even after configuring all the above sometimes alert emails are not sent for new and SP2007 migrated alerts. Here are some more steps to troubleshoot.
1. Find the database which stores the site collection data.
2. Run "select * from timerlock" against that database
3. Get the GUID of the Server (LockedBy column) who is supposed to execute all timer job activities for this site collection.
4. To map the GUID to user friendly server name run the following powershell,
Get-SPServer | Foreach-Object { Write-Host $_.id $_.Name}
5. Make sure this server is allowed to relay emails in your network.


Some of the points to check if alerts are working on some site collections but not on others,
 - Outgoing email settings on web application
 - Allow smtp relay from all servers(where SPTimerv4 is Started) in your farm.


Other references:
http://blogs.msdn.com/b/skelley/archive/2007/06/18/alerts.aspx
http://support.microsoft.com/kb/936759

http://www.rightpoint.com/community/blogs/viewpoint/archive/2010/08/26/the-truth-about-how-daily-sharepoint-alerts-actually-work.aspx

http://www.moss2007.be/blogs/vandest/archive/2007/12/27/sharepoint-immediate-alert-notifications-stopped-working.aspx

http://sharepointalert.info/2009/11/troubleshooting-sharepoint-alerts-timer-jobs/

http://blogs.technet.com/b/harikumh/archive/2008/05/25/troubleshooting-alerts.aspx

http://blogs.technet.com/b/steve_chen/archive/2009/11/20/alerts-in-sharepoint-troubleshooting-moss-wss.aspx

http://sharepointalert.info/

http://sunilrepale.wordpress.com/

No comments:

Post a Comment