Error : Cannot insert duplicate key in object/Duplicate agent

Error : Cannot insert duplicate key in object/Duplicate agent

Issue

Facing an issue while Registering an agent.
Error: Duplicate agent OR 'Cannot insert duplicate key in object (Agent Table name)'

How to Reproduce:

You can try downloading 2 agent on the same machine, start one agent and then the second one to reproduce the issue.


Solution:

1. Check if any agent is running on the machine, if Yes stop it
2. Check if the agent is listed in AEUI and on which machine, if the same machine, please delete the agent
3. Delete all the existing agent (which are not in use)
4. After doing so, download a new agent and Test

      Links to better reach 

            Bot Store

             EPD