Custom Field Not Being Saved programattically through node_save()
My suggestion would be to inspect an existing node that already has a value for field_data_qid. Is qid a field created through the Fields GUI? $node->qid is not where I'd expect to see a custom field like this.. $node->field_qid['und'][0]['value'] is a more likely candidate. You'd end up with:

function my_module_test_page() {
  $node = node_load(151);
  dpm($node, 'Pre-modified node');
  $node-&gt;field_qid['und'][0]['value'] = 222;
  dpm($node, 'Pre-saved modified node');
  node_save($node);
  // Passing TRUE for $reset to bump the cache
  $test = node_load(151, NULL, TRUE);
  dpm($test, 'Reloaded node');
  return 'Test page';
}


Also: node_load takes a nid integer as a parameter, not a string: http://api.drupal.org/api/drupal/modules%21node%21node.module/function/node_load/7

See also: https://stackoverflow.com/questions/7876458/drupal-6-drupal-7-migration-field-unds and Best practice for language key for &quot;und&quot; in hook_form_alter