ContactReference
custom field saves contact id
, and that field has max 16 numbers.
But when CiviCRM prepares Contact to export, that contact id
(max 16 numbers)
transforms to contact's display name
(more than 16 chars).
When CiviCRM tries to insert(to temporary table) more than 16 chars to field(with max length 16 chars)
thanthen it slices that field.
This issue can be hot fixed in CiviCRM Core.
- Find
civicrm/CRM/Export/BAO/ExportProcessor.php
file; - Find
getSqlColumnDefinition
method; - Replace
varchar(16)
tovarchar(255)
.
CiviCRM Core need to add new condition: if is Custom Field with type ContactReference
then use varchar(255)
instead of varchar(16)
.