** XPath condition not work well in Receiver Determination.

Hi,
My scenario is having 3 receivers. I have 'Student' is the data type. I use the same data type for Source & Target Message Types. Requirement is I have to send
1) only records which are having SCOURSE = 'BE' to receiver 1
2) only records which are having SCOURSE = 'MCA' to receiver 2
3) only records which are having SCOURSE = 'MBA' to receiver 3
My Input.xml file contains the following records.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:THIRD_MT_OB xmlns:ns0="http://ganesh_third">
   <STUDENT_INFO>
      <ST_ID>10020</ST_ID>
      <SNAME>Raja</SNAME>
      <SCOURSE>BE</SCOURSE>
      <SFEES>3000</SFEES>
      <SMARKS>1200</SMARKS>
   </STUDENT_INFO>
   <STUDENT_INFO>
      <ST_ID>10021</ST_ID>
      <SNAME>Ram</SNAME>
      <SCOURSE>MCA</SCOURSE>
      <SFEES>3000</SFEES>
      <SMARKS>1200</SMARKS>
   </STUDENT_INFO>
   <STUDENT_INFO>
      <ST_ID>10022</ST_ID>
      <SNAME>Ram</SNAME>
      <SCOURSE>MBA</SCOURSE>
      <SFEES>3000</SFEES>
      <SMARKS>1200</SMARKS>
   </STUDENT_INFO>
</ns0:THIRD_MT_OB>
I set the Xpath condition in the Receiver Determination Step and add the 3 receivers for against the conditions.
Our problem is, If we send the single record in the input file, the corresponding receiver is selected correctly and we get the output file for that receiver. But, if we send the all combination of records (MCA,BE,MBA) 3 receivers are selected and the 3 output files we get. But, the three files are having the all records (MCA,BE,MBA). Instead, we want the first file should only have MCA record,  the 2nd file should only have BE record and finally the 3rd file should only have MBA record. That means each receiver should receive only one record for the above input.
Friends, I though it will work for the 'XPath Expression' against receivers in the Receiver Determination Step. But, it didn't work. (Records are not split up)
How do achieve this, friends?
Could you kindly help me to solve this problem.
Kind Regards,
Jeg P.

If you are trying to split you input msg and send it  to 3 different receivers using conditional receiver determination then it will not work. Once a condition is meet in the receiver determination then the entire msg is forwarded to the corresponding receiver, that is why when you have a single row in your input file which results in a single msg in XI the conditional receiver works. Now when you have multiple rows in your input file still only one msg is being created in XI for all the rows currently so all the conditions are being meet and the msg is forwarded to all the receivers.
If you are using FCC in the sender side then use the "recordset per msg" parameter to consider each row of your input file as a separate msg in XI and the rest will automatically fall in place.
Cheer's

