title: boto3 put_item succeeds but record does not appear
body: <p>I haven't been able to find an answer for this anywhere, hoping SO might be able to finally help.</p>
  <p>I've got a lambda function that processes a record then writes it to a dynamodb table. By all intents and purposes, it appears that the put_item call is succeeding, however, when I check the dynamo table the record is not appearing in it.</p>
  <pre><code>import json
  import boto3
  import uuid
  import urllib3
  from botocore.exceptions import ClientError
  
  def lambda_handler(event, context):
    
    apiResponse = {}
    for record in event['Records']:
      decoded = json.loads(record['body'])
      listId = int(decoded['queryParams']['rec_id'])
      apiCall = &quot;INTERNAL API&quot;
      http = urllib3.PoolManager()
      request = http.request('GET', apiCall)
      apiResponse = json.loads(request.data.decode('utf-8'))
  
      try:
        client = boto3.resource('dynamodb')
        table = client.Table('HistoryAuditTable')
        saveStatus = table.put_item(Item={
          'UUID': uuid.uuid4().hex,
          'RecId': listId,
          'MessageType': decoded['queryParams']['type'],
          'MessageTimestampUTC': record['attributes']['SentTimestamp'],
          'Message': apiResponse
        })
        print(&quot;STATUS&quot;)
        print(saveStatus) # This prints out a 200 status code in CloudWatch
      except ClientError as e:
        # This error never happens.
        print(&quot;ERROR&quot;)
        print(e.response[&quot;Error&quot;]['Message'])
        
    # Response Status
    response = {}
    response[&quot;body&quot;] = json.dumps(decoded)
  
    return response
  </code></pre>
  <p>My <code>apiResponse</code> is a simple json payload containing some audit data that we keep track of whenever a record changes.</p>
  <p>My dynamo table has the following fields:</p>
  <pre><code>UUID: self-explanatory, 
  RecId: an internal record identifier (we keep this separate from the PK because the same record might be updated again and again),
  MessageType: String representing if the record was a &quot;SEED_VALUE&quot;, &quot;CREATE&quot;, &quot;UPDATE&quot;, &quot;ARCHIVE&quot;, or &quot;SOFT_DELETE&quot;
  MessageTimestampUTC: self-explanatory
  Message: JSON blob containing the record details
  </code></pre>
  <p>I had to seed this table with an initial load of the current state of our data (around 400k records) the seeding process used this same aws lambda function. My first indication that something was up was that only around 100k of the 400k records actually made it into the table even though all 400k rows returns a 200 response code, after I noticed this I decided to try and trigger the processes which would push individual records into the table, I can see that my function is firing correctly, I can see that my api calls are returning correctly, and I can see that the <code>saveStatus</code> appears to be successful, however I am not seeing my records in the dynamo table. I guess I have a couple questions here:</p>
  <ol>
  <li>Is there some write limit for dynamodb tables? Did I possibly push too much data into it initially and I simply can't push anything new until my limit resets? (I can't find a straight answer to this anywhere online)</li>
  <li>Am I doing something completely wrong? My process was copied almost exactly from the AWS documentation but AWS's documentation is notoriously bad.</li>
  <li>Is there some sort of error/write logging which can be enabled for dynamodb through cloudwatch? (I can't find any information on this either anywhere)</li>
  </ol>
  <p>A couple other things I've checked:</p>
  <ul>
  <li>The UUIDs aren't colliding (unlikely I know but I've become desperate)</li>
  <li>The individual records are WELL under the 400kb DynamoDB limit (the largest record I've seen is 5kb)</li>
  </ul>
  <p>I'm honestly at a loss, I don't get how/why the process worked for 100k records then all of a sudden decided to not work anymore.</p>