title: Why is the "When one or more files are added or modified (metadata only)" File System trigger on Logic Apps triggering instances with empty body?
body: <p>I have a Logic Apps workflow, which is triggered by the <code>When one or more files are added or modified (metadata only)</code> File System connector trigger. It's supposed to run every 5 minutes, and allow a maximum of 10 files per instance. </p>
  
  <p><a href="https://i.stack.imgur.com/MiRDm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MiRDm.png" alt="enter image description here"></a></p>
  
  <p>This is the code behind the trigger</p>
  
  <pre><code>"When_one_or_more_files_are_added_or_modified_(metadata_only)": {
  "inputs": {
      "host": {
          "connection": {
              "name": "@parameters('$connections')['filesystem']['connectionId']"
          }
      },
      "method": "get",
      "path": "/datasets/default/triggers/batch/onupdatedfile",
      "queries": {
          "folderId": "XFx5b3VhcmVzbWFydFxidXRcdGhpc1xpc1xzZWNyZXQ=",
          "maxFileCount": 10
      }
  },
  "metadata": {
      "XFx5b3VhcmVzbWFydFxidXRcdGhpc1xpc1xzZWNyZXQ=": "\\hidden\"
  },
  "recurrence": {
      "frequency": "Minute",
      "interval": 5
  },
  "type": "ApiConnection"
  </code></pre>
  
  <p>}</p>
  
  <p>I've removed the <code>splitOn</code> property from the trigger, so I can get a list of files. However, every 5 minutes, when there are files (less than 10), more than one instance is triggered, and based on many tests, there is always one with empty body. As shown below: </p>
  
  <p><a href="https://i.stack.imgur.com/mvJWL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mvJWL.png" alt="enter image description here"></a> </p>
  
  <p>Some of my tests: </p>
  
  <ul>
  <li>1 file in the folder, Two instances are fired. One instance with one
  file, and one instance with no files. </li>
  <li>2 files in the folder, 3 instances are fired. 1, 0, and 1 files<br>
  correspondingly.</li>
  <li>3 files in the folder, 3 instances are fired. 2, 0, and 1 files<br>
  correspondingly.</li>
  <li>5 files in the folder, 3 instances are fired. 4, 0, and 1 files<br>
  correspondingly.</li>
  <li>10 files in the folder, 3 instances are fired. 9, 0, and 1 files
  correspondingly.</li>
  </ul>
  
  <p>Is there something I need to configure differently so I get only 1 instance with all the files (when less than 10) and no instance with an empty body? </p>