title: BatchGetItem returning successful but null
body: <p>Trying to run a BatchGetItem from Lambda to DynamoDB however When I run the query it returns a null response and logs no issues. <strong>PK</strong> (Primary Key) and <strong>SK</strong> (Sort Key) do exist in the table and the values associated with each are currently stored in the table as seen below. The Lambda function has permissions to run BatchGetItem on that specific table and when I run a single GetItem on that same table it works fine and returns a single item. Any help with trying to get BatchGetItem to return the queried items would be greatly appreciated. Thanks</p>
  <h3>DynamoDB Image</h3>
  <p><a href="https://i.stack.imgur.com/UUxQP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UUxQP.png" alt="DynamoDB Attributes" /></a></p>
  <h3>Lambda Code</h3>
  <pre><code>// Load the AWS SDK for Node.js
  var AWS = require('aws-sdk');
  // Set the region 
  AWS.config.update({region: 'us-east-1'});
  
  // Create DynamoDB service object
  var ddb = new AWS.DynamoDB({apiVersion: '2012-08-10'});
  
  var info;
  
  exports.handler = async (event, context) =&gt; {
    var params = {
      RequestItems: {
        &quot;candidates&quot;: {
          Keys: [
            {
              &quot;PK&quot;: {S: &quot;jack&quot;},
              &quot;SK&quot;: {S: &quot;C108951642&quot;}
            },
            {
              &quot;PK&quot;: {S: &quot;ben&quot;},
              &quot;SK&quot;: {S: &quot;C143956179&quot;}
            },
            {
              &quot;PK&quot;: {S: &quot;hill&quot;},
              &quot;SK&quot;: {S: &quot;C268283233&quot;}
            }
          ],
          ProjectionExpression: &quot;Name&quot;
        }
      }
    };
    
    ddb.batchGetItem(params, function(err, data) {
      if (err) {
        console.log(&quot;Error&quot;, err);
      } else {
        data.Responses.TABLE_NAME.forEach(function(element, index, array) {
          console.log(element);
          info = element;
        });
      }
    });
    return info;
  }
  
  </code></pre>
  <h3>Lambda Response</h3>
  <pre><code>Test Event Name
  batch
  
  Response
  null
  
  Function Logs
  START RequestId: a411114a-29b9-4f7f-bc20-2a5caff9f0cf Version: $LATEST
  END RequestId: a411114a-29b9-4f7f-bc20-2a5caff9f0cf
  REPORT RequestId: a411114a-29b9-4f7f-bc20-2a5caff9f0cf  Duration: 442.11 ms Billed Duration: 443 ms Memory Size: 128 MB Max Memory Used: 78 MB
  
  Request ID
  a411114a-29b9-4f7f-bc20-2a5caff9f0cf
  </code></pre>