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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Results Different From Export
Pages: [1]

Author Topic: Search Results Different From Export  (Read 1029 times)

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Search Results Different From Export
January 19, 2011, 06:10:28 am
I have seen a problem with search results twice with the current installation I'm working with.

First, when I search for contacts that have made a complete contribution on a specific date, I get 146 results.  However, when I try to print PDF letters for all the returned records, the resulting PDF only has 133 contacts.  I noticed that there are only 45 records displayed on the first page, even though it says "Contact 1 - 50 of 146", there 44 on the second, and 45 on the last.

Second, when doing a search to find all complete contributions between two dates, I get 362 records, but when exported, I see that there are 377 records in the CSV file.

When I do a SQL query directly on the database, it gives me 339 records.

I've looked at all the data several times trying to see a reason or pattern, but no avail.  perplexing.

Thanks in advance for any help.

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Re: Search Results Different From Export
January 19, 2011, 06:18:57 am
I forgot to mention - I'm using version 3.2.4 with Joomla on an Ubuntu Server (php 5.3)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Search Results Different From Export
January 19, 2011, 06:52:23 am
Sorry, not sure to understand. Is this using the api or regular searches ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Re: Search Results Different From Export
January 19, 2011, 06:59:18 am
Hi Xavier,  these are just regular searches, no custom code or hooks used anywhere in the installation.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Search Results Different From Export
January 19, 2011, 10:19:18 am
Hi,

A customer has reported the same problem on 3.2.5 although we have not investigated it. When they removed a nested group from the search criteria (one that contains groups and is contained by another group) the search appeared to become accurate
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Search Results Different From Export
January 20, 2011, 01:23:36 am
Eileen , simonium ,

There was issue similar to the above behaviour. :
the issue is http://issues.civicrm.org/jira/browse/CRM-6355 .

HTH

Rahul.
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Re: Search Results Different From Export
January 20, 2011, 01:44:10 am
Thanks Rahul, Eileen.

The difference between my problem and the above problem is that I'm not using groups. 

Do you think if I upgrade from 3.2.4 it would resolve the issue?

Simon.

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Search Results Different From Export
January 20, 2011, 02:10:52 am
Simon,

The issue is fixed for  3.4, so upgrading to 3.2.4 will not help. I would recommend you to try the patch

https://fisheye2.atlassian.com/viewrep/CiviCRM/trunk/CRM/Contact/BAO/Query.php?r1=30964&r2=31070
 
May be you can get your issue resolved.


HTH
Rahul.
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

simonium

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 2
Re: Search Results Different From Export
January 20, 2011, 04:03:07 am
Thanks Rahul,

I applied the patch but unfortunately it made no difference at all.  My search results for contributions show 362 records, but exported file shows 378, meanwhile the pagination is still showing 45 contacts per page when it showing be showing 50, when I search for contacts that made contributions on a specific date.

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: Search Results Different From Export
January 21, 2011, 03:35:29 am
This one is concerning to me so I have tried to reproduce it on the demo site, but all of the exports match the search results.  Having said that, it is worth noting that the demo install only has 13 contribution records, all completed. 


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Results Different From Export

This forum was archived on 2017-11-26.