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) »
  • group + email count discrepancies
Pages: [1]

Author Topic: group + email count discrepancies  (Read 338 times)

apotropaic

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress 1.8
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
group + email count discrepancies
March 11, 2015, 11:44:18 pm
Hi! I'm just wondering if somebody could help me figure out how to debug some count discrepancies I'm having.

In my email newsletter group, I have 115,000 subscribers. I see this count when I am in 'Contact group search'.

When I go to actually schedule a mailing, that number drops to 83,122. Where is this discrepancy happening? Also, when I try to export this group to a CSV I get the same 83,122 count.

I've checked a few things including running a simple SQL query:

Code: [Select]
SELECT DISTINCT(email.email), contact.first_name, contact.last_name
FROM civicrm_contact as contact
INNER JOIN civicrm_email as email ON email.contact_id = contact.id
INNER JOIN civicrm.civicrm_address as address ON address.contact_id = contact.id
INNER JOIN civicrm_group_contact as groups ON groups.contact_id = contact.id
WHERE groups.group_id = 2
AND contact.do_not_email = 0
AND contact.is_opt_out = 0

Just as a simple diagnostic, this comes back with just about that 110,000, which I assume is because of opt outs/unsubscribes?

But where can I get the other 20-30,000 emails that signed up for my list? Why can't I access them?

Thanks for helping me debug this!

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: group + email count discrepancies
March 15, 2015, 11:33:38 am
Your SQL isn't excluding addresses "on hold" (for bounces).  Also, does your number change if you uncheck the box on the first page of a mailing that says "don't send duplicates to the same e-mail address"?  Though that shouldn't be too many folks unless you've got a really odd constituent base.

Finally - is this a smart group?  You might want to make sure your "rebuild smart groups" scheduled job is running.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • group + email count discrepancies

This forum was archived on 2017-11-26.