When you run the app registration or activate a site collection using the K2 Five for SharePoint app, the following error occurs:

Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown.

Image

Cause

When you run the app registration or activate a site collection using the K2 Five for SharePoint App, the K2 service account is used to execute these tasks. The error occurs when the K2 service account does not have the necessary permissions on the root category to create the SharePoint 2013 category.

Resolution

Follow the steps below to resolve the issue:

  1. Create the SharePoint 2013 category using the K2 Designer with an identity that has Security Administrator permissions.
    Image
  2. Open K2 Management and go to the SharePoint 2013 category in the Categories node.
    Image
  3. On the Security page, select the Everyone Role and click Break Inheritance.
  4. Add the K2 Service account and give it Allow permissions for View and Execute rights.
  5. Rerun the app registration or site collection activation.