After uninstalling Nintex Workflow, SharePoint shows errors for list template '5001'

  • 26 March 2021
  • 0 replies
  • 175 views

Userlevel 3
Badge +8

Issue

After uninstalling Nintex Workflow, certain operations in SharePoint may present the following error in the ULS logs.

"Feature '0561d315-d5db-4736-929e-26da142812c5' for list template '5001' is not installed in this farm. The operation could not be completed."


 

 

Resolution

Note: The following script was provided by Microsoft and should be used with caution as it will delete the following Nintex libraries across the entire Web Application.

/NintexWorkflows
/NintexSnippets
/NintexTemplates

You will lose any published Nintex Workflows, Workflow Templates, and Workflow Snippets. Only use this script on a Web Application if Nintex Workflow is uninstalled and there is no concern with this data loss.



$webapp = Get-SPWebapplication "WebAppURL" 
$sites = $webapp.sites 
foreach ($site in $sites) 

$webs = $site.Allwebs 

foreach($web in $webs) 

#$web.Lists | ? {$_.BaseTemplate -eq "5001"} | select title, rootfolder 
$ls = $web.Lists | ? {$_.BaseTemplate -eq "5001"} 
foreach($l in $ls) 

write-host "$($l.title) | $($web.url)" 
$l.delete() 


 

Error Code

Exception in GetFeatureRootAndListSchemaPaths: System.ArgumentException: Feature '0561d315-d5db-4736-929e-26da142812c5' for list template '5001' is not installed in this farm. The operation could not be completed. at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass19.b__18()

 


0 replies

Be the first to reply!

Reply