title: DynamoDB - Scan not returning all items
body: <p>I am facing some troubles when scanning my table in DynamoDB in my Node.js function.</p>
  <p>When I scanning at the function I got 2 rows, but when scanning at AWS console I am getting 3 rows.</p>
  <p>Follow below the code:</p>
  <p>utilsAWS scan function:</p>
  <pre><code>scanDocuments(params) {
      return new Promise((resolve, reject) =&gt; {
        var docClient = new this.AWS.DynamoDB.DocumentClient();
  
        console.log(`Querying ${params.TableName}...`);
  
        docClient.scan(params, function (err, data) {
          if (err) {
            console.error(
              &quot;Unable to query. Error:&quot;,
              JSON.stringify(err, null, 2)
            );
            return reject(err);
          } else {
            console.log(&quot;Query succeeded.&quot;);
            return resolve(data.Items);
          }
        });
      });
    }
  </code></pre>
  <p>//consuming scan function</p>
  <pre><code>var params = {
      TableName: 'minha-redacao-redacoes',
      FilterExpression: &quot;#e = :cpfAluno&quot;,
      ExpressionAttributeNames: {
        &quot;#e&quot;: &quot;cpfAluno&quot;,
      },
      ExpressionAttributeValues: {
        &quot;:cpfAluno&quot;: `8509754....`
      },
    };
    try {
      const res = await utilsAWS.scanDocuments(params);
  
      console.log(res.length); //2
  
    } catch(err) {
      console.error(err);
    }
  </code></pre>
  <p>But look at the AWS console:</p>
  <p><a href="https://i.stack.imgur.com/LEM8z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LEM8z.png" alt="scan by console" /></a></p>
  <p>The row id: <code>f3ebb776-13eb-4395-884e-e81f23044ca1</code> is not found when scanning by the <code>node.js</code> function. To solve partially the problem I've created the <code>f3ebb776-13eb-4395-884e-e81f23044ca1_manual</code> document.</p>
  <p>Any one knows a definitive solution to this issue?</p>