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.
When opening or trying to create a new workflow for an application in K2 for SharePoint, you receive a SmartObject Server exception. You are unable to open or create new workflows after. This is only happening for a particular list.
Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown.
No workflows can be created on the List. Existing workflows cannot be edited either.
Check the Application Logs in the Event Viewer to see what the issue may be.
If you are seeing something similar to this:
An error occurred in the SharePointIntegration Service Instance. Thread 1: Specified argument was out of the range of valid values. Parameter name: xml
The issue is that there are orphaned items in the Category.Data table. By removing the orphaned items you will be able to open the workflow or create new ones.
How to check the Category.Data table
- Check the Integration.ProcessSharePointSetting table to see the Category associated with the List.
- Check the Category.Category table to confirm this is the correct category.
- Check the Category.Data table and see if anything looks like it should not be in here. Maybe a form or view that was deleted, anything that looks a little strange.
- Open a Support ticket to receive a script to delete the orphaned objects.