PowerShell Script to Delete the Alert Plus Orphan Property

When Alert Plus is added to a site, that site’s Url is automatically saved as a property in the site collection property bag. If the site is deleted, that property becomes an orphan property and your Bamboo log will show errors similar to these:

“ERROR MasterTimerJobFeatureReceiver – Bamboo.Logging.BambooException: Error in site [http://myproductionsite.com/sites/IT} with error The Web application at “>http://mydevsite.com/sites/IT could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.”

Or

“ERROR Bamboo.AlertPlus.Timers.TimerMananger – Bamboo.Exceptions.LoggingException: Error in site [http://sharepoint/AlertPlus] with error Alert Plus Configuration List is not found on this site. Please check to see if Alert Plus is installed.”

CAUTION: If you have just migrated the site collection, or changed the hostname/Url, please refer to this Knowledge Base article to update the orphan property with the new Url.

If the above scenarios are not the case with you, but you still see these errors in Bamboo log, it could mean a site with the Alert Plus web part has been deleted, making the property for that site an orphan. I’ve written a PowerShell script to find and delete these orphan properties:

Download PowerShell script.

To run the script, put it on your SharePoint server > Open the SharePoint Management Shell > CD to where you put the script > Type .DeleteAlertPlusOrphanProperties.ps1 and press enter. It takes 2 parameters:

  • The output path to write the result of this script (Example: “C:ScriptOutputDeleteAlertPlusOrphanPropertiesOutput.txt”)
  • The Url of the web application which you want to check for orphan properties (Example: “http://sharepoint”).

The script will then prompt for 3 options:

  • List all orphan properties in this web application (default)
  • Prompt on each orphan property for delete options
  • Delete all orphan properties in this web application

Enter your choice and review the results from the output file afterwards.


All SharePoint Versions

The web parts are functional components that extend your SharePoint environment whether it’s hosted, on-premises, or part of Microsoft® Office 365.

SharePoint 2013, 2016, 2019, Online (Office 365)

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2013, 2016, 2019

SharePoint

Product Suites

Experience greater power and savings by bundling our SharePoint apps and web parts.


Essentials Suite


Essentials Plus Suite


Bamboo Premier Suite


Project Management Suite


Knowledge Management Suite


External User Manager


 

For more information on our product suites, contact us.

Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!