Skip to main content
Nintex Community Menu Bar

Hi just wanna ask about K2 itself.

 

I already make a custom service instance for a K2 Management method name RedirectWorklistItem.

 

This method  works but after i check K2 Log in HostServer/bin folder i found this error log

 

"25472347","20*personal details removed*:37:45","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","2025 Error Marshalling K2Server.RedirectWorklistItem, Data is Null. This method or property cannot be called on Null values.","","","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25472347","81492c8f53cf41af8ac791e343cd8a16",""
"25472349","20*personal details removed*:37:45","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","2025 Error Marshalling K2Server.RedirectWorklistItem, Method could not be resolved!","","","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25472349","af8e14aaa2dd4cfeac9216fb3ee8a47d",""
"25472350","20*personal details removed*:37:45","Error","EnvironmentServer","15101","Generic","SourceCode.Workflow.Runtime.Management eRedirectWorklistItem tstring fromUserName, string toUserName, int procInstID, int actInstDestID, int slotID]]","15101 Error occurred, ERROR: Method could not be resolved!","anonymous","0.0.0.0","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25472350","23c9f566838e418ea8b240075d91e059",""
"25472351","20*personal details removed*:37:45","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","2025 Error Marshalling SourceCode.Workflow.Runtime.Management.WorkflowManagementHostServer.RedirectWorklistItem, Worklist item from k2:cimbniagaadfidk2farmsvc could not be redirected to K2:CIMBNIAGAPX03512X","","","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25472351","428f04afd61642d388db54cacd75372b",""
"25472352","20*personal details removed*:37:45","Error","Communication","8130","ConnectionPacketError","SourceCode.SocketService.Legacy::HandlePacket","8130 Error processing message from 127.0.0.1:19489: Worklist item from k2:cimbniagaadfidk2farmsvc could not be redirected to K2:CIMBNIAGAPX03512X","","","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25472352","2d0dd6253eee409aa268820e7e46ccfc",""
"25472381","20*personal details removed*:37:45","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker kExecuteSmartObject]","10702 An error occurred in the DEWI_Trixie_Management_Service Service Instance. System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Worklist item from k2:cimbniagaadfidk2farmsvc could not be redirected to K2:CIMBNIAGAPX03512X
at WebServiceApplication.ManagementService.RedirectWorklistItemCustom(String destination, Int32 procinstid, Int32 actinstdestid, Int32 worklistitemid) in 10.25.136.247CertificateUAT v.1.0.12Solution UATNiagaWorkflowWebServiceApplicationManagementService.asmx.cs:line 75
--- End of inner exception stack trace ---","anonymous","0.0.0.0","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25472381","4fac4dbf67ad4e6080fee0012727ca69",""
"25473088","20*personal details removed*:37:49","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker kExecuteSmartObject]","10702 An error occurred in the IVT_Custom_Service_Instance Service Instance. Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.","anonymous","0.0.0.0","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25473088","cbd185c9ea464f0ea0ce602ea51162a8",""
"25473103","20*personal details removed*:37:49","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker kExecuteSmartObject]","10702 An error occurred in the IVT_Custom_Service_Instance Service Instance. Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.","anonymous","0.0.0.0","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25473103","f3f19af9bfef40468772b76f5a749a5a",""
"25473239","20*personal details removed*:37:50","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker kExecuteSmartObject]","10702 An error occurred in the IVT_Custom_Service_Instance Service Instance. Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.","anonymous","0.0.0.0","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25473239","c1d6e6acbc454f54a0220589f2e1922a",""
"25473315","20*personal details removed*:37:50","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker kExecuteSmartObject]","10702 An error occurred in the IVT_Custom_Service_Instance Service Instance. Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated.","anonymous","0.0.0.0","IDCBPDEWIAPP001:C:Program FilesK2Host ServerBin","25473315","f2c57377298344379d249a7bfe502968",""

 

From this error i'm not sure what the problem was.

 

And what is the workaround for this error. Did i need to increase the max pool in K2 (and where to add it because i really not sure the place to change it) or it is just because K2 cannot handle the workload that been given to it so it cannot execute the RedirectWorklistItem.

 

Thanks.

 

Hi NovaCammy,


 


Looking at the following part of the error, " Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding".


What is the current "Command Time-out" of the service instance set to in K2 Management?


 


As this value should be configured related to the size of your database. The default time is normally set to 30 sec. However, seeing that it has error in a timeout, maybe try and increase the value of the "Command Time-out" to 90 sec for example.
Hope this helps.


 


Regards
JacoH


Hi NovaCammy,


 


Looking at the errors i see the following:


 


SourceCode.Workflow.Runtime.Management.WorkflowManagementHostServer.RedirectWorklistItem, Worklist item from k2:cimbniagaadfidk2farmsvc could not be redirected to K2:CIMBNIAGAPX03512X


 


I assume that when executing the method manually it does not execute? Whats your input properties? Does this execute successfully when running it from management?


 


I would suggest to open a ticket to have this investigated further.


 


-Jean


Hi NovaCammy,


 


See at this error  'Error Marshalling K2Server.RedirectWorklistItem, Data is Null. This method or property cannot be called on Null values'


 


It seem like you execute RedirectWorklistItem method and there is some parameter is null value, Are there any your hardcode on some where? You may consider to adding write log file for checking any value on parameter send to RedirectWorklistItem method


 


Reply