Symptoms
User gets the following error when clicking on "Click to open worklist item link" from the email: "We must create a token on behalf - click here. Once the token is successfully created, click OK to refresh this page"
After successfully creating a token and clicking OK, the user got the following error:
"SmartObject with name GetPricipals not found. Please rerun the K2 for SharePoint application Registration Wizard..."
Checking the log on the server, we noticed the following errors:
10702 An error occurred in the SharePointIntegration Service Instance. System.Exception: SmartObject with name GetPrincipals not found. Please rerun the K2 for SharePoint application Registration Wizard as a Site Collection Administrator. Navigate to Site Contents andgt K2 for SharePoint andgt Settings andgt Registration Wizard. at SourceCode.SmartObjects.Services.SharePoint.Integration.Execution.Execute.ExecuteSmartObjectListMethod(String smartObjectName, String methodName, Dictionary`2 inputProperties, Boolean asService, Filter filter) at SourceCode.SmartObjects.Services.SharePoint.Integration.Execution.Execute.GetPrincipals(Filter filter, SiteUrlManager siteUrlManager) at SourceCode.SmartObjects.Services.SharePoint.Integration.IntegrationService.Execute()
Diagnoses
The issue was caused by picker control on the form was configured using SmartObject from the wrong environment.
Resolution
Configure the picker control to user SmartObject in Prod resolved the issue.