Know Issue: Error from Lookups on SharePoint Lists after STPs are used to move lists between sites on the same environment

  • 16 February 2021
  • 0 replies
  • 2 views

Userlevel 5
Badge +20
 

Known Issue: Suppressed error on deployment to SharePoint Lists 

KBS100043

PRODUCT
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
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

If you have used SharePoint Template Packs (STPs) to move lists between sites on the same environment, a suppressed error occurs during deployment of a K2 pacakge to the list if the list lookups have not been configured. 

 

When using STPs between sites on different environments, a K2 deployment exception error appears if the list lookup has not been configured. When moving between subsites, however, the service instance name remains the same and the SmartObject call is succesful, and the K2 deployment continues.

Symptoms

When adding an item to the deployed list, the "Sorry, something went wrong - An unexpected error has occurred" error message displays.  

The following error message shows in the deployment log:

 

Fail Portal_AList
 Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object.
 at SourceCode.Categories.Client.CategoryServer.UpdateCategoryData(Category newCategory, CategoryData categoryData)
 at SourceCode.Runtime.Services.SharePoint.DeploymentCollator.MoveCategoryDataInternal(CategoryServer categoryServer, CategoryManager categoryManager, Category deployedToCategory, Category newCategory, ComplexType complexType)
 at SourceCode.Runtime.Services.SharePoint.DeploymentCollator.MoveCategoryData(CategoryServer categoryServer, CategoryManager categoryManager, Category deployedToCategory, Category newCategory, IEnumerable`1 objectList, List`1& unassociatedObjects)
 at SourceCode.Runtime.Services.SharePoint.DeploymentCollator.DoPostDeploy(DeploymentPlan plan)
 at SourceCode.Deployment.Runtime.ServerSession.AsyncDeploy() 00:00:00.1513582

Resolution

Configure the lookups to the list, then redeploy the solution.

0 replies

Be the first to reply!

Reply