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.
A 500 error is seen when connecting a Workflow Start rule to a SharePoint List on specific events. Usually only Item Added or Item Updated have the issue.
In the HostServer logs or Event Viewer logs the following error might appear:
Error Message: Thread 1: Access denied. You do not have permission to perform this action or access this resource.
- Run the Event SmartObject found under SharePoint 2013 > [Site Name] > Management with the Get Event Receivers method. Grab the List ID for the List you are trying to work with.
- Pass this ListID in and look at what is output. If this List has not been integrated with before, then there shouldn't be any K2 Events here.
- If there are K2 Events, it could be because this List was migrated from a different environment and the Events came with it. If this is the case they must be removed using the Remove Event Receivers method. Make note of the Event Type and the ListID
- Pass these values into the Remove Event Receivers method. This should remove them and you should be able to configure the Start rule again.