Forum Discussion

Rohan_Das2000's avatar
Rohan_Das2000
Copper Contributor
Jul 05, 2023

Azure Pipeline getting error during file filtering

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'.

  • Rohan_Das2000

     

    Can you try using  below expression for filtering:-

     

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

     

    Please confirm if that works.

     

    Thanks!

Resources