0

I'm using the Import Multi-value Custom Data screen (civicrm/import/custom?_qf_MapField_display=true) and it does work, but it is not saving the field mapping. There is the following error:

Warning: Declaration of CRM_Custom_Import_Parser::run($fileName, $separator, &$mapper, $skipColumnHeader = false, $mode = self::MODE_PREVIEW, $contactType = self::CONTACT_INDIVIDUAL, $onDuplicate = self::DUPLICATE_SKIP) should be compatible with CRM_Contact_Import_Parser::run($tableName, $mapper = Array, $mode = self::MODE_PREVIEW, $contactType = self::CONTACT_INDIVIDUAL, $primaryKeyName = '_id', $statusFieldName = '_status', $onDuplicate = self::DUPLICATE_SKIP, $statusID = NULL, $totalRowCount = NULL, $doGeocodeAddress = false, $timeout = CRM_Contact_Import_Parser::DEFAULT_TIMEOUT, $contactSubType = NULL, $dedupeRuleGroupID = NULL) in require_once() (line 17 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Custom/Import/Parser.php).

There are also additional errors for each field used in the import:

Warning: Invalid argument supplied for foreach() in CRM_Custom_Import_Parser_Api->import() (line 180 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Custom/Import/Parser/Api.php).

I reproduced this error on the dmaster demo site and am using the errors from this site.

3
  • There is an issue for this at lab.civicrm.org/dev/core/-/issues/1771 (raised by me!)
    – Andy Clark
    Nov 30 '20 at 19:40
  • Thanks Andy for the reference. I guess custom multi-value imports are fairly rare?! I din't even know that import existed in Civi! It's quite a hidden function to find.
    – Ben
    Dec 1 '20 at 11:21
  • I was setting them up for people to import Gift Aid Declarations, so this problem made that difficult
    – Andy Clark
    Dec 1 '20 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.