<{{Subtitle_Weight}} class="prominent-subhead {{Show_Subtitle}}"> {{Header_Subtitle}}

Code Fix: A SmartObject method nested in an expression in a K2 workflow does not update to use the correct SmartObject after deployment to SharePoint.

~~repeating-content.html~~
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 Description

Deploying a K2 workflow, which contains a SmartObject method nested in an expression, to SharePoint via K2 Package and Deployment, results in an error when editing the expression and selecting the SmartObject property.

Error Message

The following error is presented: “SourceCode.SmartObjects.Client.SmartObjectNotFoundException: SmartObject [SmartObject GUID] could not be found.
at SourceCode.SmartObjects.Client.SmartObjectClientServer.GetSmartObject(Guid guid)
at SourceCode.WebDesigner.FrameworkForms.FrameworkBase.GetSmartObjectInputs(String InputData, String ExtraData)”

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Download and Install the K2 4.7 March 2018 Cumulative Update from K2 Partner and Customer Portal.
  3. Download the K2 4.7 March 2018 Cumulative Update FP44 from K2 Partner and Customer Portal.
  4. Install the K2 4.7 March 2018 Cumulative Update FP44 to apply the fix.
  5. It is recommended to refresh the browser cache.

Considerations

Running instances will need to be updated manually. Faulty deployed workflows will need to be redeployed or fixed manually.