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.

Objective

This is an addition to steps in the following KB: https://help.k2.com/kb001632

Before You Begin

After performing the steps in the KB: https://help.k2.com/kb001632, you may still get the following error when using the Registration Wizard under "SharePoint Service Broker:"

"SmartObject Server Exception: Error refreshing Service Instance '[SP Service Instance Name]'. Service returned : 'The remote server returned an error: (401) Unauthorized.Failed to initialize the Context: URL: [SP Site URL]"

How-to Steps

To resolve the issue complete these steps:

- Stop the K2 Service

- Run the following SQL query:

TRUNCATE TABLE [K2].[Authorization].[OAuthAppOnlyToken]

- Restart the K2 Service

- Rerun the Registration Wizard.