Code Fix: After upgrading to K2 Five (5.1), an error occurs when you regenerate SmartObjects

Issue Description

When you add or delete a column in a SharePoint Document Library after you upgrade to K2 Five (5.1), an error occurs when you attempt to regenerate the SmartObjects for the SharePoint Library.

Error Message

The error message states: “SmartObject Server Exception: Deserialize error 'SourceCode.SmartObjects.Runtime.SmartObjectDefinitionsPublish' '' 'Object reference not set to an instance of an object.’”


  1. Ensure you have K2 Five (5.1) installed.
  2. Get the K2 Five (5.1) FP9 from Regional Support.
  3. Install the K2 Five (5.1) FP9 to apply the fix.
  4. You can now regenerate the SharePoint Library SmartObjects.