Receiver determination - Xpath expression problem with count

I am working with a scenario where I pick up records from a JDBC connection and if the number of records I pick up is less than a certain number I want to call a webservice.  If it is greater than the number I want to write out a file to be processed by a different process on the receiving end.  I have created the receiver determination condition with the following conditions:
(/p1:MT_HOG_Data/row[count(row) > 3] EX)
(/p1:MT_HOG_Data/row[count(row) <= 3] EX)
The integration is always processing the second condition no matter how many records come in.  I have tried with and without the multiline option.  Can anyone help with this?
I have searched through the forum and checked the following links without any resolution:
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
I can't find any examples where a count of records is checked in the expression editor.  Thanks in advance for any help.

You can not use the EX operator in that case, because that is used only for node existence checks, not for value checks.
Do you have a row number in your structure ? Then you could write the xpath expression with that counter tag and value
Example: you want to send to receiver A if count > 3, else to B:
you set  /rowNumber EQUAL 4 for sender A
and /rowNumber NOT EQUAL 4 for sender B
The condition is applied to the whole document. If one of the node/values are true for that condition, then the whole condition is set to true.
Problem with that is that the second condition also will be true because nodes for that condition will be found
better would be to have a rowcount tag in the structure. If that is not possible, you can use the "Enhanced Receiver determination" where you can define a mapping which determines the receivers. There you can do anything complicated you want.
CSY

