HD Bots not processing the workitems from the queue

I have followed the different docs for the high density bots setup, including https://www.youtube.com/watch?v=VMQtr0fK3Rw, however I am not able to run them together with the workitems queue.

I have some workflows on the username “rpa-payments” and a workitems queue associated with. I followed next steps:

  1. Create the “hdrobots” role and add the “rpa-payments” user as a member.
  2. Used the “rpa-payments” user to create the unnattended server object as described on the video.
  3. Reauthenticate and start the windows OpenRPA service.
  4. Create the user names “bot1” and “bot2” and add them to the “hdrobots” role.
  5. On OpenRPA connected each user and set the credentials through the Run Plugins which add two new unattendedclient objects on OpenFlow.
  6. Add the local bot Windows user to the Deskop Remote Users group.
  7. On OpenRPA set the permissions for each workflow, includes the role “hdrobots”
  8. etc.

At the end, I was able to test the configuration for each bot invoking some of the workflows from OpenFlow, also visited the HD Settings and turning on and off each of them, verifying they are taking control of the Windows’s session. However, when new Items arrive to the queue, the hd bots don’t execute them, all items are executed only when I open OpenRPA connected to the user “rpa-payments”, as originally worked. The hd bots are there, running, but without processing any items from the queue.

Notes:
The workitems queue is associated to the rpa-payments RPA user, however I also tested associating it to the hdrobots role (which is an RPA type) and didn’t work.

OpenFlow v1.5.0
OpenRPA v1.4.55

  1. What I am missing on my setup?
  2. How can I make bot1 and bot2 process the items from the workitems queue?

Thanks

I have a hard time following it all, but this statement stands out to me.
Are you running more than one robot with the same openflow user? If so, that is not allowed, and is your problem. Every robot MUST run with an unique user … instead on the workitem queue use the ROLE you made that every user is a member of

Hi Allan,

Next is what I had before and after the hdb setup:

Before the setup
1 openflow user “rpa-payments” with the RPA enabled
1 workitem queue “Payments”
1 workflow “Main Process Queue” listening the “Payments” queue.

After the setup
Same as before, plus:
1 “hdrobot” role with the RPA enabled.
Added “rpa-payments” user as a member of “hdrobots” role.
Modified workitem queue “payments” to use “hdrobots” role instead.
2 new OpenFlow users for hd robots; “bot1” and “bot2”, included as members of “hdrobots”.
2 new Windows users, one for each new OpenFlow user (bot1 and bot2).


bot1 and bot2 are working correctly, I can run any workflow on each user and also I can select “hdrobots” and got the workitems randomly executed on one of the bots (rpa-payments, bot1, bot2).

As I mentioned, “hdrobots” was added as the Robot/Role on the queue “Payments”

Issue
When I add a new workitems to the queue, bot1 and bot2 are not processing them and stay forever on the queue, until I connect the “rpa-payments” bot which process all of them.

Thank you very much for your help!

Login to each Windows user, and logout and back in to each robot to regenerate the JWT token, ensuring it contains the “hd robots” role…

I did next steps in order:

rpa-payments, bot1 and bot2 are included as member of the hdrobots role.

  1. Login on each Windows user and remove the client at Run Plugins section on OpenRPA.
  2. On OpenFlow verified that the two unattendedclient object were removed
  3. Login using “rpa-payments” on OpenRPA and using the administrator console, uninstalled the rdservice “openrpa.rdservice uninstall”.
  4. Manually removed the unattendedserver on OpenFlow.
  5. Manually removed the rdservice_jwt entry from the settings.json file at C:\Program Files\OpenRPA
  6. Verified that the OpenRPA service was removed from the Windows services.
  7. Install again the rdservice “openrpa.rdservice”
  8. Reauthenticated “openrpa.rdservice reauth”
  9. Verify the creation of a new token at settings.json file.
  10. Verify the creation of the Windows OpenRPA service and start it.
  11. Login on each bot and add the client
  12. Verify the creation of the new unattendedserver and unattendedclient for bot1 and bot2 at OpenFlow.
  13. Run some workflows on each bot and also on “hdrobots” role to make sure they are working.

All previous steps worked as expected, however still not able to make bot1 and bot2 grab the workitems from the queue.

Notes
I turned off the hd bot1 at OpenFlow/hdrobots and when open OpenRPA using the bot1, I am getting next outputs:

[13:39:13.929][Output] Main Process Queue failed at 1.74 in 00:00.255
server error: {“error”:“Work item queue not found Payments (null) not found.”}
[13:39:13.672][Information] Main Process Queue started in 00:00.000
[13:39:13.641][Information] [ixvqy0qwx] Create instance of Main Process Queue
[13:39:03.878][Output] Main Process Queue failed at 1.74 in 00:00.167
server error: {“error”:“Work item queue not found Payments (null) not found.”}
[13:39:03.702][Information] Main Process Queue started in 00:00.000
[13:39:03.636][Information] [1v742gabb] Create instance of Main Process Queue
[13:38:55.216][Error] Cannot load instance 13e32598-6372-4a51-bd3b-7160c1861d46 it contains no state (non serializable)
[13:38:55.211][Information] Try running 1 pending workflows
[13:38:54.643][Output] Main Process Queue failed at 1.74 in 00:00.356
server error: {“error”:“Work item queue not found Payments (null) not found.”}
[13:38:54.269][Information] Main Process Queue started in 00:00.001
[13:38:53.693][Information] [pa8siomfa] Create instance of Main Process Queue
[13:38:52.929][Information] Connected to ws://cpay-rpa-qa.corcentric.com/

When login using bot1, all workflows in where I added the permission for “hdrobots” are displayed, except the “Payments” which is only displayed when I login using the “rpa-payments”. I think the issue is that the new hd bots cannot access to the Payments queue.

Thanks

I got it. The issue was because of the roles and permissions at OpenFlow. The user “rpa-payments” is an admin user, so I added hdrobots role to the admins role, and the hd bots started to process the workitems from the queue. I think, I need to play with the roles and permissions to find the best way to organize them, but at least, I know what the issue was.

Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.