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) »
  • Overlapping External IDs
Pages: [1]

Author Topic: Overlapping External IDs  (Read 755 times)

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Overlapping External IDs
November 10, 2011, 07:12:23 am
I am coming from a DB where the Primary Key index started at the same number for both organizations and individuals.  Does the external identifier field distinguish between the two types, so that duplicate values can exist between an org and and an individual?  Say external id of both could be 54 but one refers to the value of 54 only when doing imports related to orgs and the other related to imports of individuals?  Just trying to get a grasp on how I might conquer my import project.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

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: Overlapping External IDs
November 10, 2011, 07:20:22 am

It does not distinguish between the two types. One workaround might be to prefix your external id before import, so you have:

ORG-53 and IND-54

i did the above and it worked quite well when i had a similar situation with overlapping ids :)

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

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: Overlapping External IDs
November 10, 2011, 07:50:19 am
Thanks for the idea. Was hoping that it did but I guess it will take a bit more time to import but not too much.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Overlapping External IDs

This forum was archived on 2017-11-26.