You are unable to configure a "Start Event" for a SharePoint integrated process when using the HTML5 workflow designer.


We had a workflow that started using a SharePoint remote event receiver. (OnItemEdit) After changing the start event to use the "edit form submit" something went wrong. At time of writing, we are unable to reproduce the issue, and we are unsure about how we got into this state. (We tested both the SilverLight and HTML5 designers, but to no avail.)

When trying to configure the "Start Event" in the HTML5 designer, we saw the following error...
Only one start integration to a SharePoint integrated form or SharePoint event is supported per workflow. Please remove the existing SharePoint start integration and try again.



K2 fires the following SmartObject call (Using the workflow name as an input), to see if there is already a workflow with that name.
- System > SharePoint 2013 Integration > SharePoint Integration Workflow > LoadsWithWorkflowName.

If we get a value back, then we know that the workflow exists, and we stop you from creating a new one with the same name. After digging through the SharePoint integration tables, we saw that there was an "orphaned" entry for the workflow in the "[Integration].[ProcessSharePointWorkflow]" table. To be safe, we renamed the entry first, and the client was able to configure hos start event after that. Once we confirmed all was working correctly, we deleted the entry.