?
Solved

SharePoint 2010 Alerts broken

Posted on 2014-07-28
6
Medium Priority
?
432 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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 2000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

770 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