title: Default Dataset not found, if APIFY_DEFAULT_DATASET_ID is set
body: <p>Apify documentation <a href="https://sdk.apify.com/docs/api/dataset" rel="nofollow noreferrer">enter link description here</a> explains, that the default dataset can be named, by setting the environment variable APIFY_DEFAULT_DATASET_ID. If I do so, with code sample 1 (see below) before puppeteer-crawler is created and if I crawl a page and store the result with code sample 2, I get a <a href="https://i.stack.imgur.com/DwxWB.png" rel="nofollow noreferrer">Dataset-not-found-exception</a>.</p>
  
  <p>What is wrong with my code?
  Cheers Wulfgäääng</p>
  
  <p>// Code Sample 1: Setting default dataset id</p>
  
  <pre><code>process.env.APIFY_DEFAULT_DATASET_ID = datasetName;
  </code></pre>
  
  <p>const crawler = new Apify.PuppeteerCrawler({
  ...</p>
  
  <p>// Code Sample 2: Storing result</p>
  
  <pre><code>log.info(`APIFY_DEFAULT_DATASET_ID: ${process.env.APIFY_DEFAULT_DATASET_ID}`);
  const _env = Apify.getEnv();
  log.info(`Apify.getEnv().defaultDatasetId:  ${_env.defaultDatasetId}`);
  try{
      await Apify.pushData(_result);
  } catch(err){
      console.log(`Error pushData: ${err.message}`);
  }
  </code></pre>