title: AWS Step Functions Data Limit
body: <p>I am designing a state machine which will run two lambda functions that return each a Json array in parallel. Also, the result of these functions are then pass to two more lambda functions that will took those inputs and added to a database. I have all the functions ready and working separately, but when I execute the state machine it says that one of the executions failed because of DataLimitExceeded. I checked the documentation and it says that the limit for input or output results is 32.768 characters. The odd thing is that the execution that is successful is the one that the Json object returned is about 50k characters, and the one that is failing its about 46k characters. So, if both are exceeding the limit, why one of them is failing and the other one not!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "StartAt": "Sync",
    "States": {
      "Sync": {
        "Type": "Parallel",
        "Next": "EnviarNotificacion",
        "Branches": [
          {
            "StartAt": "SyncClientes",
            "States": {
              "SyncClientes": {
                "Type": "Task",
                "Resource": "arn...",
                "Next": "AddClientes"
              },
              "AddClientes" : {
                "Type": "Task",
                "Resource": "arn...",
                "End": true
              }
            }
          },
          {
            "StartAt": "SyncArticulos",
            "States": {
              "SyncArticulos": {
                "Type": "Task",
                "Resource": "arn...",
                "Next": "AddArticulos"
              },
              "AddArticulos": {
                "Type": "Task",
                "Resource": "arn...",
                "End": true
              }
            }
          }
        ]
      },
      "EnviarNotificacion": {
        "Type": "Pass",
        "End": true
      }
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks a lot!</p>