Index: branches/RC/core/units/general/cat_dbitem_export.php =================================================================== diff -u -r8929 -r9842 --- branches/RC/core/units/general/cat_dbitem_export.php (.../cat_dbitem_export.php) (revision 8929) +++ branches/RC/core/units/general/cat_dbitem_export.php (.../cat_dbitem_export.php) (revision 9842) @@ -831,8 +831,10 @@ } $save_method = $item_id && $this->curItem->Load($item_id) ? 'Update' : 'Create'; if ($save_method == 'Update') { - // replace id from csv file with found id - $record_data[ array_search($this->curItem->IDField, $this->exportFields) ] = $item_id; + // replace id from csv file with found id (only when ID is found in cvs file) + if (in_array($this->curItem->IDField, $this->exportFields)) { + $record_data[ array_search($this->curItem->IDField, $this->exportFields) ] = $item_id; + } } }