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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Joomla 1.5 CSV import errors
Pages: [1]

Author Topic: Joomla 1.5 CSV import errors  (Read 2430 times)

dantheafrican

  • Guest
Joomla 1.5 CSV import errors
March 11, 2009, 02:19:51 am
Hi, I am trying to import a csv file. The file uploads fine and I set the field mapping. After clicking Import now, I am receiving this error - "Sorry. A non-recoverable error has occurred." 

Here is the backtrace

Mar 11 10:04:33  [info] $Fatal Error Details = Array
(
    [message] => We experienced an unexpected error. Please file an issue with the backtrace
   
Code: [Select]
=>
)


Mar 11 10:04:33  [info] $backTrace = /var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 265
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php, fatal, 708
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Import/Parser/Contact.php, getFieldValue, 497
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Import/Parser.php, import, 379
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Import/Form/Preview.php, run, 311
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, postProcess, 247
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 232
/var/clients/client1/web6/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 197
/var/clients/client1/web6/web/administrator/components/com_civicrm/admin.civicrm.php, invoke, 45
/var/clients/client1/web6/web/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 22
/var/clients/client1/web6/web/libraries/joomla/application/component/helper.php, require_once, 162
/var/clients/client1/web6/web/administrator/includes/application.php, renderComponent, 136
/var/clients/client1/web6/web/administrator/index.php, dispatch, 67
/var/clients/client1/web6/web/administrator/index2.php, include, 14

As recommended in another thread I have deleted all rows in the csv except 1 and the error is still showing. I have tried importing this file into the demo site (drupal) and it works fine. Could this be a permissions error?

Using CiviCRM 2.1.6 & Joomla 1.5.9 running on Ubuntu 8.04 server
Thanks for any assistance

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Joomla 1.5 CSV import errors
March 11, 2009, 06:29:11 am
hi,

IMO this is due to "external identifier" field have been mapped for import and value for this field is zero or null string in CSV file.
We did some code enhancement/fixes  related to external identifier in v2.2 issues are here CRM-4148,  CRM-4111

To Fix for v2.1.6 go to CRM/Import/Parser/Contact.php line around 492
Code: [Select]
if ( isset( $params['external_identifier'] ) && ($onDuplicate != CRM_Import_Parser::DUPLICATE_UPDATE) ) {change to
Code: [Select]
if ( CRM_Utils_Array::value( 'external_identifier', $params ) && ($onDuplicate != CRM_Import_Parser::DUPLICATE_UPDATE) ) {
kiran
« Last Edit: March 11, 2009, 06:34:39 am by kiran »
You Are Designed To Choose... Defined By Choice.

dantheafrican

  • Guest
Re: Joomla 1.5 CSV import errors
March 11, 2009, 07:59:28 am
Awesome, that did it - Thanks!  ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Joomla 1.5 CSV import errors

This forum was archived on 2017-11-26.