cancel
Showing results for 
Search instead for 
Did you mean: 

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

Not applicable
1 2 2,594

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:

2 Comments
Not applicable

I had the similar issue even versioning is enable on the site but still gets the same issue. Can someone advise?

Not applicable

Kamran,

I'd recommend you create a new question and reference this blog in your question.

Cheers,

Andrew Beals