title: Azure Data Factory V2 Check file size for Copy Activity
body: <p>I need to run a copy activity for files in an on-premises data source. I need to check the file sizes and copy them if the size is greater than 0. If the file's size is 0, I will send a notification so that the admin would check the source.</p>
  <p>The problem is, in Get Metadata activity, the arguments in the field list do not include size. Also, Validation activity, does not look for size property either. Any suggestion? Again, the files live <strong>on-premises.</strong></p>
  <p>I added If Condition after the Get Metadata activity and used the expression:</p>
  <pre><code>@greaterOrEquals(activity('Get-metadata-source').output.size,0)
  </code></pre>
  <p>Which generates the following error:</p>
  <p>The expression 'greaterOrEquals(activity('Get-metadata-source').output.size,0)' cannot be evaluated because property 'size' doesn't exist, available properties are 'childItems, effectiveIntegrationRuntime, executionDuration, durationInQueue, billingReference'.</p>
  <p>Thank you!</p>