Code Fix: Activating a Subsite on SharePoint to use the K2 application presents an error
KB002516
PRODUCT
Issue Description
When you have created a Subsite in SharePoint with a name that very closely resembles that of your main site and you attempt to activate the Subsite, an error is presented. For example:
Example 1
- Main SharePoint site collection = https://portal.sharepoint.com
- Subsite name = port
- This creates a URL of https://portal.sharepoint.com/port
Example 2
- Main SharePoint site collection = https://123.sharepoint.com
- Subsite name = 123
- This creates a URL of https://123.sharepoint.com/123
Error Message
The following error occurs: “'ServiceObject definition does not contain method. ServiceObject : [Management_K2Application]. Method : [RemoveK2AppFromSite] '”
Cause
When creating a Subsite with a similar name to your main site results in a malformed URL to be returned when attempting to activate the Subsite.
Resolution
- Ensure you have K2 4.7 installed.
- Download and Install the K2 4.7 March 2018 Cumulative Update from K2 Partner and Customer Portal.
- Get the K2 4.7 March 2018 Cumulative Update FP14 from Regional Support.
- Install the K2 4.7 March 2018 Cumulative Update FP14 to apply the fix.
- It is recommended to refresh the browser cache.
- You can now activate the SharePoint subsite collection.