Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Error Form cannot be opened in a web browser after provisiong workflow


We have some c# code to provision nintex workflows including InfoPath forms on SharePoint lists and libraries. When we provision a first site collection in SharePoint 2013 the workflows works fine. When we provision a second site collection the workflow works also fine till it has to open an InfoPath form. When opening the InfoPath form we get error message "this form cannot be opened in a web browser. In order to open the form use microsoft InfoPath". After we manually publish the workflow the problem is fixed. As we have a lot of site collections with different workfows it is not an option to manually correct the problem. I also dit a second test. When I do an iisreset after provisioning the first site collection provisioning of the second site collection seems to be ok. In that case we don't have the problem with the InfoPath form. But it isn't also an option to do an issreset after each provisioning of a site collection. Please find the code we use to provision the worlfkow in the included file. Kind regards

Koen Vorsselmans

0 Kudos