Skip to main content


 

Symptoms


Package deployment fails with the error below and the workflow surface in the error is not deployed properly:

Success {workflowname} 00:00:01.3901629
Success {workflowname} 00:00:52.5783624
Fail {workflowname}
Index was outside the bounds of the array. System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SourceCode.Runtime.Services.WebDesigner.WebDesignerRuntimeService.ApplyFolioChanges(XDocument xmlWebProcess, ITypedItem item)
at SourceCode.Runtime.Services.WebDesigner.WebDesignerRuntimeService.ApplyItemReferenceChanges(XDocument xmlWebProcess, ITypedItem item, ComplexType ct)
at SourceCode.Runtime.Services.WebDesigner.WebDesignerRuntimeService.Deploy(IDeploymentContext context) 00:00:04.0537110
Success PMR_Master 00:00:00.6832748

As mentioned above, everything else, Forms/Views, gets deployed successfully with the exception of the workflow.The workflow does not show up in the App UI(Appit artifacts page) post-deployment. It does, however, show up under Workflow Management in the K2 management page.

 

Diagnoses


It was determined that a Folio reference in the workflow Start Activity was what was causing the workflow deployment to fail.
 

Resolution

We removed the Folio reference from the workflow and then re-package the solution. And once it had been successfully deployed to the target environment, went in and edited the workflow in Designer and re-added the Folio reference back.

This is currently scheduled to be fixed in a future update, likely Appit 1.3 Update 1 but no later than Appit 1.3 Update 2.




 

I was trying to deploy a workflow in K2 studio and got the error "Index was outside the bounds of the array". Removed the Folio mapping after reding the above post. Tried to redeploy is again, but getting the same error. Need help of how to resolve this.


Reply