andrew.beals@nintex.com

Unable to publish forms - You can only publish, unpublish documents in a minor version enabled list.

Blog Post created by andrew.beals@nintex.com Support on May 23, 2016

Problem:

 

When publishing a form on any list in a site you find the following error:

The server encountered an error processing the request. The exception message is 'You can only publish, unpublish  documents in a minor version enabled list'

 

Relevant ULS trace log errors:

Failed to Save Nintex Form. Error: You can only publish, unpublish  documents in a minor version enabled list. Stack trace:  

at Microsoft.SharePoint.SPFile.PublishOrUnPublish(String comment, Boolean fPublish)   

at Nintex.Forms.SharePoint.NFDocumentLibrary.<>c__DisplayClass1b.<SaveForm>b__19()   

at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)   

at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)   

at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)   

at Nintex.Forms.SharePoint.NFDocumentLibrary.SaveForm(String contentTypeId, String listId, MemoryStream formStream, Boolean majorVersion)

Failed to Publish Nintex Form. Error: You can only publish, unpublish  documents in a minor version enabled list. Stack trace:  

at Microsoft.SharePoint.SPFile.PublishOrUnPublish(String comment, Boolean fPublish)   

at Nintex.Forms.SharePoint.NFDocumentLibrary.<>c__DisplayClass1b.<SaveForm>b__19()   

at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)   

at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)   

at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)   

at Nintex.Forms.SharePoint.NFDocumentLibrary.SaveForm(String contentTypeId, String listId, MemoryStream formStream, Boolean majorVersion)   

at Nintex.Forms.SharePoint.Services.NfWcfService.PublishForm(String contentTypeId, String listId, Form form)

Cause:

Your NintexForms library at the site level does not have versioning enabled.

 

Resolution:

To resolve this issue navigate to the hidden NintexForms library at the site level using the following URL: Http://yoursite/NintexForms/Forms

Then navigate to Library Settings > Versioning Settings > Ensure the following feature is enabled:

 

Outcomes