Title: Error message on duplicate key
Last modified: August 5, 2019

---

# Error message on duplicate key

 *  Resolved [Merlin Silk](https://wordpress.org/support/users/merlinsilk/)
 * (@merlinsilk)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/)
 * I got quite a bit further on my quest to maintain a mailing list on a WP site.
   As I want an email to be in that list only once I have a unique key on the column
   Email.
    And it works because I get an error when I try to add a record with an
   already existing email. But the message I get is: ERROR: Wrong arguments [missing
   primary key value] which is at least misleading. When I try to add the same record
   in phpmyadmin I get an error that tells me what went wrong – something like duplicate
   key. Is there a way to get better error messages for something like this? Cheers,
   Merlin

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/#post-11818514)
 * Hi Merlin,
 * I am on a holiday and have no laptop with me. I will be back on tuesday and try
   to answer your question asap.
 * Best regards,
    Peter
 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/#post-11826866)
 * Hi Merlin,
 * Good point!!! I was able to reconstruct this issue. Thank you for bringing this
   up.
 * I changed the behaviour of the form flow and must have missed this. I will need
   to do some reconstruction work here. I’ll inform you when this is done and get
   back to you for the basic tutorial question as well.
 * Thank you Merlin!
 * Best regards,
    Peter
 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/#post-11830158)
 * Hi Merlin,
 * The error is fixed in release 2.5.2. Unfortunately I had to deploy release 2.5.1
   yesterday as some users were having serious web site issues with it. I don’t 
   think it’s a good idea to deploy 2.5.2 the next day, so I’ll wait a little and
   add some more fixes and features before I’ll put it online.
 * If you like to use the new version directly, you can download it from bitbucket
   and install it from a zip. Just let me know if you need any help!
 * Thanks again for bringing up this important issue!
 * Best regards,
    Peter
 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/#post-11947494)
 * Hi Merlin,
 * Just wanted to let you know that I released a new version yesterday in which 
   the error of this forum topic is fixed. Thanks again for pointing out this issue!
 * Best regards,
    Peter
 *  Thread Starter [Merlin Silk](https://wordpress.org/support/users/merlinsilk/)
 * (@merlinsilk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/#post-12018507)
 * Perfect – works nicely now.
    Cheers, Merlin

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error message on duplicate key’ is closed to new replies.

 * ![](https://ps.w.org/wp-data-access/assets/icon-256x256.png?rev=3299063)
 * [WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards](https://wordpress.org/plugins/wp-data-access/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-data-access/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-data-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-data-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-data-access/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Merlin Silk](https://wordpress.org/support/users/merlinsilk/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-message-on-duplicate-key/#post-12018507)
 * Status: resolved