Symptoms
After deployment using PandD opening the Workflow and trying to deploy it on the target generates error
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.DoSPWrapping(Activity newActivity, XmlDocument inputData, String[] ConfigValues, String dynamicTypeForDestinationItem, K2Field currentField, SmartObjectFieldPart soFieldPart)
at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.CreateDestinations(XmlNode activity, Activity newActivity, XmlDocument xmlProcess, Process newProcess)
at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.CreateActivies(XmlDocument xmlInputData, XmlDocument xmlProcess, DefaultProcessand newProcess, String UserName)
at SourceCode.WebDesigner.Authoring.Forms.GenerateProcess.Generate(String LocalHostConnection, String UserName, Int32 ProcessID, String InputData, String ProcessXML, String SqlConnectionString, String HostServerConnectionString)
Diagnoses
This relates to the Task Event destinations that are mapped from another SmartObject. IE: Main list where the workflow resides uses a SmartObject from a secondary list for destinations.
Resolution
This is a bug in the product. Appit - This will be fixed in Appit 1.5 Update 3 Blackpearl - We have a 4.7 fix available on top of the 4.7 FEB CU, please request Fix Pack from Support. Workaround - Remove and remap the Destinations.