When you attempt to delete a site column that is still included in a site content type (but you didn't know that ahead of time) you get an ugly unhandled exception dialog with two choices:
* Continue
* Quit
It is not clear if it is safe to Continue.
Wouldn't it be preferred to catch the exception and display a friendly dialog along the lines of:
* SharePoint Manager was unable to delete this site column. The following error was returned:
* Site columns which are included in content types or on lists cannot be deleted. Please remove all instances of this site column prior to deleting it.
Then I would have some confidence that it is safe to continue and proceed to remove the site column from any content types or lists before re-attempting to delete it.
Version:
* SharePoint Manager 2013
* Ver: 1.0.12.1106
Comments: ** Comment from web user: Jish **
* Continue
* Quit
It is not clear if it is safe to Continue.
Wouldn't it be preferred to catch the exception and display a friendly dialog along the lines of:
* SharePoint Manager was unable to delete this site column. The following error was returned:
* Site columns which are included in content types or on lists cannot be deleted. Please remove all instances of this site column prior to deleting it.
Then I would have some confidence that it is safe to continue and proceed to remove the site column from any content types or lists before re-attempting to delete it.
Version:
* SharePoint Manager 2013
* Ver: 1.0.12.1106
Comments: ** Comment from web user: Jish **
this is not just for site columns but also for custom content types. same behavior, in terms of unhandled exception