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.
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 on-premises.
I added If Condition after the Get Metadata activity and used the expression:
@greaterOrEquals(activity('Get-metadata-source').output.size,0)
Which generates the following error:
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'.
Thank you!





