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 (Moderator: Dave Greenberg) »
  • Error when trying to export
Pages: [1]

Author Topic: Error when trying to export  (Read 1954 times)

Twill244

  • I’m new here
  • *
  • Posts: 3
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Joomla
  • MySQL version: 14.14
  • PHP version: 5.3.25
Error when trying to export
February 24, 2014, 02:33:21 pm
Hi Everyone,

I am hoping to find some help for an error that I keep receiving when I try to export an Advanced Search of my contacts.
After I select my criteria in the Advanced Search, I am able to see all of the results just fine. The error occurs when I try to export those results. This happens both when I choose "Export PRIMARY fields" and "Select fields for export". Please see below for the complete error message. Any help or guidance would be greatly appreciated.

<div id="crm-container" class="crm-container" lang="en" xml:lang="en"> <style type="text/css" media="screen">@import url(/administrator/components/com_civicrm/civicrm/css/civicrm.css);</style> <style type="text/css" media="screen">@import url(/administrator/components/com_civicrm/civicrm/css/extras.css);</style> <div class="messages status no-popup"> <div class="icon red-icon alert-icon"></div> <span class="status-fatal">Sorry but we are not able to provide this at the moment.</span> <div class="crm-section crm-error-message">No records to export</div> <p><a href="http://ace.nd.edu/administrator/" title="Main Menu">Return to home page.</a></p> </div> </div> <script language="JavaScript"> function toggle( element ) { var className = element.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } } </script>

Thanks,
twill244

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error when trying to export
February 26, 2014, 07:50:15 am
Can you enable debugging and try again?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Twill244

  • I’m new here
  • *
  • Posts: 3
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Joomla
  • MySQL version: 14.14
  • PHP version: 5.3.25
Re: Error when trying to export
February 26, 2014, 09:11:36 am
Thanks Hershel! I enabled debugging and tried again, but received the same error.

Here are the exact steps that I took, as perhaps they could invite some more insight into a solution.

1. In Advanced Search, I select a group from the Basic Search area.
2. In the Address Fields area, I then enter a ZIP /Postal Code and a number of miles under the "Find contacts within" box and hit Search.
3. I am then presented with the results, at which point I select all of them (a total of 130) and then choose "Export Contacts" from the drop-down menu.
4. I then hit "Go" and am presented with the error from my original post.

One final note: It seems as if the entry of the number of miles is what is throwing the error. I tried it without entering a value in the "Find contacts within" box and was successfully able to export the contacts.

Thanks again,

twill244



Twill244

  • I’m new here
  • *
  • Posts: 3
  • Karma: 1
  • CiviCRM version: 4.4.4
  • CMS version: Joomla
  • MySQL version: 14.14
  • PHP version: 5.3.25
Re: Error when trying to export
February 28, 2014, 12:58:07 pm
Hi Everyone,

I just wanted to update the thread with some additional information. I was able to export contacts successfully in versions 4.3.5, 4.3.6 and 4.3.7. It was not until I went to version 4.4.0 that the error started to occur.

Thanks as always for any help you can offer,

twill244

kdas

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
Re: Error when trying to export
March 10, 2014, 02:34:21 pm
I get the error too in Export (at last step) after upgrading to 4.4.4 from 4.3.4.

The Advance search included zip code radius.

Error:
"Sorry but we are not able to provide this at the moment.
No records to export
Return to home page."

As a temporary workaround I added the selected contacts to a new temporary group. Did the search gain and then I was able to export.

This used to work in 4.3.4.

aeszq

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 0
Re: Error when trying to export
April 27, 2014, 06:59:12 pm
I have got the same issue after CiviCRM was upgrade to v4.4.5. Same error message appears even when the debugging mode is enabled.

The PHP error message was "Notice: Undefined variable: exportTempTable in CRM_Export_BAO_Export::exportComponents() (line 1089 of /sites/all/modules/civicrm/CRM/Export/BAO/Export.php"
« Last Edit: April 27, 2014, 07:22:16 pm by aeszq »

craftee123

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Re: Error when trying to export
May 20, 2014, 08:09:10 pm
We are having the same problem using 4.4.5 for WordPress.

There is an issue tracker for the issue that suggests it's resolved, but that is not the case for us:
https://issues.civicrm.org/jira/browse/CRM-14317

Steps to reproduce:

1. In Advanced Search in the Address Fields area, I enter a Postal Code and a number of miles under the "Find contacts within" box and hit Search.
2. I am then presented with the results, at which point I select all of them and then choose "Export Contacts" from the drop-down menu.
3. On the next screen, I hit "Continue" to export primary fields with no merge.
4. I get the following error:

Quote
backTrace

#0 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(315): CRM_Core_Error::backtrace()
#1 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Export/BAO/Export.php(1129): CRM_Core_Error::fatal("No records to export")
#2 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Export/Form/Select.php(428): CRM_Export_BAO_Export::exportComponents(TRUE, (Array:0), (Array:7), "sort_name asc", NULL, NULL, 1, NULL, "civicrm_task_action_temp_ab6df1d45320d8e35ca7d98d8f0d5269_4733", 0, 0, (Array:11), "AND")
#3 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(261): CRM_Export_Form_Select->postProcess()
#4 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php(160): CRM_Core_Form->mainProcess()
#5 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php(60): CRM_Core_StateMachine->perform(Object(CRM_Export_Form_Select), "next", "Next")
#6 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Export_Form_Select), "next")
#7 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Export_Form_Select), "next")
#8 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(339): HTML_QuickForm_Page->handle("next")
#9 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(323): CRM_Core_Controller->run((Array:4), (Array:0))
#10 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:13))
#11 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#12 /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm.php(470): CRM_Core_Invoke::invoke((Array:4))
#13 [internal function](): CiviCRM_For_WordPress->invoke("")
#14 /home/tcadp/www/www/wp-includes/plugin.php(470): call_user_func_array((Array:2), (Array:1))
#15 /home/tcadp/www/www/wp-admin/admin.php(211): do_action("toplevel_page_CiviCRM")
#16 {main}

Warning: Cannot modify header information - headers already sent by (output started at /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php:456) in /home/tcadp/www/www/wp-includes/option.php on line 747

Warning: Cannot modify header information - headers already sent by (output started at /home/tcadp/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php:456) in /home/tcadp/www/www/wp-includes/option.php on line 748

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Error when trying to export

This forum was archived on 2017-11-26.