Ui Path Studio 2018 has a new activity called “Delete Queue Items”. ¿Can I get the items of a selected Queue with “Get Queue Items”, and then erase them with the delete activity? It should be like clean the queue.
I did that but I’m getting the next error: “Delete queue items : Operation returned an invalid status code ‘Forbidden’”.
In the user guide you will find what permissions you need in order for the activity to work properly:
To change the Robot role, go to Orchestrator - Users - Roles (ex: UiPath). For the Robot role, click the Edit button and add permissions according to the User Guide.
I was having the same problem but the roles thing helped. It’s probably worth double checking the role again because you need to make sure its the Robot who has the access, not you as the human Orchestrator user.
It is also worth saying that the deleted queue items can be seen in the queue after they have been deleted, (so will not appear entirely 'clean) however they have the status deleted and will not show up in the queue metrics when on the queue page in Orchestrator. If you want to get rid of the the deleted ones (or any other status ones) from the transaction view in Orchestrator then you can apply a filter to the queue transactions.
Mmmm… Maybe it should work but… Look, I have 2 roles, called administrator and robot. I’m working with Administrator role (which have all permissions), and the role “robot” has a few permissions checked. I dont know if maybe the role that try to clean the queue could be the “robot” role. Take a look of this screenshot.