So, is it currently working?
It works almost all of the time, but I did get this error again recently, so it's happened a couple times now this month, out of about 20-30 workflow runs in the same period, so call it 10% failure rate? Not great.
Hello Chris Almaguer -
When you say:
This is not a permissions issue because I was able to start the workflow manually later.
Does this mean that you are always starting the workflow or are there other users that are starting it as well?
I have seen issues where users do not have the proper permissions on a site/list that is being queried within the workflow, but have the ability to create new items and kickoff workflows.
You can also try to put the Query list action within an Action set and set the actions within to Run as workflow owner.
This is a good suggestion, but no, it's always either myself or another site owner that's starting the workflow. The only thing I can think of is that the query that is erroring out is querying multiple values and writing them to multiple variables. I broke out the query so it's only querying one variable at a time.
This way, I can see WHICH query is causing the error - also if it continues to happen I can add pause actions in between queries to see if that will help.
I actually went to set this setting anyway, and I don't have this option! (Nintex 2013).
did you try this on a branch of a state machine or other branching action? this option is only available inside an action set when outside of branching logic - can you confirm?
Actually Jesse, I did find out that I was mistaken, some of the folks getting errors are NOT site owners! I did enable this setting (my action set was nested, I had to go to the parent), and enabled it. Thanks!
I didn't think I had it because there was no branching, but the action set was nested in another action set (I had to enable this setting on the parent).
I also face the same issue and I am not able to pin point the problem to why it is causing the query being access denied.
In practical it works great as it been working a lot of times until this issue occurred.
I went ahead and added an Action Set and placed the query within the set and ticked the option "run wf as the owner..."
The workflow now works fine but this does not mean the action set fixed the issue lol
-
This sounds like a permission issue on the list that is being queried. I would start there and ensure that the user executing the action(s) have the proper authority on that list.
Hope this helps!
Jesse is right, I haven't had any issues since I checked "run wf as the owner". You should be good if you added an Action Set and ticked this box.
Hello Jesse
In that case since the user is missing the permission then why did it work with every body else?
Just as an information: I have a group called Members where all users are in that group and it has Contribute rights.
As i said, it usually works and never came across this error before.
That made me wonder ...
I recently had this issue on SharePoint Online. It was getting an access denied when trying to write to the Workflow History. Giving Contribute rights there allowed the workflow to complete.
Getting the same issue in SharePoint Online. I think, in my case the query builder is failing. I am setting item level permission after creation, I am removing all permission from the item and only owner has access to all items.