How to implement exception handling in azure logic apps for sftp-ssh(ISE) connection?

Madala, Hanumantharao 76 Reputation points
2021-06-30T07:57:04.953+00:00

We want to enable exception handling in azure logic apps for sftp-ssh(ISE) connection for file copying from one VM to another VM.
For error handling, we have tried config run after ..still we are not able to see the errors in run history.

Refer the attached files(4) for the same
.110457-get-file-content-error-handling1.png110553-get-file-content-error-handling2.png110488-get-file-content-error-handling3.png
110535-get-file-content-error-handling.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

Answer accepted by question author
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-07-15T14:20:38.49+00:00

    @Madala, Hanumantharao Based on your requirements, I believe you just looking for conditional statements in your logic apps.

    1. Incase there are no files in source path, no need to proceed further.

    For this, you could just check if the returned array from the List files in folder action is empty. You can use the empty function in a condition and if true, call the terminate action.

    1. If files are present in source folder, but not complete files(part files).. how to handle these files with exception handling?

    Here you can filter out the list of files based on something like the filename (assuming the filename is different for part files in your case).

    1. If correct files are present in source folder, during connection to destination folder failed. How to catch this exception and send an email?

    This is where you would use run after. For this, you would need a parallel branch that only runs when the previous failed.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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