node_load is not working I am creating a import script, which is importing node into Drupal website from external database.

Node is inserting properly. I have added condition that node exist into Drupal website or not and I am getting the correct nid with  this condition.

When I am using node_load to load the existing node, its showing empty result.  

I also checked node_load get blank, but did not get any satisfied answer. 

Please forgive me if this question is duplicate. 

Code Snippets:

$pricelist_query = db_query("select * from abshop_import.abshop_import_price where (result != 'I' and  result != 'O' and result != 'D') or result is NUll limit 0, 50");

$message = '';

while ($pricelist_object = db_fetch_object($pricelist_query)) {

    $product = db_fetch_object(db_query("select * from abshop_import.abshop_import_antibodies where (result != 'I' or result is NUll) and sku_model='%s'", $pricelist_object -&gt; sku_model));

    if (!empty($product)) {

    $product_object = db_fetch_object(db_query("select nid from {content_field_pr_man_prd_numb} where field_pr_man_prd_numb_value='" . $product -&gt; field_pr_man_prd_numb_value . "'"));

        //If product is primary antibodies
        if ($product -&gt; primary_or_secondary == 'P' || $product -&gt; primary_or_secondary == 'p') {

        //If there is no existing product
            if (empty($product_object)) {

                $node = new STDCLASS;
                $node -&gt; type = 'primary_antibodies';

                //setting language of the node
                $node -&gt; language = 'en';

                //setting the author of the node
                $node -&gt; uid = $product -&gt; uid;

            } else {

                $nid = $product_object -&gt; nid;

                $node = node_load($nid, NULL, TRUE);

                print $product_object -&gt; nid . "===&gt;";

                print_r($node);

            }

            $node -&gt; shippable = 1;

            $node -&gt; model = $product -&gt; sku_model;

            //Setting title of the product
            $node -&gt; title = $product -&gt; title;
            //Setting body of the product
            $node -&gt; body = $product -&gt; body_teaser;
            //Setting teaser of the product
            $node -&gt; teaser = $product -&gt; body_teaser;

            $node -&gt; weight = $product -&gt; uc_products_weight;
            $node -&gt; weight_units = $product -&gt; uc_products_weight_units;

        }

        //If product is primary antibodies
        elseif ($product -&gt; primary_or_secondary == 'S' || $product -&gt; primary_or_secondary == 's') {

            //If there is no existing product
            if (empty($product_object)) {

                $node = new STDCLASS;

                $node -&gt; type = 'secondary_antibodies';
                //setting language of the node
                $node -&gt; language = 'en';

                //setting the author of the node
                $node -&gt; uid = $product -&gt; uid;

            } else {

                $nid = $product_object -&gt; nid;

                $node = node_load(array('nid' =&gt; $nid), NULL, TRUE);

                print $product_object -&gt; nid . "===&gt;";

                $n = node_load(array('nid' =&gt; $nid), NULL, TRUE);
                print_r($n);

            }

            $node -&gt; model = $product -&gt; sku_model;

            $node -&gt; shippable = 1;

            //Setting title of the product
            $node -&gt; title = $product -&gt; title;
            //Setting body of the product
            $node -&gt; body = $product -&gt; body_teaser;
            //Setting teaser of the product
            $node -&gt; teaser = $product -&gt; body_teaser;


            $node -&gt; weight = $product -&gt; uc_products_weight;
            $node -&gt; weight_units = $product -&gt; uc_products_weight_units;

        }

        if ($node = node_submit($node)) {

            print_r($node);
            die ;

            node_save($node);
        }

        node_load(FALSE, NULL, TRUE);

}


}

Thanks in advance.
After perform R&amp;D, I found that uid of the node was not matching with uid in {users} table, which mean there is no existing user which is author of the node.

As I am importing the node from external database and it was importing properly previously, so I did not noticed the same.

Now, when I changed the uid of the node, everything starts working properly.