I’m trying to read the emails using the Get Exchange Mail Messages, Sometimes due to the email server error, the Activity Fails and throws out an exception. I want the Activity " Get Exchange Mail Message" to be retried thrice before i finally throw out an exception to the Catch Block.
I need to include the Get Exchange Mail Messages Activity in the Action Section of Retry scope activity,I need to set a condition in the Condition section of the Retry Scope. I know we should use “Is True” or “Is False” but can you help me with the condition what needs to be set for “Is True” or “Is False” ?
I am not sure if you need additional ‘Try Catch’ activity. Use ‘Retry Scope’ which has its own error catch mechanism. After Get Exchange mail activity add ‘assign’ activity which for example set boolean value to True (by default it is False) and add this boolean check to Retry Scope ‘Condition’ - use ‘Is True’ activity and inside input put this boolean variable.
I don’t think retry scope can handle exception it is basically similar to do while loop execute the action part and check for the condition and if it not met it will retry, hence it will throw an exception if it has any.
The solution would be to use try catch inside a while loop and use two variables one Boolean variable and one int variable to increase the count whenever there is an exception (increase the count inside the catch part).
The condition will be if the Boolean variable is false (initialy it will be false and set to true at the end of try so we know that there is no exception occured) or the int variable is less then 3(initialy it is 0 or 1).