Skip to main content


 

Symptoms


Item not found in this collection
 

Diagnoses


We have a custom proces that interacts with SmartBox table. It has been working as expected until a few days ago. Started to throw errors below. This happens when trying to load from /save to the smb table using the SMO. Attached are the logs as well as the process. Logs dont show why its failing. However, the same SMO execs well with same data using the smart object tester on the same environment.

Error occurs at ActivityName/EventName event. Similarly, if we manully bypass using gotoactivity, it also fails at another Smartobject Event

"226881663","2015-04-24 19:37:56","Debug","General","15","GeneralDebugMessage","ProcessInstance.HandleException","15 ServerEvent: Item not found in this collection.
Server stack trace:
at SourceCode.Workflow.Runtime.Extenders.WinWFExtender.OnExecute(Object context, XmlElement data, ResolverManager resolverManager)
at SourceCode.Workflow.Runtime.Extenders.ResolverExtenderBase.Execute(Object context, String data)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Objectc] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Objectc]and outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at t0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageDataand msgData, Int32 type)
at SourceCode.Workflow.Runtime.IK2Extender.Execute(Object context, String data)
at SourceCode.KO.ProcessInstance.ExecuteExtender(Guid , State , ContextType , Object , Int32 , String , Guid )","","","DLX:C:Program Files (x86)K2 blackpearlHost ServerBin","226881663","93f6e5a34f094154b545d4607d7729a5",""

 

Resolution

This error was reproducible with the attached process version and Smartobject version and performing the steps below resolved the issue:

1. Walk-through the SmartObject event, click on the "Refresh" option in the "Input Mapping" wizard, then click Next
2. Click on the "Refresh" option in the "Return Mapping" wizard then click Next
3. Redeploy the process
4. Start a new instance and re-test

Perhaps an extra Smartobject property was added/removed/renamed, such that the Smartobject event wizard is no longer synchronized with the Smartobject's definition. Performing the "Refresh" on the Input Mapping and Return Mapping is necessary and does not remove any mappings that was previously there. Please see the consideration section regarding the Smartobject event wizard:

https://help.k2.com/onlinehelp/k2blackpearl/userguide/4.6.9/webframe.html_event - smartobject event wizard.html

If necessary, existing process instances in this error state can be retried with the working process version using:
https://help.k2.com/onlinehelp/k2blackpearl/userguide/current/webframe.html_reference-st-error_repair_retry.html

Or the process version migration tool:
http://community.k2.com/t5/K2-blackpearl/Process-version-migration-utility/ba-p/785




 
Be the first to reply!

Reply