our Sharepoint admins replaced the Develop and Test Sharepoint with a new installation. So we have to reinstall the K2 App for Sharepoint as well.
By running the K2 registration wizard from the App catalog we get this error:
Unable to retrieve realm for SharePoint site
The described solutions in
do not work.
The SP-URL ist the same but I think we have now some problems with the exisiting SP-configuration on K2 site, because the old server was connected to K2. Could this be the issue?
Best answer by AndreasGView original
Please try checking the K2 Settings hidden list on the App Catalog site. You can hit this list by going to the following URL.
[SHAREPOINT SITE URL]/lists/k2 settings
Make sure this is confgiured to point to the correct K2 Server.
After replacement/rebuild of SharePoint farm and re-deploying K2 for SharePoint app registration wizard fails on SharePoint Service Broker step with the following error:
Unable to retrieve realm for SharePoint site: https://%APP_ID%.domain.com/sites/appcatalog/K2forSharePoint
APP_ID in error message refers to the APP_ID relevant for old/decommissioned SharePoint farm and does not match one you will see in address bar.
References to the old app ID have are not removed from K2 database.
References to the old app ID have to be removed from K2 database. To resolve this you need to delete them from [Integration].[ProcessSharePointGeneralSetting] table as explained below: