"Value cannot be null. Parameter name: S error" when activating K2 App
kbt154554
PRODUCTIssue
When trying to activate the K2 App for a site collection, the following error appears:
Value cannot be null. Parameter name: s
Symptoms
When in the App catalog site and you click on K2 for SharePoint > Manage App Activations > Provide the site collection URL > Activate. This error appears on the SharePoint Service Broker step and will not proceed with the activation.
The SmartObject Service Tester Tool shows that a Service instance has been created for the Site Collection and there are existing SmartObjects created under the site collection we are trying to activate. It will give you the same error if you try to execute the those SmartObjects.
Troubleshooting Steps
To resolve this, direct manipulation of the K2 database is required. Please contact K2 support for further assistance.
The following steps can be used to resolve this issue under the supervision of K2 Support:
- Remove orphaned SmartObjects/entries from the following database tables:
SmartBroker.SmartObject
SmartBroker.ServiceInstance table
- Restart the K2 Service
- Activate the K2 App on the site collection using Manage App Activations.