Skip to main content

Hello,


I have an error when deploying a workflow (see below)


This error occurs when I check "Notify
participants when they receive a work item" in any user task.


If no notification checked, the workflow deloys successfully, and works as expected..


A send E-mail step is defined and work properly.


Exchange is not used for email integration.


A smtp server is defined in the setup manager (smtp server is a lotus domino 6.5.6)


The smtp connection test failed in the setup manager BUT telnet from k2 server to the smtp server works, as the send e-mail step in my workflow


DTC is set correctly on servers


 


K2
Blackpearl 4.6.6, K2 Smartforms 1.0.4


===============================================


The error :


Notification
Service: Task Error: System.Exception: System.Xml.XmlException: Root element is
missing.


 


Server stack trace:


   at
System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)


   at
System.Xml.XmlTextReaderImpl.ParseDocumentContent()


   at System.Xml.XmlLoader.Load(XmlDocument
doc, XmlReader reader, Boolean preserveWhitespace)


   at System.Xml.XmlDocument.Load(XmlReader
reader)


   at System.Xml.XmlDocument.LoadXml(String
xml)


   at
SourceCode.Categories.Client.CategoryServer.RefreshCategoryManager(CategoryManager
categoryManager, Boolean getCategoryData)


   at
SourceCode.EventBus.EventAdmin.Admin.addEventToCategory(String eventID, String
eventName, String categoryConnectionString, Int32
worklistNotificationCategoryID)


   at
SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String
connection, CustomEvent customEvent, String user)


   at
System.Runtime.Remoting.Messaging.Message.Dispatch(Object target)


   at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
msg)


 


Exception rethrown
at p0]:


   at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,
IMessage retMsg)


   at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)


   at
SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String
connection, CustomEvent customEvent, String user)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.UpdateCustomEventForNotification(CustomEvent
customEvent, String userName)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier
worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean
externalOwned)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier
worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean
externalOwned)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1
worklistItemIdentifiers)


   The
"SourceCode.DeploymentTasks.NotificationService.NotificationTask"
task failed unexpectedly.


System.Exception:
System.Exception: System.Xml.XmlException: Root element is missing.


 


Server stack trace:


   at
System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)


   at
System.Xml.XmlTextReaderImpl.ParseDocumentContent()


   at System.Xml.XmlLoader.Load(XmlDocument
doc, XmlReader reader, Boolean preserveWhitespace)


   at System.Xml.XmlDocument.Load(XmlReader
reader)


   at System.Xml.XmlDocument.LoadXml(String
xml)


   at
SourceCode.Categories.Client.CategoryServer.RefreshCategoryManager(CategoryManager
categoryManager, Boolean getCategoryData)


   at
SourceCode.EventBus.EventAdmin.Admin.addEventToCategory(String eventID, String
eventName, String categoryConnectionString, Int32
worklistNotificationCategoryID)


   at
SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String
connection, CustomEvent customEvent, String user)


   at
System.Runtime.Remoting.Messaging.Message.Dispatch(Object target)


   at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
msg)


 


Exception rethrown
at /0]:


   at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,
IMessage retMsg)


   at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)


   at
SourceCode.EventBus.EventAdmin.Admin.UpdateCustomEventWithMappings(String
connection, CustomEvent customEvent, String user)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.UpdateCustomEventForNotification(CustomEvent
customEvent, String userName)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier
worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean
externalOwned)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.AddWorklistItemNotification(WorklistItemIdentifier
worklistItemIdentifier, String eventData, PolicyMapping policyMapping, Boolean
externalOwned)


   at
SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1
worklistItemIdentifiers)


   at
SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName,
String MethodName, Object.] Parameters, Booleano] NullList, MarshalMessageType
CallType)


   at
SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String
MethodName, Objecti] Parameters, Booleane] NullList, MarshalMessageType
CallType)


   at
SourceCode.EventBus.ClientAPI.Notification.UpdateWorklistItemNotification(List`1
worklistItemIdentifiers)


   at
SourceCode.DeploymentTasks.NotificationService.Common.Publish()


   at
SourceCode.DeploymentTasks.NotificationService.NotificationTask.Execute()


   at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()


 


   at
Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()


 


Any help will be greatly appreciated,


 


Philippe

This error normally presents itself when MSDTC has not been configured correctly on the SQL Server machine.
I would suggest that you check to make sure that MSDTC is configured there properly as per the following documentation: http://help.k2.com/helppages/k2blackpearlGettingStarted4.6.6/webframe.html?msdtc.html


For future reference, anybody can use the DTCTester to verify that communication is open from the K2 Server to the SQL Server and vice versa.

 

The DTCTester tool is located here: http://support.microsoft.com/kb/293799 

 

It needs to succeed to the K2 Server from the SQL Server and vice versa to verify, clearly.

 

The following blog also has some good information on how to use the DTCTester tool: 

http://tuitionaffordable.wordpress.com/2010/12/17/how-to-use-dtcping-and-dtctester-difference-between-dtctester-and-dtcping-how-dtcping-and-dtctester-works/

 

If this test fails, it's possible the problem is XML related.


Reply