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 CiviMail (Moderator: Piotr Szotkowski) »
  • Searching for 'On Hold'
Pages: [1]

Author Topic: Searching for 'On Hold'  (Read 1122 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Searching for 'On Hold'
September 15, 2008, 08:16:15 pm
In Search Builder I can put in a search for Individual + On Hold = 1

This is good.

But if I try to extend it to find non-primary emails On Hold it falls over. I.E. if I do the above for Home instead of Primary it presents me with this. Is this behaviour to be expected? Or is there a tweak required on my search ... or ...
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name  FROM civicrm_contact contact_a
LEFT JOIN civicrm_email `Home-email` ON contact_a.id = `Home-email`.contact_id AND `Home-email`.location_type_id = 1 AND `Home-email`.is_primary = 1   
LEFT JOIN civicrm_location_type `Home-location_type` ON (  ( `Home-email`.location_type_id = `Home-location_type`.id ) )  WHERE  (  ( LOWER( `Home-address`.on_hold ) = '1' AND contact_a.contact_type IN ('Individual') )  )  AND  ( 1 )   GROUP BY contact_a.id   [nativecode=1054 ** Unknown column 'Home-address.on_hold' in 'where clause']
    [type] => DB_Error
    [user_info] => SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name  FROM civicrm_contact contact_a
LEFT JOIN civicrm_email `Home-email` ON contact_a.id = `Home-email`.contact_id AND `Home-email`.location_type_id = 1 AND `Home-email`.is_primary = 1   
LEFT JOIN civicrm_location_type `Home-location_type` ON (  ( `Home-email`.location_type_id = `Home-location_type`.id ) )  WHERE  (  ( LOWER( `Home-address`.on_hold ) = '1' AND contact_a.contact_type IN ('Individual') )  )  AND  ( 1 )   GROUP BY contact_a.id   [nativecode=1054 ** Unknown column 'Home-address.on_hold' in 'where clause']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name  FROM civicrm_contact contact_a
LEFT JOIN civicrm_email `Home-email` ON contact_a.id = `Home-email`.contact_id AND `Home-email`.location_type_id = 1 AND `Home-email`.is_primary = 1   
LEFT JOIN civicrm_location_type `Home-location_type` ON (  ( `Home-email`.location_type_id = `Home-location_type`.id ) )  WHERE  (  ( LOWER( `Home-address`.on_hold ) = '1' AND contact_a.contact_type IN ('Individual') )  )  AND  ( 1 )   GROUP BY contact_a.id   [nativecode=1054 ** Unknown column 'Home-address.on_hold' in 'where clause']"]
)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: Searching for 'On Hold'
September 15, 2008, 10:22:25 pm

filed and fixed here: http://issues.civicrm.org/jira/browse/CRM-3544

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Searching for 'On Hold'

This forum was archived on 2017-11-26.