Updating InfoPath work item during an Escalation


Badge +4
I have a need to rewrite the InfoPath work item document in a SharePoint library during an Escalation Rule. I am using K2SPSList.UploadDocumentFromUrl() in the InfoPath Client Event to create the work item in the first place, and it works fine. However, when trying to rewrite the file with an updated version in the Escalation rule I get the following error:

 oByte, Boolean overWrite, String& ErrorMessage)
at APSC.Processes.AFE.Activity.SetEscalationAction(EscalationActionContext K2)


It appears to be a permissions problem, but I don't understand why. I even tried removing the file in between escalations to see if it was having a problem when trying to overwrite the file, but I got the same error.

Ideas, anyone?

2 replies

Badge +3

Does the K2 Service domain service account have Contribute permissions to that SharePoint (site) library?  That is a common problem, assuming the problem is permissions.

Badge +4
It does.  The documents are created elsewhere using the same code, so permissions are not the culprit.  In this case the only thing that is different is that it is being called from an escalation rule.

Reply