I am trying to publish a workflow to a list, using Nintex actions. These sites describe how to do it:
Publish a Nintex Workflow dynamically using Nintex workflow actionsManvir's SharePoint Blog
Nintex Workflow and Site Templates | Paylord
Usually it works for me, without any problem, about 20-30 times. But when I add a new workflow to be published, often it will a few times, and then eventually settle down and work consistently from then on.
The error I get when I call the PublishfromNWFXml method is:
Error returned from server: Server was unable to process request. ---> The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
I know that the XML file has been successfully read in.
Can anyone help with this seemingly random problem?