Solved

SharePoint 2010 Alerts broken

Posted on 2014-07-28
6
403 Views
Last Modified: 2014-08-17
SharePoint 2010 Install with the following symptoms:

1.  full admin rights: I create an alert on a list.
2. I receive an email correctly stating the "FROM" (it matches the outgoing info on server). The email states that I have created an alert on the aforementioned list.
3. I never get an alert.
4. On some lists, I get an alert. Same site collection, different lists. Some lists never give an alert at all.

Any suggestions?

(Server farm with 2 WFE, 1 app server and a SQL server)
0
Comment
Question by:Iammontoya
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:Jayaraja Jayaraman
Comment Utility
0
 
LVL 19

Author Comment

by:Iammontoya
Comment Utility
i've had that link open a few days already, Jayaraja.. thanks though
0
 
LVL 8

Expert Comment

by:Jayaraja Jayaraman
Comment Utility
if this still dosent help ? let me know , i can post you sme powershell scripts to fix the alerting issues when you restore the site collection backup from different environemnt or restored.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 19

Author Comment

by:Iammontoya
Comment Utility
still not working. Your help would be greatly appreciated
0
 
LVL 19

Author Comment

by:Iammontoya
Comment Utility
layaraja, you were going to post some powershell scripts for this? I would really appreciate that. Thanks you!
0
 
LVL 8

Accepted Solution

by:
Jayaraja Jayaraman earned 500 total points
Comment Utility
$SPSiteURL = "http://NewSharePoint.com/sites/alerts" #Site Collection Url
$oldrooturl = "https://OldSharePoint.crescent.com" # Old URL of the webapplication
$rooturl = "http://NewSharePoint.com" # New URl for the new webapplication
 
$SPsite = Get-SPSite -Identity $SPSiteURL
$SPwebs = $SPsite.AllWebs
 
$updated = 0
 
foreach ($web in $SPwebs) #Get All the sub sites
{
  $alerts = $web.alerts  # Get All Alerts
 
  if ($alerts.count -ne 0)
   {    
   Write-Host -foregroundcolor green "Number of Alerts in: "$web.url ":" $alerts.count
   
    foreach ($alert in $alerts)
    {
  #preserve & Change the the Alert frequency, so that the so the datarow inside is touched by SharePoint API.
  $Status = $alert.Status
                $Frequency = $alert.AlertFrequency
                    if($Frequency -eq [Microsoft.SharePoint.SPAlertFrequency]::Immediate)
                     {
                         $alert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::Weekly
                     }
                    else
                      {
                         $alert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::Immediate
                      }
   
   $title = $alert.title
          $alert.title = "UPDATED" + $title
          $alert.Status = [Microsoft.SharePoint.SPAlertStatus]::Off
 
             $alert.Update()  #Update the modified values
             
       if ($alert.Properties -ne $null)
        {
          if ($alert.Properties["siteurl"] -ne $null -and $alert.Properties["siteurl"].Contains($oldrooturl))
           {
             $alert.Properties["siteurl"] = $alert.Properties["siteurl"].Replace($oldrooturl, $rooturl)
           }
           if ($alert.Properties["mobileurl"] -ne $null -and $alert.Properties["mobileurl"].Contains($oldrooturl))
           {
             $alert.Properties["mobileurl"] = $alert.Properties["mobileurl"].Replace($oldrooturl, $rooturl)
           }
 
          $updated++
 
         }
 
 
 #Reset the Values of alert, back to their original
      $alert.title = $title
             $alert.AlertFrequency = $Frequency
      $alert.Status = $Status
             $alert.Update()    
 
  write-host "Alert updated: " $title
        #$alert.Properties
 
    }
    Write-Host "Number of alerts updated: " $updated
  }
}
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now