Skip to main content


 

Symptoms


System.DBNull error is thrown when deploying process in K2 Studio:

 

Diagnoses


The following errors are thrown:

(TransformerMetricsWorkflows) Notification Service: Task Error: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Bytet]'.
at SourceCode.EventBus.EventAdmin.Admin.GetCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.EventAdmin.Admin.DeleteCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)

(TransformerMetricsWorkflows) The "SourceCode.DeploymentTasks.NotificationService.NotificationTask" task failed unexpectedly.
System.Exception: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Bytet]'.
at SourceCode.EventBus.EventAdmin.Admin.GetCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.EventAdmin.Admin.DeleteCustomEventWithMappings(String connection, Int32 id)
at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.RemoteCall(String TypeName, String MethodName, Objectc] Parameters, Booleana] NullList, MarshalMessageType CallType)
at SourceCode.Hosting.Client.BaseAPI.BaseAPI.RemoteCall(String TypeName, String MethodName, Objectc] Parameters, Booleana] 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.d__20.MoveNext()

 

Resolution

There is a coldfix for this issue. Please log a support ticket.




 
Be the first to reply!

Reply