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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.1 Release Testing »
  • Search Builder broken - returns multiple instances of contact record
Pages: [1]

Author Topic: Search Builder broken - returns multiple instances of contact record  (Read 1857 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Search Builder broken - returns multiple instances of contact record
January 11, 2010, 05:28:09 pm
Working with custom fields for imported records I have assigned to a group - 13,075 records in total.

I perform a search for records including a particular value in a field; in this case, Party Enrollment = DEM.

System returns 17,523 results, with each found record repeated six (6) times.

Summary: Search Builder returns multiple repeated contacts instead of single contact instance.

Severity: High - Search is not usable as is.

Any ideas? Hope this helps!

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: Search Builder broken - returns multiple instances of contact record
January 11, 2010, 08:24:39 pm

can u reproduce this with a smaller subset on the sandbox machine

search builder in general is not a complete and well flushed out solution. it has quite a few weaknesses and holes (and probably a few bugs too). would be great if you/other folks in the community can step up and help improve it, either by contributing patches / improvements and/or sponsoring a developer / core team to work on it

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

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Search Builder broken - returns multiple instances of contact record
January 12, 2010, 07:33:30 am
Unfortunately, I was not able to reproduce this on the sandbox using a subset of 500 records. Grrr...

In looking at the repeated records on my site, though, I see something of a pattern in the search results: e.g., only one of the repeated results will show the country (United States, which is default and not a field in the imported data), one will show the address and not the state, another will show address and state, without the country, etc.)

So a temporary workaround may be to include fields in the search builder that one would normally think unnecessary. In my case, this seems to do the trick.

This is a tough one insofar as it takes so much time to do the import. If you have any ideas why Search Builder might output multiple values and where I ought to look, perhaps I can poke around while I have the data living on the site - the objective is to ultimately have over 300,000 records, so I won't be going further here until I can figure out what's going on. (Or am I crazy to try?)

Import progress status is definitely broken, as per this post -  http://forum.civicrm.org/index.php/topic,11621.0.html - but that's another issue.

Thanks much for the response - I hope this is helpful!

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: Search Builder broken - returns multiple instances of contact record
January 12, 2010, 08:06:16 am

if i had to guess the multiple imports potentially created different addresses with the same/different location types. You might have multiple primary addresses for the same contact.

you will need to check the mysql log and see the queries and figure out what records were created, why and how. If you are not familiar with php/mysql, you will need to hire someone from http://civicrm.org/professional/ to help out.

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

tabletguy

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
Re: Search Builder broken - returns multiple instances of contact record
January 14, 2010, 02:48:42 am
Perhaps it's related to another issue that I noticed today after installing a new test site. When setting up the new site, I selected India as the country, but it did not auto fill the "state" fields with anything. That pull down remained empty. This is a regression from beta 4, which did work.

This suggests that there's something broken about the country <-> state relationship or processing?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.1 Release Testing »
  • Search Builder broken - returns multiple instances of contact record

This forum was archived on 2017-11-26.