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 CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent Export Participants gives Duplicates
Pages: [1]

Author Topic: CiviEvent Export Participants gives Duplicates  (Read 3172 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
CiviEvent Export Participants gives Duplicates
March 26, 2008, 07:30:04 am
Using stable 2.0.1, I go to manage events and then click on the "show participants" for any event. I want to export these participants, and when I try to do that, the list it exports ends up with duplicate and quadruplicate contacts (so for each participant, it exports either 2 of them or 4 of them).

I tried to recreate this on the demo, but there is a fatal error right now on the demo when you click on "show participants" for any of the listed events :(

I think this might be a bug, but since I can't confirm on demo I thought I would post here first.

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: CiviEvent Export Participants gives Duplicates
March 26, 2008, 02:16:18 pm

This is now fixed on demo (the fatal error part). Event search still has a few open issues (event types dont seem to work) in 2.0 which we'll fix this week. However, do try to reproduce the export error and file an issue if so

thanx

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

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviEvent Export Participants gives Duplicates
March 27, 2008, 07:00:32 am
Replicated and reported: http://issues.civicrm.org/jira/browse/CRM-2916

thanks.

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: CiviEvent Export Participants gives Duplicates
March 27, 2008, 11:12:37 am

the demo database is a bit messed up and has 2 participant records for most of the cases. I'll ask piotr to regenerate the demo database from scratch. I cant reproduce this issue on localhost using civicrm_generated.mysql data

Can you give that a shot

thanx

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

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviEvent Export Participants gives Duplicates
March 27, 2008, 01:09:50 pm
You're right; my subversion installation is also fine.

However, my client's version is doing it....there are not multiple records in the database; it's the same contact_id. The dupes and quadrupes only show up in the exported file, not on the listings.

They are on 2.0.1; seems to have happened with the upgrade. I also checked exporting from Advanced search results and membership page, and there are no dupes exported with those.

Any ideas?

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: CiviEvent Export Participants gives Duplicates
March 27, 2008, 01:26:55 pm

can u check the civicrm_participant table and do an order by contact_id for that event and see if there are multiple records being displayed

is this the same db with the "groups bug"? if so i can debug both issues at the same time :)

another option is to check your mysql query log for the export SQL and restrict it to one contact and see why its returning multiple records. Will give u some good SQL experience :)

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

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: CiviEvent Export Participants gives Duplicates
March 27, 2008, 01:39:44 pm
Quote
can u check the civicrm_participant table and do an order by contact_id for that event and see if there are multiple records being displayed

They do not appear to be duplicated in the participant table.

It is the same db as the groups bug!
Quote
another option is to check your mysql query log for the export SQL and restrict it to one contact and see why its returning multiple records. Will give u some good SQL experience Smiley

this site is in semi-production, so the IT guys don't have logging enabled :(
« Last Edit: March 27, 2008, 01:46:57 pm by emilyf »

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: CiviEvent Export Participants gives Duplicates
April 16, 2008, 07:19:55 am
I just ran into this and perhaps my case can shed some light which will help to zero in on the bug.

History:
I had someone register for an event.  There was a difference between Joomla user and CCRM first names, so a new contact was created.  I noticed this when I exported participants and there was no street address for this contact.  Fixed the first name and thought I'd use the find and merge duplicates process, both for my own education and to preserve any table links, etc..  The contacts matched appropriately and I completed the merge.  I then ran a search by last name and both contacts - the full and partial display on the search list.  Selecting any of the links on the partial contact directed to display or edit the full contact.  Attempting to delete the partial contact results in "zero contacts selected" on the confirmation screen.

Situation:
CiviEvent displays the correct number of participants, but when this contact is checked and participants are exported, two lines are generated for this contact in the CSV file with the same Contact and Participant ID in each line.  The two lines only differ in that one has mailing address info in the appropriate fields and one does.  There is only one entry in the civicrm_participant table with this Contact ID.

I'm wondering if Emily's client also de-duped some contacts and if there is a relation that is being inappropriately preserved somewhere?
Lead Developer, C3 Design.
Twitter: @FatherShawn

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviEvent Export Participants gives Duplicates
April 16, 2008, 09:15:53 am
It sounds like the Duplicate Merge function might have left some orphaned child records for the "partial contact" - and this is resulting in duplicate rows on some queries. What version of CiviCRM are you running? It would be quite helpful if you could try and replicate what I suspect is a merge bug on the Drupal public demo (http://drupal.demo.civicrm.org) - and post an issue if you can make it happen there.

Also, if you can see any data in the "partial contact" (the one that should have completely disappeared after merging) that is DIFFERENT from the full contact -that might give us clues.
Protect your investment in CiviCRM by  becoming a Member!

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: CiviEvent Export Participants gives Duplicates
April 16, 2008, 09:44:07 am
The issue did duplicate on the demo, and I'll open an issue in the tracker.  On the demo, the partial record did NOT display in a contact search but it did export.

I'm still using v1.9 until we complete an event at the end of the month.
Lead Developer, C3 Design.
Twitter: @FatherShawn

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviEvent Export Participants gives Duplicates
April 17, 2008, 11:17:25 am
I reproduced this issue on my local sandbox and will work on it early next week.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

npoweradmin

  • Guest
Re: CiviEvent Export Participants gives Duplicates
September 11, 2009, 09:48:18 am
I'm having this issue as well.  What happens is a client has an event that they copy.  When pulling the export participant report on the current months event, any participants that have participated in prior months events are appearing which gives the impression of duplicates.  What I noticed is that instead of assigning a new participant id for the new event, it is using the same id as it did for the prior months event.  The prior events are disabled.  Any ideas/solutions?  Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviEvent Export Participants gives Duplicates
September 13, 2009, 06:49:31 pm
I tried to replicate this on a 3.0 install and wasn't able to do so. Can you try and replicate on the public demo which is running 2.2.8.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent Export Participants gives Duplicates

This forum was archived on 2017-11-26.