Similar Messages

  • After a successful home button repair, I've got a buzzing sound when I make or receive calls. No problem with the speaker as I can listen to online radio stations and my music.

    After a successful home button repair on my iPhone 4, I've got a buzzing sound when I make or receive calls. No problem with the speaker as I can listen to online radio stations and my music.

    I guess your definition of a "successful repair" is different from most people's.
    If you got it serviced by Apple, take it back to them.
    If you had it serviced by a 3rd party, Apple won't touch it. Take it back to whoeever fixed it for you.

  • [XML/XPATH] jaxen : problem with "parent" function

    Hello
    I have a problem with jaxen, when I try to use the XPath function parent :
    When I try this :
    import ...
    DocumentNavigator dn=new DocumentNavigator();
    try {
    objet=dn.getDocument("TESTXPath.xml");
    apath=dn.parseXPath("/Entry/Resultats/step/Population/individu/*");
    result=apath.evaluate(objet);
    System.out.println(result);
    apath=dn.parseXPath("/Entry/Resultats/step/Population/parent::*");
    result=apath.evaluate(objet); // ---> exception
    System.out.println(result);
    catch(Exception e) {
    e.printStackTrace();
    The first result is well displayed, but just before the second, I catch this exception:
    Exception in thread "main" java.lang.NoSuchMethodError: org.jdom.Element.getParent()Lorg/jdom/Element; at org.jaxen.jdom.DocumentNavigator.getParentAxisIterator(DocumentNavigator.java: 252)
    at org.jaxen.expr.iter.IterableParentAxis.iterator(IterableParentAxis.java:82)
    at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:139)
    at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:188)
    at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPat h.java:126)
    at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:107)
    at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:716)
    at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:239)
    at org.jaxen.BaseXPath.evaluate(BaseXPath.java:196)
    at MainTestClass.main(MainTestClass.java:85)
    However, the first query works good and I received list so I'm quite sure that it's not a problem of unfindable elements.
    Finaly I can't be syccessful to use XPath parent function:
    Either I catch an exception, or it returns nothing or empty list
    Isn't the XPath syntax correct in my second expression ?
    Can we do :
    /.../.../parent::* ? ou //individu/parent::* ?

    Thanks
    I think so, but.
    In fact I don't think I'm using different version of JDOM.
    I use eclipse with jdk1.4.2.
    I have downloaded JDOM-b10 and the only things I have done is to extract zip archive and to add all .jar files of the jdom directory in my library path.
    Do this is the only version of JDOM I'm using.
    All works perfectly excepted only the XPath parent method. It's strange that the other methods work fine.
    I don't knnow how to solve this problem ! so if you can help me I be very thankfull.

  • AirPort Express (Problems with multiple remote speakers

    I've been so far successfully using several AirPort Express base stations to stream music from Itunes to differant rooms in my house. A week ago I suddenly started getting an error message ("Unknown Error -3256) when attempting to stream to multiple rooms. Anyone else having this problem all of a sudden? I've gone thru the configuration for Airport and each base station and everthing seems to be in order.... Any ideas... Anyone? thanks

    A lot of people including myself have been having problems with the airport. We think it's the AirPort update or the security update that is causing problems. If you're experiencing problems or slow downs with your internet then that's also part of the update. Wait till the next update or we find a workaround to this problem.

  • Problems with counter in renaming interface not maintaining consistency across multiple libraries

    Happy New Year, all.
    We have a problem in Aperture that I was curious if others had, and I'm hoping somebody has figured out a workaround they will share with me. Originally, we used Aperture and it had one huge library for our different types of photography. We had to change away from that setup because if there was a problem it would take ages to troubleshoot a ~500GB library and perform actions like rebuilding the library. We didn't want to do this, but splitting into six libraries has improved the speed in general and has made rebuilding smaller individual libraries quicker.
    We shoot a lot of photos and want each photo to have a unique number (along with a custom name). We set up a rename option in Aperture that has "Custom Name_Counter" and set counter to be six digits. The problem this seemed to create is that the counter in the rename function doesn't produce a unique number consistently across libraries. If I'm in library A, and I rename a batch of files, the counter will go up and remember its last number as long as I stay in Library A. The minute I switch to Library B, the number is at where it was the last time I used Library B. This indicates to me that the preferences travel with the library.
    Does anybody know a way that I can have a global preferences file, rather than a library preferences file? It seems it maybe used to be this way, but one of the version 3 upgrades forced me to delete a preferences file for the Facebook bug a couple of version 3 subversions ago.
    On a different note, another problem with renaming is that it is so slow. Renaming master files for even 100 or so files takes minutes. Does anybody else have this happen? Sometimes it's faster, but I haven't been able to figure out a pattern to this.
    I've submitted feature requests for revamping the renaming interface for Aperture for at least a couple of years. It never seems to improve. iView Media Pro, a program I used six years ago, had a great renaming setup and I wish Aperture
    Maybe it's time to reinstall Aperture. I bought it on disc, so it's not through the App store. Does anybody have experience reinstalling? I would, of course, like to keep keywords and other preferences.

    hallerphoto wrote:
    Machine is a Mac Pro dual quad-core 2.16 GHz.
    I am unaware of a 2.16 GHz Mac Pro tower. Are you referring to a Macbook Pro or to an iMac? Or is it a configuration I am just unaware of?
    My concern is that it seems that you may be making major workflow compromises that might be better dealt with by hardware changes as feasible. E.g. most 2.16 GHz Mac CPUs are about 1/6 as strong as a top Mac Pro today or about 1/4 as strong as today's Macbook Pros, and that has huge implications on Aperture performance.
    Also, graphics processors of the 2.16 GHz era were ridiculously weak compared to modern Macs. Aperture has historically performed best with strong GPUs (e.g. the strongest G5 towers would not run Aperture without a GPU upgrade). If you stay with the existing box a GPU upgrade may (if feasible) be in order.
    You did not mention RAM, which has defining impact on Aperture performance.
    Even if no hardware upgrades are made, it is useful to know what hardware performance bottlenecks may exist. So some questions:
    • Which Mac(s), exactly?
    • Which OS version and which Aperture version?
    • How much RAM is on board?
    • If a Mac Pro, which GPU card is in use?
    • What mass storage (hard drives and SSDs), how connected and how full?
    Thanks.
    -Allen

  • The XPath expression  problem

    Hi everyone,
    I developed a workflow. I builded and deployed successfully.
    And I assing this workflow to a policy.
    I create a request, but this request gave a fail.
    Error in <assign> expression: <to> value is empty at line "181". The XPath expression : "" returns zero node, when applied to document shown below:
    Line 181 :
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:process/ns4:RequestID"/>
    <to variable="initiateTaskInput" part="payload"
    query="/ns2:initiateTask/task:task/task:payload/task:RequestID"/>
    </copy>
    It seems that I could not take requestID.
    Do you have any idea ?
    Thanks for your help.
    Regards

    How did you resolve the issue?  We're facing the same problem.

  • Airport Express problem with iMac G5 iSight - help needed!

    I bought an Airport Express (AX) last week, upgraded my OS to Leopard and installed Airport Utility fine. I could join my existing wireless network and everything worked fine for streaming itunes through my stereo. But this week Airport Utility has stopped being able to find the AX and I can't work out why - really need some help! Its in the same place as last week, close to the computer, and I tried another location right next to the Imac but didn't work. When I restore factory settings Airport Utility does recognise the device, and allows me to update settings for wirelessly connecting to my existing wireless network, so the light on the AX is solid green. But then AU again says it cannot find any AX wireless device. Can anyone tell me what I'm doing wrong???

    Hi I'm still battling with this - have connected the AX to my Imac via ethernet and it shows up fine in Airport Utility. Status light is green and it says its set up to connect to my existing wireless network using wireless connection. Security in Network Preferences is the same for both: WPA2 Personal.
    So I don't think there's a problem with the AX, and my current wireless network (BT Home Hub) is working fine.
    And when I restore factory settings Airport Utility can see the AX before updating settings so the wireless side of AX must work too.
    I'm figuring it must be something about the settings that mean AU can't see it anymore. But I can't work out what, since security is the same.
    Any ideas would be great!

  • Problems with counter

    Hello everybody.
    I have a problem with a counter used in counter-based maintenance.
    I'm sure that the characteristic was created correctly, so I think the problem is in the mesauring document.
    When I update the counter with a value like the previous(I do that so that scheduling dates will change), the counter resets itself, and at the next updated the the field "Total Counter Reading" is empty.
    Where is the error?
    Thanks advance.
    Viviana

    Hi,
    Though your query is not very clear, what I have understood is that you are creating a mes doc. for which the value already existing is X. You are creating a new meas doc.. with the same value X, your difference should be '0' and the total counter reading should remain as X only. Is it not happening in this way ?
    Regards,
    Bala.

  • Timing problem with counting edges

    Hello!
    I use a NI PCI-6221 DAQ card with NI-DAQmx to count edges of TTL pulses for a spectrometric application.
    It is extremely important that I count the pulses for a well-defined period of time. Typically, I want to count the edges that reach the counter in the period of 400 milliseconds.
    Normally, this works quite well, when I use a WHILE loop that reads and restarts the counter every 400 milliseconds. Things change when the PC I run the VI on has other programs running in the background. Expecially computing-time intensive programs delay the 400 milliseconds of the WHILE loop for up to several 100 percent, resulting in an wrong counter read.
    I tried to use a timed WHILE loop but this din't change anything, regardless of the timimg source (onboard clock or PCI-6221 counter) I applied.
    Has anyone encountered similar problems and found a solution? Isn't there a possibility to control the counting time by hardware?
    Thanks in advance!
    EresthorMessage Edited by Eresthor on 04-07-2005 08:17 AM

    Hej Lynn,
    of course your idea works, thank you. It works extremely well this way, too.
    My problem with this approach is that I need both counters on the PCI-6221 to count data from my spectrometer simultaneously on two channels. That's why I would like to trigger the counter in a different way, for example with a clock.
    Is there no way to trigger the counter with the timebase of a hardware clock on the card? Or ist there another possibility without wasting a counter?
    Eresthor

  • Time Capsule/AirPort Express problem with DHCP server

    Hi everyone,
    I seem to be having some weird issue with my home network.  I use a Time Capsule (2011) as my main router and a new AirPort Express as a wireless bridge (router set to "Extend a wireless network", the LAN port is connected to network printer).  Recently, it seems that at least once or twice a week that the DHCP server on my router stops working.  Computers that have static IP addresses have no problem accessing the internet or my local network, but  devices that don't have static IPs  are unable to join the network (over Wi-Fi or ethernet) because they are not being assigned an IP.  This never happened before.  I'm not sure if it has anything to do with the recent firmware update.  Anybody else seem to be having this problem?  I am able to get the DHCP server working again by restarting the Time Capsule or by setting the computer or device that won't connect to a static IP.  Really curious why this seems to be happening…
    Thanks for all the help guys

    I am having the same problem with the same setup: a 2011 Time Capsule and an Airport Express. I've had my Aiport Express hooked in for about 2 years, so I know it is not the problem. The only difference I have is the DHCP will stop working on the ethernet, but still work over WiFi from the TC. Rebooting the Time Capsule fixes the DHCP issue.
    I am running version 7.6.4 in the Time Capsule.

  • Airport Express Problems with restarting

    Hi there,
    I am having a problem with my Airport Express every time I try to change settings when it updates and restarts the Airport Express cannot be found by the Airport Utility.
    Background:
    I have not used my Airport Express for about a year or so now.. but have pulled it back out to use on a new computer hooked up for media but does not have wireless. I was going to use the Airport Express to connect to my existing wireless network and then hook the new computer through the ethernet connection. But I cannot seem to get the Airport Express to cooperate and update and then restart, every time I do that it is undetectable by the airport utility. I have tried doing hard resets and factory resets on the airport. Has anyone else ran into any problems like this?
    Thank you

    cr3at1ve wrote:
    I am having a problem with my Airport Express every time I try to change settings when it updates and restarts the Airport Express cannot be found by the Airport Utility.
    Background:
    I have not used my Airport Express for about a year or so now.. but have pulled it back out to use on a new computer hooked up for media but does not have wireless. I was going to use the Airport Express to connect to my existing wireless network and then hook the new computer through the ethernet connection. But I cannot seem to get the Airport Express to cooperate and update and then restart, every time I do that it is undetectable by the airport utility. I have tried doing hard resets and factory resets on the airport. Has anyone else ran into any problems like this?
    Welcome to Apple's discussion groups.
    Please supply some details about the rest of your local network, including brand(s) and model(s) of your Wi-Fi equipment, including your AirPort Express. Configuring a Wi-Fi network with multiple base stations can be tricky. The details you need will depend on the particulars of your equipment.

  • Should Device Test find problem with counter?

    Hello!
    I am have one problem with PCI 6251 board. It seems to me that something happening with counter 0. Several days ago everything was ok, but now any counter output does't appears on its terminal (on BNC 2120 block). When I see at the signal from it on the oscilloscope, I can see right shape of the pulses, but about 10 mV amplitude. Everyting is perfect with counter 1 output.
    OK, I run the self-test and it is passed. I have tried to reset the devce and try again - the same result. Self-test is passed, but counter 0 seems to be not functioning.
    Is it another possibility to check the device?
    Thanks in advance!

    Hi Baturin,
    It is quite possible that your BNC connector has problems. If you were able to route the output of Counter 0 to a PFI line, and able to see a good signal, then your terminal block is at fault. The first things you should look for are the pins. Sometimes, the pins on the connectors are bent, and thus do not provide a reliable contact. Second thing you should look for is any external damage. Finally, use the test panel in Measurement and Automation Explorer (MAX), in the counter tab to test the card (which is probably what you are already doing).
    If all of the above still seem to confirm your initial diagnostic of a bad BNC connector and a good M series card, then please call us. We would then do a final troubleshooting before sending your BNC connector back to be repaired.
    Thank you and best regards,
    Nathan
    Applications Engineer
    National Instruments

  • When attempt to download 10.5, receive message: "...problem with this widows installer package. a program run as part of the set up did not finish as expected. ..." -- what to do?

    I have attempted to upgrade my iPad which is necessar to downloan an app I want (My Radar).  The iTunes on my computer will not process the upgrade of 10.5 without message:  "There is a problem with this Windows Installer Package. A program run as part of the set up did not finish as expected. Contract your support personnel or packae vendor."  ..... Little old lady needs help, my iTunes "appears to be 10.5 on my PC; however, will not upgrade my iPad.  I have BitDefender as the "protector" on my PC if that is the issue.

    Go to support.microsoft.com/fixit
    In section 2 click on: Install or upgrade software or hardware
    Then click on the title in section 3: Fix problems with programs that cannot be installed or uninstall
    This link may get you there:  http://support.microsoft.com/mats/Program_Install_and_Uninstall/
    Let it run and then try to download it again

  • How to re-install iTunes after receiving "There is a problem with this Windows Installer package ..." message?

    Hi,
    This is how it all started. When the new update for iTunes 11 came out, I tried to update it. After I had updated it I found nothing had changed. So i tried rebooting my computer and everything and found that still nothing had changed. So I tried uninstalling it. After that I tried to re-install it, but it came up with the
    "There is a problem with this Windows Installer package ..." message. So I looked around the internet and found a website that told me to uninstall all Apple products. So i did that. When i tried to uninstall Apple Software Update, it came up with the 'problem with windows' message again. So I used Revo to uninstall it. So I rebooted and tried to install it again. It installed Bonjour and all of the other programs but stopped halfway and gave me the 'proplem with windows' message again. I've looked around and most of the solutions have been to try and repair Apple Software Update, but the problem is, I've already deleted it. So can someone PLEASSEEEE help me fix this problem! (Sorry for droning on)

    http://support.microsoft.com/mats/Program_Install_and_Uninstall  try this an see if it fixes it.

  • Trouble with itunes upgrade I receive an error message problem with windows installer package

    I am trying to upgrade itunes.  I am running windows vista 64.  Everytime I try to upgrade I get an error that says Problem with windows installer package.  Anyone know how to fix this?

    No drivers in LowerFilters.
    No drivers in UpperFilters.
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the “Add or Remove Programs” control panel.
    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

Maybe you are looking for

  • How do I get around the email Apple ID problem on iCloud?

    My Primary Apple ID is not an email address. After following Apple's prompts on my iPhone after installing IOS5 I (and I regret this emmensely), created a new ID with my primary email, the same one that is the email linked to my other Apple ID. It al

  • System suddenly is using all ram

    Hi, Can someone please assist as to what may be causing the issue I'm having? Problem description: System is cycling every 6 to 8 minutes using all ram (16) gigs. This has not happened before. I”m lost as to what to do other than the basic. EtreCheck

  • DC created and activities released but not sync

    Hi everyone, I´m working with a B2B custom app, I have created a DC, link the used public DC´s etc etc . . .and then make a custom project from this, I already make deploys and everything is working, the DC are shown in Inactive DC..... well, the pro

  • Ship-to-party in billing doc

    Why is ship-to-party defined in billing document item level? why is it not defined in billing document header level? Regards Nikhil

  • PD 9982 not the latest versions of apps

    Hello, why does the 9982 not get the latest release of Soundhound and evernote? My Z10, Q10 oder Z30 get it. Could you please fix that and take care that all Z10 releases are also released for the 9982? Thanks!!