Views will not use pathauto URL Alias when listing programatically saved nodes I am programatically saving nodes, and everything is working fine. Pathauto is working correctly as well and generating aliases based on my url alias configurations.

However, when Views creates a list of the new nodes, it uses node/xx instead of the existing url alias.  Anyone know why this could be happening? All caches have been cleared, cron ran, etc. Here is the code

$node = new stdClass();
    //set other defaults
    node_object_prepare($node);

    $node-&gt;type = $page_data['content_type'];
    $node-&gt;body[LANGUAGE_NONE][0]['value'] = $page_data['description'];
    $node-&gt;body[LANGUAGE_NONE][0]['summary'] = text_summary($page_data['description']);
    $node-&gt;body[LANGUAGE_NONE][0]['format']  = 'filtered_html';
    $node-&gt;title = $page_data['title'];
    $node-&gt;field_product_price[LANGUAGE_NONE][0]['value'] = $page_data['price'];
    $node-&gt;field_item_location[LANGUAGE_NONE][0]['postal_code'] = $page_data['zipcode'];
    $node-&gt;uid = "1";
    $node-&gt;status = 1;
    $node-&gt;active = 1;
    $node-&gt;pathauto_perform_alias = TRUE;

$node-&gt;field_product_images[LANGUAGE_NONE] = $images;
unset($images);


$node-&gt;field_baby_clothes_category[LANGUAGE_NONE][0]['tid'] = $page_data['category']; 

if($node = node_submit($node)) { // Prepare node for saving
    node_save($node);
}


note - when I add the same information through the content type form everthing works fine. It's almost as if my code is missing something that helps connect it to views.
Views doesn't see the alias.  When Drupal receives an alias URL, the first thing it does is change the URL to the default.  Views does not come into the process until after the URL is changed, so it does not know about the alias.