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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Importing from a CSV file *** SOLVED ***
Pages: [1]

Author Topic: Importing from a CSV file *** SOLVED ***  (Read 1259 times)

DamianBunn

  • Guest
Importing from a CSV file *** SOLVED ***
March 10, 2009, 08:22:35 am
I have been trying to import from a CSV file a list of contacts. No matter what I do I get the following error:

Database Error Code: Column 'id' in field list is ambiguous, 1052

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => SELECT id
                FROM dedupe JOIN civicrm_contact USING (id)
                WHERE contact_type = 'Individual'
                GROUP BY id HAVING SUM(weight) >= 10
                ORDER BY SUM(weight) desc [nativecode=1052 ** Column 'id' in field list is ambiguous]
    [type] => DB_Error
    [user_info] => SELECT id
                FROM dedupe JOIN civicrm_contact USING (id)
                WHERE contact_type = 'Individual'
                GROUP BY id HAVING SUM(weight) >= 10
                ORDER BY SUM(weight) desc [nativecode=1052 ** Column 'id' in field list is ambiguous]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT id
                FROM dedupe JOIN civicrm_contact USING (id)
                WHERE contact_type = 'Individual'
                GROUP BY id HAVING SUM(weight) >= 10
                ORDER BY SUM(weight) desc [nativecode=1052 ** Column 'id' in field list is ambiguous]"]


This is really frustrating as there is nothing complicated about the CSV file, and there are only 200 records.

Does anyone have a clue what could be going wrong here.

Rgds

Damian
« Last Edit: March 13, 2009, 06:42:04 am by DamianBunn »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Importing from a CSV file
March 10, 2009, 08:40:22 am

this is a mysql error and occurs in some older versions of mysql. You might want to upgrade / ask your host to upgrade to a more recent version. What version of mysql are you using?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

DamianBunn

  • Guest
Re: Importing from a CSV file
March 13, 2009, 06:39:02 am
That resolved upgrading MYSQL and PHP. SHould have read the pre reqs

Thanks

Damian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Importing from a CSV file *** SOLVED ***

This forum was archived on 2017-11-26.