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) »
  • Smart group missing contacts. Show up if you click on the letter to limit list
Pages: [1]

Author Topic: Smart group missing contacts. Show up if you click on the letter to limit list  (Read 682 times)

questions

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Durpal, 7
  • MySQL version: 5.1
  • PHP version: 5.3
Smart group missing contacts. Show up if you click on the letter to limit list
January 28, 2011, 11:53:41 am
I have a smart group made up of a number of other smart groups.  These groups are based upon membership.

I'm exporting them (about 3,000 contacts) and noticed some people were missing.  I went back to the group and clicked on the letter of someone I knew was missing.  They showed up.   I queried up the group again and then pressed next until I got the to place where the person should be, missing.

Something about how the query is changed with restricting it to a letter causes the missing people to show up. 

My guess is there is something about these people, about 50 out of 3,000, that is different.

I guess my first question is has this been seen before and is there a solution?

Barring that, I have a lot of sql experience but not a lot of civi experience.  I'd like to see the raw query that is being run for pulling the entire group and how it changes when just pulling it up for a letter.  Is there an easy way to get these queries?   I can find the basis for the smart group query in civi_groups but not knowing how it assembles the final query that really doesn't help much.

So is the final sql being run cached someplaced?

Thanks

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Smart group missing contacts. Show up if you click on the letter to limit list
June 20, 2011, 02:37:43 pm
I'm experiencing this same issue. I'm only working with a small number of test records. None were added manually to the smart group.

When I go to the smart group and click on contacts, I get one record (expecting 3). If I click to Edit the Smart Group Search Criteria, it brings me to the advanced search page with the smart group criteria filled in and shows the 3 records I expect.

Have you found an answer to this? Why would records be missing from smart groups?

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Smart group missing contacts. Show up if you click on the letter to limit list
June 22, 2011, 07:10:25 am
Hi,

I am experiencing the same issue on 3.4.3

Smart group shows 2 records when you do a contact search in group 'xx' but when you edit criteria you see all 24 as it should be.

Any progress?

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Smart group missing contacts. Show up if you click on the letter to limit list
June 24, 2011, 05:21:58 am
I upgraded yesterday to the latest 4.x version (4.0.4) and the records that were missing from the smart group I was testing are no longer missing. I don't know if code has been fixed or if the upgrade flushed some sort of cache, but at this point, I'm seeing what I expect to see.

If I run into the issue again, I'll re-post.

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Smart group missing contacts. Show up if you click on the letter to limit list
August 03, 2011, 09:06:59 am
Help! I'm having exactly this problem, and it's wreaking havoc on our ability to function as an organization.

We're divided into regional subgroups, and each subgroup has a president that has database permissions to view and contact the members in their region (generated by smart group). When I go to Manage Groups, and click to view the contacts in our New York region, I see 154 contacts. When I go to Find Contacts and select that smart group from the groups menu, I see 4 contacts. (Or sometimes 45. Or sometimes 70. I can keep clicking search over and over and get different sets of results.) If I click on the letter one of the last names, contacts show up who weren't on the original list. So, for instance, if Civi is telling me there are 4 people in the New York group (which should have 154) -- and one of them has a last name starting with P. If I click on the P, I see 7 names. If I click on "All", I might get a list of 45 or 50 people. Ack!

The problem this causes is that our regional presidents aren't able to access their members, because the permissioning is based on these groups, and they aren't functioning. So we're not able to do our annual membership renewal at the moment, or even routine correspondence.

Any thoughts or suggestions would be MOST welcome.

AudreyKate

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.24
Re: Smart group missing contacts. Show up if you click on the letter to limit list
August 03, 2011, 09:37:01 am
Just to add to my own post, I'm wondering if it has anything to do with proximity searching. These groups are based on proximity searches, and that seems to be malfunctioning as well. When search by, say, 50 miles from NYC, I get 145 contacts, but when I click to see page two, Civi tells me there are no contacts matching my search criteria.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Smart group missing contacts. Show up if you click on the letter to limit list

This forum was archived on 2017-11-26.