Question

Not able to run my BOT - device not ready for deployment

  • 21 September 2022
  • 7 replies
  • 506 views

Not able to run my BOT - device not ready for deployment

7 replies

Badge +5

Can you please add the error screenshot to understand the issue better,

 

Also check if the device is connected , if not connect the connect the device and run the bot

Badge

 

Userlevel 7
Badge +13

Hi @vjuneja  & @Bernice 2975 ,

 

Please refer the below thread and try to reset the runner device through API call.

 

 

Badge

Do I have access to the control room for device reset. I am using Community Edition. @Padmakumar 

Userlevel 7
Badge +13

Do I have access to the control room for device reset. I am using Community Edition. @Padmakumar 

 

Yes you can. You just need to have the Authorization Token and Device ID to reset the same.

Badge

@Padmakumar Please mention all the steps to fix this error for the community edition. The video is suggesting me to use Swagger. When I tried creating login from different email id, I got the password reset email after 5 hours. 

Userlevel 5
Badge +14

@vjuneja 

Instructions


To resolve the issue, follow the below instructions and reset the device.
Note:

  • You need to have postman with access to the cloud 
  • This API can be accessed only by the admin
  1. Go to postman, and authenticate

- POST > https://<Control Room>/v1/authentication

- Body >

{ "username": "<Admin user>", "password": "<Admin Pass>" }

  1. Copy the token generated between quotes ""

image.png

Note: For SSO-based user login, use the API Key instead of the password to generate the Authentication token. Refer - https://apeople.automationanywhere.com/s/article/How-to-Generate-API-Key-to-access-APIs

  1. Reset the device

- POST > https://<Control Room>/v2/devices/reset
- Headers
KEY:x-authorization
VALUE: <Token copied from step 1>

image.png

- Body 
{
 "deviceIds": {   
  "ids": [<Device ID>]
  }
}

Notes:

  • You can get the device ID by going to Control Room> MY DEVICES > Click in the device >in the URL, you'll see the device id i.e.

https://<Control Room>/#/devices/mydevices/<Device ID>/edit

image.png

  • If the device has been removed from Control Room, and you don't know what the device ID is, or it requires to be done for multiple devices, you can use the below text in the body of the API call mentioned above.

{
  "allDevices": {
  }
}

Additional Information

Reset API can do the following actions for all devices in the tenant or to a specific list of devices

  1. terminate all running executions
  2. release all usages
  3. reprocess the queue for the device

As per the JSON format, the '\' is considered as an escape character. Therefore, use one more "\" (ie '\\' in place of single \) so that it is not considered an escape character.

Reply