Forum Discussion
P_work
1 year agoHelper I
Understanding pipeline failure
I have a get metadata activity. The directory may or may not exist. If it exists, pipeline gets the list of child items and then proceeds to a for-each on success. If the directory does not exist, th...
- 1 year ago
From what I understand, the get metadata activity on completion needs to point to a wait AND all skipped activities must also point to this wait. Now the pipeline succeeds.
wardy912
1 year agoSuper User
Hi P_work
Starting with an IF statement will resolve your issue
Set your 'Get Metadata' to show if the directory exists
Then your IF statement to use the output
If true, complete your pipeline activities (in my example I have a set variable tasks to test). If false, do nothing. The pipeline will still succeed. See below the result when I removed the file from my directory, giving the output 'False'
I hope this helps, please give a thumbs up and mark as solved if it does, thanks!