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.

Issue

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.

Do not modify any database definition or database content unless specifically instructed to do so by K2. No changes to the K2 Database definition or content are supported unless specifically instructed by K2. Please see: http://help.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#Database_Reference.html