Azure Pipeline getting error during file filtering

Copper Contributor

How to filter the files from container1 to container2, the files which are above 0kb must be transfer to container2, using if else condition.
I have used Get metadata1 -> For Each -> Get metadata2-> If else condition -> copy activity...

but it's not working...
how to add the property as 'size' in arguments?

Error getting: 
The expression 'greater(activity('Get Metadata2').output.size,0)' cannot be evaluated because property 'size' doesn't exist, available properties are 'effectiveIntegrationRuntime, executionDuration, durationInQueue, billingReference'.

1 Reply



Can you try using  below expression for filtering:-


greater(activity('Get Metadata2').output.childItems.size,0)


Please confirm if that works.