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.
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]"
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.