Forum Discussion
Pål Eilertsen
Feb 14, 2017Copper Contributor
Uploading files via SPO REST API failing when having a workflow on the library
Hi, We are using the SPO REST API to PUT files into SPO document library. We are also doing a PATCH to update content and metadata. On the document library we have a SP Designer workflow that sta...
- Feb 20, 2017Is it possible that the workflow is 'updating' the item in the form of updating the workflow status column?
Try configure the workflow and not set the workflow status in the column, this means when workflow starts it doesn't modify the list item.
Then it shouldn't cause problems for the Patch op.
Asish Padhy
Feb 21, 2017Copper Contributor
The challenge is as soon as one column update happens, the workflow is triggered while you are still updating other content on the record. There is no lock put on the record to prevent it from firing.
Try to turn off the item update event triggering for the list and see if that prevents the workflow from firing. Here is link to an article that might help - http://sharepoint.stackexchange.com/questions/94362/temporarily-disable-workflow-on-single-list-item
There are other challenges with batch updates but if it works for one record, then then could plan for batches.