There is a small issue in feeds import. The feeds_item table GUID column is not a unique column, and the values can have dublicates. So the correct version of code for import over GUID should be changed from:

<?php
$result = db_query('SELECT f.entity_id FROM {feeds_item} f WHERE f.'.$match_key.' = :v', array(':v' => $v) );
?>

to:

<?php
$entity_types = array_keys($info['bundles']);
$result = db_query('SELECT f.entity_id FROM {feeds_item} f WHERE entity_type in (:entity_type) and f.' . $match_key . ' = :v', array(':entity_type' => $entity_types, ':v' => $v) );
?>

Comments

Alex Andrascu’s picture

Project: References » Feeds
Version: 7.x-2.0 » 7.x-2.x-dev
Component: Code: node_reference » Feeds Import

I think this belongs to Feeds ?

MegaChriz’s picture

Title: Feeds. Wrong references. » Feeds integration: referenced GUID is handled as unique in general but should not be
Project: Feeds » References
Component: Feeds Import » Miscellaneous
Issue summary: View changes

This referenced code is in the References module. See references.feeds.inc, ± line 278.