Skip to main content

There are several Forms was designed which are used on different steps of workflow.


I was design three-stage workflow and set K2 Forms as user forms in procces. But during deploy the next workflow version (several times before it all was OK) I received the error:


System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
   at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.CreateClientEvents(XmlDocument xmlProcess, XmlDocument xmlInputData, XmlNode activity, Activity newActivity, Process newProcess, String UserName)
   at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.CreateActivies(XmlDocument xmlInputData, XmlDocument xmlProcess, DefaultProcess& newProcess, String UserName)
   at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.Generate(String UserName, Int32 ProcessID, String InputData, String ProcessXML, String SqlConnectionString, String HostServerConnectionString)


Any ideas, what happend?   

 


Hi Alexey


Can you please do the following:


 



  1. Edit/open your Workflow
  2. Edit each UserTask Event which you have configured
  3. Within the UserTask Event, navigate to the page where you need to specify a smartforms Form/state/etc.
  4. Click on the "Data Bindings" button
  5. Select the "Action Task" tab
  6. Verify that there are no Data Fields of which the "Update" checkbox has been checked, but the "Value" textbox is empty

 


Please verify this for each UserTask Event.


If you do find a Data Field which has been checked for update, and it was indeed left empty, please uncheck the "Update" checkbox, and try to re-deploy.


Kind regards,


Eugene


 


Reply