Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Deleting orphaned workflow status columns

$
0
0

I have a SharePoint online list that has 8 orphaned workflow status columns, and this is preventing me from saving the list as a template. I believe I need to programmatically remove the orphaned columns, and need some advice on how to do that.

Some background:

The list was created from a template. The list uses a custom content type, and the content type has a workflow attached to it. I made various changes to the template by adding it as a list, making my changes, and then saving the updated list as a template with content. The list now has 8 workflow status columns. They are visible if you go to the list View settings. They are not shown on the list settings page where you can edit the other list columns. 

Current error received when trying to save the list as a template: 

Sorry, something went wrong. Read error on file "_catalogs/lt/Test1112.stp".



In SharePoint Designer, the columns appear when I go to the List, click on Edit list columns, and choose 'Show Read-Only'.

They cannot be deleted from the GUI or SharePoint Designer. I am a Farm Admin / Site Collection Admin and when I delete the columns in SPD it says 'Could not save the field changes to the server'. 

I've tried using the script in this post:

https://social.technet.microsoft.com/Forums/office/en-US/613a9a71-7a8e-4769-9fe6-cbb65ac06b4a/how-to-delete-orphaned-workflow-status-columns-from-sharepoint-list-views?forum=sharepointcustomizationprevious

however it isn't a valid script for SharePoint Online; it worked in the 2010 version of SharePoint online apparently but not the current version. 

How do I get rid of these orphaned workflow status columns??


Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>