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 Import (Moderator: Yashodha Chaku) »
  • Changing phone numbers to primary using export/import, but fails
Pages: [1]

Author Topic: Changing phone numbers to primary using export/import, but fails  (Read 405 times)

Flying

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
    • Mission Aviation Fellowship - Norway
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7
  • MySQL version: I am an end-user, why should I care about MySQL-versions?
  • PHP version: I don't (want to) know...!
Changing phone numbers to primary using export/import, but fails
November 20, 2014, 11:37:15 pm
Hi all!

I followed this excellent advice on how to change which phone number that are primary.

http://forum.civicrm.org/index.php/topic,21235.msg117772.html#msg117772

However, I have some phone numbers in the database that are set only with phone location, and not type.
That is;
12345678 Home mobile (this is the preferred case)
23456789 Home            (this causes the problem)

When I am trying to import the phone numbers back into Civi, I don't get the first row of import to be primary, because numbers like "23456789 Home" is still present in Civi, blocking the way for the imported ones to be primary.

The sensible solution would be to first update "23456789 Home" to be an empty field, but I cannot do that, since the import wizard only allows me to do import if I select both phone location and phone type.

Anyone got any good ideas?

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Changing phone numbers to primary using export/import, but fails
November 21, 2014, 08:17:14 am
I thought that both phone type and location were required fields.  Is there something about your situation that makes not having a phone type desirable?  If not, perhaps use "Batch Update Via Profile" or a SQL query to set all the phone types, then proceed with the export/import?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Flying

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
    • Mission Aviation Fellowship - Norway
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7
  • MySQL version: I am an end-user, why should I care about MySQL-versions?
  • PHP version: I don't (want to) know...!
Re: Changing phone numbers to primary using export/import, but fails
November 23, 2014, 10:38:26 am
No, it is not desirable, but a fault after earlier (SQL-)import.

I ended up exporting all numbers from the SQL,
then rearranging them using Excel,
then deleting all numbers using SQL,
and then re-importing only the mobile numbers, using the import-UI

Maybe I will import the land-lines later on as well.



A major problem for me was that if you have phone numbers without a type, then it is not possible to search or export them in the UI, but only possible to view them in the contact summary of each contact...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Changing phone numbers to primary using export/import, but fails

This forum was archived on 2017-11-26.