Workflow fails "Error occurred" randomly. I have a client where workflow fails for some items sometimes. Sometimes it goes through and completes as it should. The last step it performs when it fails is always the same: "Commit Pending Changes". The loop before this action creates some items within sharepoint lists, logs into the history. What can be a reason for this? I suppose it might be timeout at some point. ULS doesn't give any particular error message. If workflow fails, i terminate it, then i run the workflow again manually and it always completes. It only fails when it is automatically triggered and not always. Can anyone help?