Programatically Create Nodes with Body and Custom Fields
try using  like below

$node-&gt;body[LANGUAGE_NONE][0]['format'] = 3;
    $node-&gt;body[LANGUAGE_NONE][0]['summary'] = 'summary';
    $node-&gt;body[LANGUAGE_NONE][0]['value'] = 'dfg sdgdfs gsdg sdfg sdfg sdfg sdfg sdfg sdfg sdgsdf';

// Try to set your custom field
    $node-&gt;rscg_mashup_image_url[LANGUAGE_NONE][0]['value'] = "Too many to count...";