CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • 1062 Duplicate entry 'civicrm_contacts' for key 'name' when saving views
Pages: [1]

Author Topic: 1062 Duplicate entry 'civicrm_contacts' for key 'name' when saving views  (Read 1012 times)

rogical

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
1062 Duplicate entry 'civicrm_contacts' for key 'name' when saving views
November 08, 2012, 07:36:41 am
Got the following error when using views to retrieve contacts list, thanks for any help!!

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'civicrm_contacts' for key 'name': INSERT INTO {views_view} (name, description, tag, base_table, human_name, core) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => civicrm_contacts [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => default [:db_insert_placeholder_3] => civicrm_contact [:db_insert_placeholder_4] => Civicrm Contacts [:db_insert_placeholder_5] => 7 ) in views_db_object->save_row() (line 1994 of /home/idxcanad/public_html/rah/sites/all/modules/views/includes/view.inc).

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 1062 Duplicate entry 'civicrm_contacts' for key 'name' when saving views
November 14, 2012, 06:01:58 am
Try changing the name of your View.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

rogical

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
Re: 1062 Duplicate entry 'civicrm_contacts' for key 'name' when saving views
November 14, 2012, 06:37:32 pm
yes, solved, thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • 1062 Duplicate entry 'civicrm_contacts' for key 'name' when saving views

This forum was archived on 2017-11-26.