Unhandled exceptions in extensions with "Finalize" event



I would like to report that exceptions that are thrown by an extension invoked with the Finalize event are unhandled and cause the script to hang, i.e. lock file is never removed.

In such case, the extensions are invoked within the finally block (through the FinishUp function) of the SPSD_Main.ps1 script causing exceptions not to be caught.

The workaround is simply to add an additional try { ... } catch { ... } block, either around or within the FinishUp function.

Hope it helps someone !



Rickenberg wrote Jun 10, 2015 at 6:45 PM

Thanks a million for pointing this out! I will add your suggested change to the next release. You are also always welcome to create a fork on the GitHub repository (https://github.com/rencoreab/SharePoint-Solution-Deployer), make your change and issue a pull request.

Thanks again and kr, Bernd.