I created a site workflow that iterates through a sql query result set and updates a list item if the sql value had been changed. I log each item that is updated and at the end, I write to the history list the number of items that updated.
The workflow fails almost every morning, but only after it writes to the history log how many workflows had failed. Here is a screenshot of what it says is attached, but the text of the error is:
7/21/2017 7:03 AM Comment Workflow Complete: Updated 71 Sales Orders
7/21/2017 7:05 AM Error System Account An error has occurred in Update M2M Status In SalesOrder List.
Any clue why the workflow would throw an error after a successful completion? The last action in my workflow is Log To History the Comment.
Thanks.