Similar Messages

  • Xpath condition not working for determining receivers

    hello all
    am writing a xpath expression for a simple structure
    <doc>
       <status>
       <id>
    </doc>
    status is attribute field.and will have value 'error' and some other value for no error. I want to choose one receiver if error and other receiver if no error
    so I wrote an xpath expression
    /Doc[@status='Error']   EX    --> Error receiver
    count(/Doc[@status='Error']) = '0'   --> no error receiver
    it was working couple of days ago but suddenly stopped working
    whats going on? thx
    mike

    But xpath is not working properly..
    Are you using this in the condition editor of Interface Determination (it should not be a cause of concern though)
    Can you confirm that the condition that you have specified is proper ....does it work when you specify only one condition?
    Regards,
    Abhishek.

  • Condition "not containing" expression  in Receiver Determination

    Hi guys,
    I have one interface which processes files with lines compossed by two fields, an identificator, and a data field.
    Inside the data field, i have a row of characters and I want to create this condition in the receiver determination:
    If Data contains text "e6212" then, receiver is X
    If Data does not contain text "e6212" then, receiver is Y.
    I know how to create the first condition, but not the second. Could anybody help me? Thanks in advance!

    Hi,
    The condition editor contains 'Contains Pattern (CP)':
    You use this operator to query a string with a pattern. You can use the following characters for this:
    ·        + for any single character
    ·        * for any string
    *mploymenttaxdeclarat+on annualemploymenttaxdeclaration.
    please read more here:
    http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
    regards
    Vijaya

  • Fault policies locaton and test xpath conditions not working.

    I cant place fault policies files in a non mds location or the composite directory.
    For example it does not work with an /opt/...... server path in the composite.xml property.
    Also, I can't get working xpath test expressions like this:
    <condition>
    <test xmlns:elem="http://na.telefonica.com/elementoscomunes">$fault.fault0/elem:AREA_ERROR/ErrorType = "F"</test>
    <action ref="reintentos-neon"/>
    </condition>
    In jdeveloper, the part is "fault0", and the subelements are like i've showed, but the condition never matches.
    I saw in a forum that the sintax was $fault.nameofpart/xpathexpression, but doesn't seem to work. I've tried lots of permutations of the syntax, and also with 'F' instead of "F".
    ¿Any Idea?

    This is the exception in the server GUI
    <fault>
    <bpelFault>
    <faultType>1</faultType>
    <OBA_Par_Alta_AveriaFault>
    <part name="fault0">
    <elem:AREA_ERROR>
    <ErrorID>8888</ErrorID>
    <ErrorType>F</ErrorType>
    <ErrorDesc>Afsafds</ErrorDesc>
    </elem:AREA_ERROR>
    </part>
    </OBA_Par_Alta_AveriaFault>
    </bpelFault>
    </fault>

  • I just got the iPhone 5.  It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    I just got the iPhone 5. It's completely synced and working.  All my contacts are loaded.  However, caller ID is not working when I receive a call or a text.  Can anyone help me out with this?

    Well, assuming all of the above, Notifications, etc., it just might be time for a visit to the Apple tore genius center for a session with the techs.  See if it is a fault in the hardware or just an iOS reinstall is the answer.
    One more thing you could try, backup so you have a record of content, then restore to factory conditions be an Erase All Contents and Settings.  Then restore from the backup you just made.  That has helped some with WiFi problems, may be it would work with your problems.
    But with that behavior of another app with problems, the geniuses looks like a less stressful thing to do.

  • XPATH does not work in ccBPM

    Hi,
    I have a problem using XPATH expressions in a ccBPM.
    I'm using an XPATH-expression in a fork step, but although the payload of the relevant message is correct, it doesn't seem to work. The XPATH expression is as follows:
    IDOC_TO_ISU./ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1/OBJECT_TYPE EX
    I also tried
    IDOC_TO_ISU./p1:ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1/OBJECT_TYPE EX
    IDOC_TO_ISU is the name of the container, ZE_ISU_VDEW_UTILMD_V40 ist the root tag of the message, an p1 the namespace of the message.
    Further, I used the following expression in a container operation to count the number of elements within a message:
    count(/p1:ZE_ISU_VDEW_UTILMD_V40/IDOC/ZE1_E1VDEWIDE_1)
    Although there are several ZE1_E1VDEWIDE_1 elements in my message, the result is '0'
    Are my XPATH expressions wrong or do XPATH expressions not work in ccBPM in general?
    Regards,
    Torsten

    Hi,
    thank you for your contributions.
    I had positive experiences with XPATH-expressions in receiver determination, but it seems that it doesn't work in ccBPM.
    Using context objects, I cannot query payload fields, so I also do not see how I can solve the problem with context objects.
    Has anybody an idea or an example about a successful XPATH expression in ccBPM?
    Regards,
    Torsten

  • I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?

    I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?

    Thank you for your time Woody. Recently the Mac seems to freeze a lot, seemingly due to a problem with the airport, especially if the computer is inactive for anything more than a few minutes. Then yesterday I suddenly couldn't send or receive messages so I got in touch with my server and they reconfigured the mail account. I can now receive messages but can't send them, always getting a timed out message when I try to send an email. I phoned the server again and they said it must be a problem with Mail as we tried sending a message online from the server's webpage and it worked fine, so they suggested I reinstall Mail. So hence my original question. Sorry for the rambling! I'm not very computer minded.

  • I need a reliable office suite.   Open Office is not working well for me.  Any suggestions?

    I need a good reliable office suite.  Open Office is not working well for me.  Any suggestions?

    If you mean Open Office is not always able to correctly open documents received from clients created with MS Office, then the only real solution is to purchase Office 2011 for Mac. As good as some of the free alternatives are, they can't duplicate every feature of MS Office.

  • To whom it may concern      Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E  2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in goo

    To whom it may concern
    Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E
    2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in good shape I can prove it,the Apple support in Brazil doenst work like in USA.
    I look forward to your reply and a resolution of this problem.
    Thank you very much!!!

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • After upgrading to IOS 8 my iPhone 5 wifi is not working well at all .. and can't connect to any of apple services like apple store even can't upgrade my application

    After I upgraded to IOS 8 my iPhone is not working well at all .. the most serious issue is the wifi which is too slow and can't connect to apple store and can't update my application  .. also tried to search or update for ios 8 but also can't connect . safari also always can't connect to any the server . please check and advise

    Hey ahmedfromtanta,
    Thanks for the question. After reviewing your post, it sounds like trouble with Wi-Fi. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Troubleshooting Wi-Fi networks and connections
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Safari 5.1.1 I no longer have access to my bookmark folders, just a search that does not work well. How can I retrieve access to bookmark folders?

    OS 10.6.8 Safari 5.1.1 I no longer have access to the bookmark folders. There is just a search function that does not work well. Is there any way to get access back to my bookmark folders?

    This site didn't say anything about one wrong ID, but only talks about changing the Apple ID.  If it didn't work the first time why should it work now?

  • Why ps3 is not working well with airport

    why ps3 does not work well wth the airport?

    If you are referring to online gaming, then PS3 like all non-apple devices uses upnp to open ports.
    Apple uses NAT-PMP to open ports.. East and West.. never the twain shall meet.
    If it is internal wireless issues.. that is different.. airport should be just like any other wireless router.
    If you tell us the issue we have more hope to help.

  • Good morning, AdobeSuite installation does not work and I receive"error initializing program, download adobe advisor" error message. On Adobe site it appears"The Adobe Support Advisor has been discontinued  The Adobe Support Advisor tool was used to analy

    Good morning, AdobeSuite installation does not work and I receive"error initializing program, download adobe advisor" error message. On Adobe site it appears"The Adobe Support Advisor has been discontinued  The Adobe Support Advisor tool was used to analyze installer log and system information associated with installation errors. The tool has been replaced with improved installation support mechanisms. Please visit Adobe Support section for Knowledge base articles around Installation."

    Nobody can tell you anything without proper system info or other technical details. We don't even know what exactly you are trying to install.
    Mylenium

  • New FocusTraversalPolicy Mechanism Does Not Work Well With OO Designs

    I would like to complain about the new focus traversal mechanism not working well with object-oriented GUI designs.
    Specifically, we have many reusable panel classes that can be swapped in and out of reusable dialog classes. On some of these panels, the default focus traversal is not what is desirable, perhaps because one component on the right side of the window is just slightly higher than a component on the left side, maybe due to the component on the right having a label on top, and so the default focus goes to the component on the right instead of the left. So we have a need to be able to explicitly define the order of components in some panels.
    If I try to define a focus traversal policy in the panel's constructor, a NullPointerException is thrown because the panel's focus cycle root is null (the panel has not been added to any dialog or frame yet).
    If I try to associate a focus traversal policy at the dialog level, it would have to explicitly reference its child panels' inner components, which would break the encapsulation of the panels. It would also make it hard to have generic dialog classes into which various reusable panel objects can be swapped.
    Someone suggested making each panel a focus cycle root. This makes it hard to "break out" of one panel to move on to the next panel in the dialog. Special keys would have to be assigned to try to cycle out, and these keys would have to be different than the normal traversal keys, making them inconsistent and nonintuitive to the user. Also, the focus policy would have to know if the dialog had more than one panel, what order the panels were in to know whether to cycle to the next panel or not, etc. This is a mess.
    Does anyone have any idea how to get around these problems? I have tried using a global focus policy with a global hash map of prev/next component key-value pairs, but we are still running into trouble with some deeply nested tabbed dialogs. It's just not possible to always have the focus cycle root in existence at the point where you want to explicitly define traversal between two components, or when you are trying to establish the default component for a panel in a tabbed pane.
    Has anyone else run into similar issues?
    Robbie Gilbert
    [email protected]

    I agree completely. One of the popular consultants on this forum stated that the new focus mechanism was more versatile and only a little more complex. I would say it's more than a little complex given the trouble average programmers are having understanding how it works...at least at first...and after understanding it realizing that they are going to have type their fingers off to update their code. Oh, and the dread of maintaining this awful mess.
    I'm currently having the same problem as you Robbie. Some of my reusable panels need special tab ordering...that's not usually a problem, in most programming environments, till now. Now I have to go around the world and back just to get my stupid cursor to be in the right place when I hit the tab key??!!! and special key mappings just to get out of a focus cycle...lame.
    And how is an IDE graphical designer going to work with this? It's not, that's how...ok maybe if some kind person or company creates a custom focus traversal policy editor of some kind, I don't know.
    Good grief Sun! We need something to help us meet our deadlines, not solutions that force us to spend 80% of our time customizing every stinking bit of UI functionality we need!!!
    JTables are even worse. I've mastered most of the garbage that is JTable after many months of pain and I don't know how I'm going to help my peers understand them in any short amount of time. Most of them were Oracle Forms programmers, not that that is any great solution either. But they will likely have problems.
    In conclusion, I wish I had chosen another UI technology for our new product client, and may yet.

  • Fan is not working well of a pavilion g6

    when starting up my laptop, it reports that my fan is not working well and when it remains on for about 10minutes it starts to be hot at the position where the fan is located. the problem just started.

    Hello
    could you sense the fan is running by hearing and hot air blow out from air vent?
    1) if fan is running and running faster when hot, it means fan is working. please check if anything block the air vent or air intake. only Air can flow freely, it can cooling down the CPU.
    2) If Fan is running and air vent is not block and unit is been used long time, maybe the dust. if you have skill, please clean dust, it need remove some cover to disclose fan/heatsink.
    3) update BIOS to latest. of course Fan need to replaced if it is not run, but the running Fan usually don't need to be replaced.
    I work for HP.
    If you like my reply, please click "Kudos"

Maybe you are looking for

  • Undeliverable emails but they are delivered

    For every email I receive, I also get an email from Internet Mail Delivery ([email protected]) with a subject line 'Problem during delivery processing'.  What does this mean?

  • Archive log not found

    Hi, I want to run the RMAN backup, but I lost some of the archivers. How to take the backup excluding those lost archivers? Thanks, GK

  • Unable to start push mail service

    I am using nokia c3 device I was trying to use pushmail service but not able to get it his started. please suggest me how to start this service.

  • Color match when printing problem

    I have Snow Leopard, and I am having trouble getting blue to match when printing from Office. Can anyone help? I am running 10.6.8.

  • Getting sound out of my speak

    Hello everyone, now that I've got your attention, I moved my computer equipment from one room to another. I THOUGHT all I had to do was plug in the green plug from my sub woofer into the output (labeled GREEN) on the back of my PC and voila! the musi