# Error creating new agent

**URL:** <https://speciforum.org/t/error-creating-new-agent/1245>\
**Category:** Get Help\
**Created:** [July 27, 2023, 6:03pm UTC](https://speciforum.org/t/error-creating-new-agent/1245 "2023-07-27T18:03:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Andre](https://speciforum.org/u/Andre)\
**Post date:** [July 27, 2023, 6:03pm UTC](https://speciforum.org/t/error-creating-new-agent/1245/1 "2023-07-27T18:03:23Z")

</div>

When I create a new user, I create a new agent for that user and when I click on save this error message appears.

I’m using specify 7.8.6  
can you help me?

 ![Screenshot_2](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/c/c42d1068b2ead61b1c0d3868958880ec5100a8c6.png)

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [July 28, 2023, 2:19pm UTC](https://speciforum.org/t/error-creating-new-agent/1245/2 "2023-07-28T14:19:20Z")

</div>

Hi @Andre,

This is most likely caused by a bug present in Specify 7 from 7.7.0 → 7.8.6. Updating to the latest version of Specify 7 (`7.8.13`) should resolve the problem.

From the [change log of Specify 7.8.7](https://github.com/specify/specify7/blob/production/CHANGELOG.md#fixed-7):

> - Fixed the inability to create new agents from the query combobox in the Security & Accounts panel ([#2696](https://github.com/specify/specify7/issues/2696)) – _Reported By SAIAB, Natural History Museums of Denmark, and others_

If updating does not solve the issue, could you download the crash report and send it to us?

Thank you!

---

<div class="post-metadata">

**Author:** ![rlombardi](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rlombardi](https://speciforum.org/u/rlombardi)\
**Post date:** [August 16, 2023, 4:51pm UTC](https://speciforum.org/t/error-creating-new-agent/1245/3 "2023-08-16T16:51:10Z")

</div>

Hi, I am getting the same error message as in Andre’s screenshot and as a very new user to Specify 7 I have no idea how to update it. I am using Specify 7.8.12. It looks like 7.8.13 is the newest version.

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [August 16, 2023, 6:40pm UTC](https://speciforum.org/t/error-creating-new-agent/1245/4 "2023-08-16T18:40:25Z")

</div>

Can you send the crash report via email?

As far as updating Specify 7, this must be done by your IT administrator, which involves editing the `docker-compose.yml`. You need to modify this and the worker component in the docker-compose file.

```yml
  specify7:
    restart: unless-stopped
    image: specifyconsortium/specify7-service:v7
    init: true
    volumes:

```

The `image` used by Docker must be modified.

`v7` means the latest version of Specify 7.

```yml
specifyconsortium/specify7-service:v7

```

You can specifically request a version by putting it below:

```yml
specifyconsortium/specify7-service:v7.8.12

```

For most situations, `v7` is our recommendation. Anytime your IT administrator pulls the latest changes from Docker Hub, you will be updated!

---

<div class="post-metadata">

**Author:** ![Carmella\_Lombardi](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Carmella\_Lombardi](https://speciforum.org/u/Carmella_Lombardi)\
**Post date:** [August 16, 2023, 8:10pm UTC](https://speciforum.org/t/error-creating-new-agent/1245/5 "2023-08-16T20:10:52Z")

</div>

I sent a crash report via e-mail.  
Roberta

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [August 16, 2023, 8:43pm UTC](https://speciforum.org/t/error-creating-new-agent/1245/6 "2023-08-16T20:43:13Z")

</div>

The error received is reporting that there already is a user named `Specifysupport`, so you are prevented from creating a duplicate.

I have created an issue on GitHub so we can catch this issue in the future before it takes place!

> <https://github.com/specify/specify7/issues/3920>
>
> \<img width="1315" alt="image" src="https://github.com/specify/specify7/assets/37…256050/cafa09a1-465b-4adc-919a-b00cb370103b"\>
> 
> \`\`\`
> "Duplicate entry 'abentley' for key 'Name'"
> \`\`\`
> \`\`\`
> MySQLdb.IntegrityError: (1062, "Duplicate entry 'abentley' for key 'Name'")
> \`\`\`
> 
> \*\*Steps to Recreate:\*\*
> 1. Create a new user with the same name as an existing user
> 2. Save the record
> 3. See error
> 
> \[Specify 7 Crash Report - 2023-08-16T20 37 47.698Z.txt\](https://github.com/specify/specify7/files/12363312/Specify.7.Crash.Report.-.2023-08-16T20.37.47.698Z.txt)
> 
> \*\*Reported By:\*\* Carmella at UMass
> 
> \`v7.8.13\` and \`v7.9\`

You should be able to update the existing ‘Specifysupport’ user instead of creating a new one!
