Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10472

Extend Contact import to allow custom address fields

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently contact import fails for any provided address custom fields with the message:

      Reason: Invalid value for custom field ''

      Reason seems to be the empty array format for $formatValues when call is made to _civicrm_api3_deprecated_validate_formatted_contact function.

      Jul 03 19:03:57 [info] $backTrace = /home/deepak/svn/trunk/api/v3/DeprecatedUtils.php, backtrace, 1129
      /home/deepak/svn/trunk/CRM/Import/Parser/Contact.php, _civicrm_api3_deprecated_validate_formatted_contact, 1648
      /home/deepak/svn/trunk/CRM/Import/Parser/Contact.php, createContact, 681
      /home/deepak/svn/trunk/CRM/Import/Parser.php, import, 360
      /home/deepak/svn/trunk/CRM/Import/ImportJob.php, run, 275
      /home/deepak/svn/trunk/CRM/Import/Form/Preview.php, runImport, 289
      /home/deepak/svn/trunk/CRM/Core/Form.php, postProcess, 241
      /home/deepak/svn/trunk/CRM/Core/StateMachine.php, mainProcess, 159
      /home/deepak/svn/trunk/CRM/Core/QuickForm/Action/Next.php, perform, 60
      /home/deepak/svn/trunk/packages/HTML/QuickForm/Controller.php, perform, 203
      /home/deepak/svn/trunk/packages/HTML/QuickForm/Page.php, handle, 103
      /home/deepak/svn/trunk/CRM/Core/Controller.php, handle, 286
      /home/deepak/svn/trunk/CRM/Core/Invoke.php, run, 228
      /home/deepak/svn/trunk/drupal/civicrm.module, invoke, 500
      , civicrm_invoke,
      /var/www/drupal-7.0/includes/menu.inc, call_user_func_array, 501
      /var/www/drupal-7.0/index.php, menu_execute_active_handler, 22

      Jul 03 19:03:57 [info] $$params inside depre = Array
      (
      [contact_type] => Individual
      [first_name] => adam
      [email] => Array
      (
      [1] => Array
      (
      [email] => adam@example.com
      [location_type_id] => 1
      [is_primary] => 1
      )

      )

      [address] => Array
      (
      [1] => Array
      (
      [street_address] => 99 mas
      [location_type_id] => 1
      [is_primary] => 1
      [city] => CA
      [postal_code] => 400072
      [vcard_name] => HOME
      )

      )

      [custom_7] => Array
      (
      [0] => Array
      (
      [custom_7] => market
      [location_type_id] => 1
      )

      )

      [custom] => Array
      (
      [7] => Array
      (
      [-1] => Array
      (
      [id] =>
      [value] => Array
      (
      [0] => Array
      (
      [custom_7] => market
      [location_type_id] => 1
      )

      )

      [type] => String
      [custom_field_id] => 7
      [custom_group_id] => 4
      [table_name] => civicrm_value_address_cs_4
      [column_name] => location_type_7
      [file_id] =>
      [is_multiple] => 0
      )

      )

      )

      [custom_8] => Array
      (
      )
      )

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              deepak Deepak Srivastava
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days
                4d