"500 Error" when connecting a Workflow to a SharePoint List

  • 16 February 2021
  • 0 replies
  • 19 views

Userlevel 5
Badge +20
 

500 Error when connecting a Workflow to a SharePoint List

kbt179194

PRODUCT
K2 Five
K2 blackpearl 4.6.11 to 4.7
K2 4.7 March 2018 Cumulative Update to K2 4.7 December 2019 Cumulative Update
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

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.

Symptoms

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.

Troubleshooting Steps

  1. 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.
  2. 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.
  3. 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
  4. Pass these values into the Remove Event Receivers method. This should remove them and you should be able to configure the Start rule again.

0 replies

Be the first to reply!

Reply