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 the 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 afterward.


SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

SharePoint

Top SharePoint Online Products

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


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

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 – Classic Pages Only

SharePoint

Top On-Premises Only Products

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


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 experts help you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Streamline Your Department

We Have What You Need

Bamboo Solutions

Tools


Resources


Bamboo Installer