logic apps to copy files from ftp/sftp server based on file extension to a file server

Perumalvs 20 Reputation points
2024-04-10T18:18:22.7533333+00:00

I have a requirement to copy files based on extension from external ftp & sftp servers to a file server. I used logic apps to meet this requirement by installing an on-premise data gateway in the file server. I managed to download the files to the target file server based on a trigger successfully. When I try to use a condition to filter files based on extension it fails with the error on the condition statement "ActionConditionFailed. The execution of template action 'Condition' is skipped: there are no items to repeat."

Can anyone help me on this? Any help is much appreciated. My workflow as follows

User's image

And the condition used to filter the file type

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,151 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 28,191 Reputation points Microsoft Employee
    2024-04-11T00:50:08.6266667+00:00

    Hi @Perumalvs

    The error message you shared indicates the collection was empty. The grey result is also indicator that the step was never initiated.

    What I would do is check the raw output of the List files in folder step to see what the body result is. That will allow you to verify you're getting the files from the folder you designated. Verify that the input of the For each 2 step is the correct property of the output from List files in folder.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.