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 (Moderator: Dave Greenberg) »
  • Weird Import Issues
Pages: [1]

Author Topic: Weird Import Issues  (Read 3974 times)

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Weird Import Issues
October 19, 2010, 04:23:30 pm
I keep getting this error on import:
CiviCRM has detected mismatched contact IDs. These records have not been updated.
You can Download Mismatched Contacts. You may then correct them, and import the new file with the corrected data.

The downloaded sheet states: Related contact required fields are missing.

Weird thing is I am not importing Internal Contact ID numbers with the new import info. I even get this error when I select No Duplicate Checking. Never had this problem before. Anyone knows what is going on? Please help!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Weird Import Issues
October 19, 2010, 05:08:06 pm
are you trying to create relationships during the import?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Re: Weird Import Issues
October 19, 2010, 05:55:12 pm
Only an Employee of > Organization Name relationship

Never had problems with it before

Please explain?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Weird Import Issues
October 19, 2010, 06:06:08 pm
Do any of your rows have NULL data in the Org Name column?

If so maybe split your import to a table that all rows have Org Name, and another that does not?

let me know if that helps
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Weird Import Issues
October 19, 2010, 11:41:07 pm
Hello David,

Could you please provide your .csv file w/ some sample set of records and import field mapping.
Also for which civicrm version you are getting this behavior ?
you might want to confirm w/ our public demo site.

Thanks,
Kiran
You Are Designed To Choose... Defined By Choice.

David L

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 2
Re: Weird Import Issues
October 20, 2010, 11:18:01 am
Peter was correct, the records with the 'Mismatched Contact ID' were the records with NULL as the Organization Name. Importing the sheet in two batches (contacts with an organization and contacts without) corrected everything.

This has never been an issue before I upgraded to 3.2.2

I don't know if this is strictly speaking a bug, but it definitely doesn't seem the ideal way to run imports. When importing thousands of records you are always going to have records without a company/organization name.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Weird Import Issues
October 21, 2010, 01:20:16 am
Hello David,

If I'm not wrong, in previous versions for your case when organization name is null,
we did create a blank related contact record and a relationship w/ main contact.
( I think which is logically meaningless, since we don't have any data w/ related contact ) 

now to fix this case what we decided, lets give user a message and skip those rows since later user might going to correct data.

hope it make sense.

kiran
You Are Designed To Choose... Defined By Choice.

alanms

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Weird Import Issues
October 28, 2010, 04:02:44 am
Running into identical issues, I agree that this is highly unintuitive. It beats creating blank records, but I really don't want to need to present my end users with a small "How to do imports" book describing the numerous conditions under which they need to break lists down into smaller lists and the numerous intimidating error messages which they should be prepared to encounter on a regular basis during seemingly ordinary imports.

This probably wouldn't be a problem if the message displayed was clearer. If it's leaving developers and experienced CiviCRM implementers baffled, to an ordinary user it must sound impossibly technical, when actually what's happening should be really easy for anyone to understand and fix.

Where a contact reference field is blank rather than mismatched, I can't see any problems with a more helpful plain-English message like,

"There were rows where [Employee of - Organisation Name] was missing. In case this is a mistake, these rows were not imported.
If you would like to import these rows anyway, please download and re-import the following file, which contains only these rows, and leave [Employee of] out of the import".

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Weird Import Issues
October 28, 2010, 10:37:49 pm
Hello alanms,

I really appreciate your valuable feedback to improve the error/status message.

Could you please file an issue with jira and attached the patch which would fix the issue.

thanks,

kiran

You Are Designed To Choose... Defined By Choice.

sypl

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 1
Re: Weird Import Issues
December 06, 2010, 08:12:38 pm
Agreed, really weird way of handling the issue. Especially confusing as it only seems to have happened after an upgrade.

kenlyle

  • I post occasionally
  • **
  • Posts: 116
  • Karma: 7
Re: Weird Import Issues
June 17, 2012, 06:16:10 pm
I am still seeing this behavior in Civi 4.1.2, today, in Joomla.  I see above what the cause is, but, like the previous poster, I am going to have to explain this to the client.  It really would be nice if the message were something friendlier and more informative.

For reference, I am trying to create Household, Spouse, and Employer relationships in a single import, so not sure how to break up the file, as suggested.

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: Weird Import Issues
June 17, 2012, 07:57:50 pm

Hey ken:

any chance u can take a look at the code and see if you can make the message friendlier and more informative

Will help your client AND all the other folks who download and use civi

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

commonpike

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.4.6
  • CMS version: drupal 7.13
  • MySQL version: 5
  • PHP version: 5
Re: Weird Import Issues
October 12, 2014, 07:33:27 am
I'm having this error in 2014. It seems the contacts are imported though, even if I get errors about the missing organisation.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Weird Import Issues
October 12, 2014, 12:49:14 pm
Are you importing rows of contacts, and only some of them have an 'employee of' organisation?
hence the 'errors' are the import reporting back to you that you had included the column to create the relationship, but that for some of those rows it was empty.

if so getting an error seems correct since the import mapping is saying 'look at column x and create a relationship between Individual A and Organisation B' but then no data is provided for Org B.

Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

commonpike

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.4.6
  • CMS version: drupal 7.13
  • MySQL version: 5
  • PHP version: 5
Re: Weird Import Issues
December 03, 2014, 08:43:17 am
Looking at this thread again today forgetting that I posted here myself 3 months ago :-)

So yes, the message "CiviCRM has detected mismatched contact IDs. These records have not been updated." can mean, in 2014/12, CiviCRM imported the contacts fine. Below it, the message "Mismatched Rows (skipped)" does not mean the imported contacts are skipped, and the big red letters saying "(NOT updated). <" next to that can mean all is probably well  ;D

The process is fine and yes, a warning is in place here - since you specified a relation and it could not be created.
Maybe the displayed texts should be .. less alarming.





 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Weird Import Issues

This forum was archived on 2017-11-26.