[Resolved] Cannot delete device as it is part of active bot deployment in A360
In this post, we'll address the recurring challenge of encountering the error "Cannot delete device as it is part of an active bot deployment," particularly when your BOT is persistently stuck in the In Progress Stage, hindering its transition to the history section. Additionally, this solution is applicable to scenarios where you are utilizing a Community or On-Prem Control Room and facing the following issues:
- BOT stuck in In Progress Stage and not able to move it to history
- BOT stuck in Pending execution Stage and not able to move it to history
- Cannot delete device as it is part of an active bot deployment
You can follow the same steps or solution through video as well.
Error: The device cannot be deleted since it is involved in an ongoing bot deployment.
When executing your bot, you may encounter a situation where the previous run becomes stuck, preventing you from initiating the bot again.
At times, the error persists even after uninstalling and reinstalling the bot agent. Attempting to delete the device proves challenging, as it remains integral to an ongoing bot deployment.
hSolution]:
Note:
- You need to have postman with access to the cloud
- Access to this API is restricted to Admin.
- In the instance of the community edition, user "CE_bot" has the privilege to access it.
Step1: Go to the Postman and Authenticate
Method: POST
URI: https://<Control Room>/v1/authentication
Body
{ “username”: “<Admin user>”, “password”: “<Admin Pass>” }
OR
{ “username”: “<CE user>”, “password”: “<CE Pass>” }
Step2: Copy the token generated
Note: For SSO-based user login, use the API Key instead of the password to generate the Authentication token.
Step3: Reset the device
Method: POST
URI: https://<Control Room>/v2/devices/reset
Headers:
KEY:x-authorization
VALUE: <Token copied from step 2>
Body
{"deviceIds": {"ids": p<Device ID>]}}
For example, if my device id is 987964 then the API body will look like the below:
{"deviceIds": {"ids": w209350]}}
Finding Device ID in A360 Control Room
You can get the device ID by going to Control Room> Devices > Click on the device name or view device > in the URL, you’ll see the device id.
https://<Control Room>/#/devices/mydevices/<DeviceID>/view
If the device has been eliminated from the Control Room, and you are uncertain about the device ID or need to perform this action for multiple devices, you can employ the provided text in the body of the mentioned API call.
{"allDevices": {}}
Thanks,
Ganesh Bhat
AI Brahma