Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.3.3
-
Fix Version/s: 3.3.4
-
Component/s: CiviReport
-
Labels:None
Description
Running report preview with fields: Start Date, End Date, Case Status, Case Type and Last Action Date filter Choose Date Range "From" filled in only (1994-02-01 in my case) renders following error:
Database Error Code: Unknown column 'activity_civireport.activity_date_time' in 'where clause', 1054
Additional Details:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -19
[message] => DB Error: no such field
[mode] => 16
[debug_info] => SELECT SQL_CALC_FOUND_ROWS case_civireport.id as civicrm_case_id, case_civireport.subject as civicrm_case_subject, case_civireport.start_date as civicrm_case_start_date, case_civireport.end_date as civicrm_case_end_date, case_civireport.status_id as civicrm_case_status_id, case_civireport.case_type_id as civicrm_case_case_type_id, GROUP_CONCAT(contact_civireport.display_name ORDER BY contact_civireport.display_name )
as civicrm_contact_display_name, contact_civireport.id as civicrm_contact_id
FROM civicrm_case case_civireport
LEFT join civicrm_case_contact case_contact_civireport on case_contact_civireport.case_id = case_civireport.id
LEFT join civicrm_contact contact_civireport on contact_civireport.id=case_contact_civireport.contact_id
LEFT JOIN civicrm_address address_civireport
ON contact_civireport.id = address_civireport.contact_id AND
address_civireport.is_primary = 1
WHERE ( activity_civireport.activity_date_time >= 19940201000000 ) GROUP BY case_civireport.id LIMIT 0, 50 [nativecode=1054 ** Unknown column 'activity_civireport.activity_date_time' in 'where clause']
[type] => DB_Error
[user_info] => SELECT SQL_CALC_FOUND_ROWS case_civireport.id as civicrm_case_id, case_civireport.subject as civicrm_case_subject, case_civireport.start_date as civicrm_case_start_date, case_civireport.end_date as civicrm_case_end_date, case_civireport.status_id as civicrm_case_status_id, case_civireport.case_type_id as civicrm_case_case_type_id, GROUP_CONCAT(contact_civireport.display_name ORDER BY contact_civireport.display_name )
as civicrm_contact_display_name, contact_civireport.id as civicrm_contact_id
FROM civicrm_case case_civireport
LEFT join civicrm_case_contact case_contact_civireport on case_contact_civireport.case_id = case_civireport.id
LEFT join civicrm_contact contact_civireport on contact_civireport.id=case_contact_civireport.contact_id
LEFT JOIN civicrm_address address_civireport
ON contact_civireport.id = address_civireport.contact_id AND
address_civireport.is_primary = 1
WHERE ( activity_civireport.activity_date_time >= 19940201000000 ) GROUP BY case_civireport.id LIMIT 0, 50 [nativecode=1054 ** Unknown column 'activity_civireport.activity_date_time' 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 SQL_CALC_FOUND_ROWS case_civireport.id as civicrm_case_id, case_civireport.subject as civicrm_case_subject, case_civireport.start_date as civicrm_case_start_date, case_civireport.end_date as civicrm_case_end_date, case_civireport.status_id as civicrm_case_status_id, case_civireport.case_type_id as civicrm_case_case_type_id, GROUP_CONCAT(contact_civireport.display_name ORDER BY contact_civireport.display_name )
as civicrm_contact_display_name, contact_civireport.id as civicrm_contact_id
FROM civicrm_case case_civireport
LEFT join civicrm_case_contact case_contact_civireport on case_contact_civireport.case_id = case_civireport.id
LEFT join civicrm_contact contact_civireport on contact_civireport.id=case_contact_civireport.contact_id
LEFT JOIN civicrm_address address_civireport
ON contact_civireport.id = address_civireport.contact_id AND
address_civireport.is_primary = 1
WHERE ( activity_civireport.activity_date_time >= 19940201000000 ) GROUP BY case_civireport.id LIMIT 0, 50 [nativecode=1054 ** Unknown column 'activity_civireport.activity_date_time' in 'where clause']"]
)