0

Is this possible to handle DeliveryNotificationFailure exception on One-way File Type Send Port?

If yes, how to do this?

I followed the below steps but still not working.

  1. I Kept the send shape in Scope Shape, which is handling by DeliveryFailureException Catch Block.

  2. I did set the property on Send Port "Delivery Notification = Transmitted".

    For testing:

  3. On Admin console, I have given the wrong file path, to get message failed. And I have give the wrong Server Instance, Either ways it is not giving the results.

Community
  • 1
  • 1
Software Enginner
  • 675
  • 2
  • 14
  • 43
  • Have you stepped through the Orchestration in Orchestration Debugger? I set up the scenario described and it does catch the fault. What are you doing inside the Catch block, do you have a terminate or suspend shape in there? Otherwise after going through the Catch Block it will continue as it would in any other C# code. – Dijkgraaf Apr 03 '14 at 22:13
  • If you do want it to continue but to make a decision based on whether it succeeded or not, then have an expression shape that sets a boolean variable (eg. bSuccess = false) in an expression shape in the catch block, then have a decide after the catch block (e.g. where the condition is bSuccess == true). – Dijkgraaf Apr 03 '14 at 22:19

1 Answers1

2

Yes it is possible to catch the Microsoft.XLANGs.BaseTypes.DeliveryFailureException on a One-way File Type send port. However after catching it you have to ensure that the Orchestration either Suspends, Terminates or has logic to cope after the Catch block.

Orchestration

Debug Orchestration when failed Debug Orchestration when failed

Debug Orchestration when it succeeds Debug Orchestration when it succeeds

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54