Solved

SharePoint 2010 Alerts broken

Posted on 2014-07-28
6
417 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:Montoya
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:Jayaraja Jayaraman
ID: 40227303
0
 
LVL 19

Author Comment

by:Montoya
ID: 40227335
i've had that link open a few days already, Jayaraja.. thanks though
0
 
LVL 8

Expert Comment

by:Jayaraja Jayaraman
ID: 40227337
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Author Comment

by:Montoya
ID: 40238987
still not working. Your help would be greatly appreciated
0
 
LVL 19

Author Comment

by:Montoya
ID: 40252928
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
ID: 40253050
$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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sharrepoint 2010 DB size 2 52
Office 365 OneNote, Groups, Sharepoint, and OneDrive 3 71
JSOM: The collection has not been initialized. 5 132
Working with SharePoint Data 8 70
Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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