Hello everyone,
I'm getting the error "Cannot delete device, as it is part of an active bot deployment" in Automation 360 Community Edition.
Activity Tab > In Progress: is empty
I've already done the following steps and it doesn't allow device removal.
- Restart the Bot Agent Service. (The error persists)
- Uninstall the Bot Agent
- Remove file "C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere\registration.properties"
- Restart the machine.
- Reinstall as Administrator Bot Agent lastest version. (The error persists)
- Restart the machine. (The error persists)
- Uninstall the Bot Agent
- Remove residual files and folders
- "C:\Windows\System32\config\systemprofile\AppData\Local\AutomationAnywhere"
- C:\ProgramData\AutomationAnywhere
- C:\Program Files\Automation Anywhere
- %USERPROFILE%\AppData\Local\Temp
- Restart the machine.
- Reinstall as Administrator Bot Agent lastest version. (The error persists)
When I try to run a bot the error is "System allows only a single device to be registered. If you need to replace your existing device you should delete it first."
When trying to reset the device through API does not work. Please help what is the correct use of the API v2/devices/reset endpoint found in the following article: https://apeople.automationanywhere.com/s/article/BOT-struck-in-In-Progress -Stage-and-not-able-to-move-it-to-history-or-BOT-struck-in-Pending-execution-Stage-and-not-able-to-move-it-to-history-on -A2019-CLOUD-environments
After successfully authenticating through the API Auth endpoint v1/authentication , I went through the procedure to reset a device based on its ID, but I get error 400 Bad Request "Reset type not set."
v2/devices/list
v2/devices/reset
I have tried if it is due to syntax or data type in the following ways but it does not work
Is there a parameter missing from the POST request?
Option 1: With brackets and quotes
{ "deviceIds": { "ids": {"406"] }}
Option 2: With brackets and without quotes
{ "deviceIds": { "ids": {406] }}
Option 3: Without brackets and without quotes
{ "deviceIds": { "ids": 406 }}
Note: I have carried out the process in Automation 360 Community Edition, which is where it does not allow deleting the device due to the error "Cannot delete device, as it is part of an active bot deployment", but the progress table is empty, I also ran the procedure in Automation 360 On-Premise getting the same result: "Reset type not set." Thanks for the help, I was looking in the documentation, but I can't find anything else related to the use of v2/devices/reset
Thank you very much for the help, I stay tuned