node_save causing duplicates I've seen a few other issues where people were causing this by calling node_submit followed by node_save, but I'm not - any ideas why this is creating a duplicate of every piece of content?

$art = node_load($node-&gt;nid);
$field_language = field_language('node', $art, 'field_intro');
$art-&gt;field['field_intro'][$field_language][0]['value'] = $record-&gt;intro;
node_submit($art);
print $art-&gt;title . ' saved &lt;br /&gt;';


I've tried both node_save and node_submit, both with the same results

EDIT: sorry guys, it was a conflict with a bit of code from another custom module - nothing to see here!
If you want to update the content of existing entity than you may use field_attach_update($entity_type, $entity): this saves field data for an existing entity.

Example:

$art = node_load($node-&gt;nid);
$field_language = field_language('node', $art, 'field_intro');
$art-&gt;field_intro[$field_language][0]['value'] = $record-&gt;intro;
field_attach_presave('node', $art);
field_attach_update('node', $art);


Note: field_attach_update() always expects all fields (like we are [passing the complete node object as $art), but If you just pass it the fields you actually want to update it will drop others like image or file fields.