Skip to Content
author's profile photo Former Member
Former Member

Optional target message - no errors raised

HI all,

I have been trying to find some information on how to deal with optional target messages in a message mapping/interface mapping.

I have a situation where one file can potentially create between 0 to 4 files and I don't want errors in production when no output files are created.

I know that there were some blogs about this but I have been looking for hours and I can't find any.

If anyone could give me some advice or could point me to the right blogs or forum threads I would really appreciate.

The PI version I am working on is 7.0... so a it's bit old.

Thanks for your help,

Aldo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 05:22 AM

    Hi Aldo,

    1st most important think to consider is the receiver structure main/parent node should have minOccur as "0".

    In Interface Determination, its a condition based interface determination, hence mention the condition against each interface. if the condition satisfies mapping will be called otherwise it will generate the mapping.

    Add a comment
    10|10000 characters needed characters exceeded

    • If you dont produce output in interface determination some times it cause error hence write a condition Receiver determination , for some data you will not create Target message, so replicate the same condition Receiver determination.

      if condition not satisfied in this case interface will not execute and no exception in Moni or adapter level.

      Dont forget to select option ignore in receiver determination .

      Regards,

      Raj

  • Posted on Jul 15, 2011 at 05:11 AM

    Hi,

    Write a condition in Receiver determination like when condition not satisfies select ignore option it will not throw any exception when condition not satifies.

    Regards,

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2011 at 05:15 AM

    Hi,

    You can also go for some dummy interface. When no interface is satisfying the condition then route it to dummy interface. But this technique is usefull when you can not stop the message in Receiver determinition.

    Regards,

    Harish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2011 at 06:06 AM

    OK Guys. Thank you all for the help.

    I am taking Raj answer as conclusive for this thread and I am marking it as answered.

    Cheers,

    Aldo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.