locked
FTP Adapter Location - sending alerts RRS feed

  • Question

  • Hi,

    we have a FTP adapter to receive files from FTP.

     but i have a requirement like, if the file is not received in the specific time frame , then biztalk orchestration should send an error alert. 

    Is there any possibility to do it in Biztalk adapter / orchestration?

    Please help me.

    Vinoth

    Monday, March 3, 2014 5:37 PM

Answers

  • For scenario 1, you will need to implement a watcher Orchestration that subscribes directly to the incoming message.  It would also have a Correlated Receive shape to wait for the next and following messages from that Receive Port in a loop.

    In the Listen Shape with the correlated Receive, you would also have a Delay shape set to whatever interval you require.  If the Delay Shape fires first, you would send your alert, otherwise the Delay Shape timer is reset for the next interval.

    This is a Sequential Convoy that does no other message manipulation.

    Monday, March 3, 2014 7:13 PM
    Moderator

All replies

  • Hi,

    You can leverage ESB Exception Notification service ,if you are using ESB Portal for Exception handling .

    Just what you need to do is to useEpression shape and throw exception shape along with delay shape .

    Define a variable of type System.exception and use it in thow exception shape.

    For refenerce you can use

    http://stephenomo.blogspot.ca/2011/10/force-exception-with-throw-exception.html

    Configure Email subscription at your Portal for specific Application .

    Another way is to use SMTP message along with delay shape in Orchestration or Using Failed message rounting which will be subscribed by another Child Orchestration responsible for sending messages .

    Thanks

    Abhishek

    Monday, March 3, 2014 5:49 PM
  • Hi,

    I am not using ESB Exception.

    Is there any other way to notify if the file was not received from FTP.

    Also i need to send alert and move the file to another location if receive ZERO BYTE file

    Monday, March 3, 2014 7:07 PM
  • For scenario 1, you will need to implement a watcher Orchestration that subscribes directly to the incoming message.  It would also have a Correlated Receive shape to wait for the next and following messages from that Receive Port in a loop.

    In the Listen Shape with the correlated Receive, you would also have a Delay shape set to whatever interval you require.  If the Delay Shape fires first, you would send your alert, otherwise the Delay Shape timer is reset for the next interval.

    This is a Sequential Convoy that does no other message manipulation.

    Monday, March 3, 2014 7:13 PM
    Moderator