Title: Primary key issue
Last modified: June 22, 2020

---

# Primary key issue

 *  Resolved [valerykuz](https://wordpress.org/support/users/valerykuz/)
 * (@valerykuz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/)
 * hi, I added a primary key and set the following as TRUE
    1.Do not update entry,
   if already exists 2.Do not create new entry in Zoho
 * I tried to send a contact form with fake email that is not registered in our 
   Leads and got an error on your logs “ENTRY DOES NOT EXISTS”
 * why it is not working? i do not want to create new lead if i already have one
   with the same email, seems like the checkbox is causing some troubles

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

 *  Plugin Author [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/#post-13018910)
 * it is message from plugin that “ENTRY DOES NOT EXISTS” and plugin did not create
   new entry.
    because you have set “Do not create new entry in Zoho”
 *  Thread Starter [valerykuz](https://wordpress.org/support/users/valerykuz/)
 * (@valerykuz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/#post-13019315)
 * this is very confusing, it is set not to create new entry when primary key is
   duplicate if i understand it correctly.
    this is set on the primary key tab, 
   and i tested an email that is not registered and gt an error and the Lead was
   not created
 *  Plugin Author [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/#post-13019343)
 * “Do not create new entry in Zoho” is dependent on primary key, where we should
   place it
 *  Thread Starter [valerykuz](https://wordpress.org/support/users/valerykuz/)
 * (@valerykuz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/#post-13019369)
 * ok so what happens if i already have a lead with same email? will you create 
   dup?
    for my logic it says “if you see Lead in CRM with same primary key do not
   create new Lead and do not update lead”
 * if it is a general setting that not creates new entry it needs to be as general
   setting.
 *  Plugin Author [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/#post-13019414)
 * if you set primary key then plugin will search for entry , it is clear [https://i.imgur.com/TNeSVOd.png](https://i.imgur.com/TNeSVOd.png)
   
   1=if entry does not exist then creates new one 2=if entry exists then updates
   it
 * You can disable both with those checkboxes

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

The topic ‘Primary key issue’ is closed to new replies.

 * ![](https://ps.w.org/cf7-zoho/assets/icon-256x256.png?rev=2585030)
 * [WP Zoho for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms - CRM, Bigin](https://wordpress.org/plugins/cf7-zoho/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-zoho/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-zoho/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-zoho/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-zoho/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-zoho/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/primary-key-issue/#post-13019414)
 * Status: resolved