P&D deployment fails with 'Index was outside the bounds of the array'

  • 16 February 2021
  • 0 replies
  • 6 views

 

P&D deployment fails with 'Index was outside the bounds of the array'

kbt133954

PRODUCT
K2 blackpearl 4.6.11
K2 smartforms 4.6.11
BASED ON
K2 blackpearl 4.6.11
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

During Package and Deployment, the workflow is failing to deploy and an error appears:

Fail ProjectNameWorkflowName

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.4178132

Symptoms

This is a known issue in 4.6.11 that was resolved in version 4.7 and involves usage of the Folio field mapping during the Workflow Setting/Integration wizard and redeployment of the workflow/P&D package.

Image

Resolution

A coldfix can be provided for 4.6.11 by logging a support ticket and referencing internal reference ID #759328.

 

Alternatively, to workaround this issue in 4.6.11:

  1. Edit the workflow in the development environment, remove the folio mapping in the process design, deploy via designer and create a new package (.kspx). This will allow you to Package and Deploy to your staging environment. 
  2. After deployment to your staging environment, edit the workflow in the designer in the staging environment and re-add the folio mapping if needed and redeploy via designer.

0 replies

Be the first to reply!

Reply