on 03-31-2016 8:39 AM
Hi Experts,
I am using the below expression in RECIVER PI 7.31singlestack
/p1:VDA490500/S512/ABCDE ≠ 155 OR /p1:VDA490500/S512/ ABCDE ≠ 37 OR /p1:VDA490500/S512/ ABCDE ≠ 60 OR /p1:VDA490500/S512/ ABCDE ≠ 060 OR /p1:VDA490500/S512/ ABCDE ≠ 117 OR /p1:VDA490500/S512/ ABCDE ≠ 006 OR /p1:VDA490500/S512/ ABCDE ≠ 28 OR /p1:VDA490500/S512/ ABCDE ≠ 371 OR /p1:VDA490500/S512/ ABCDE ≠ 100
Requirement is anything other than 155,28,37,060,60,371 we have to send to target.But it is not happening with above condition.
When I checked 371 is went successfully processed supposed to not to go the receiver.
What condition do I need to use restrict above values in the XPATH message.
/p1:VDA490500[(S512/ABCDE = "155" or S512/ ABCDE= "37" or S512/ABCDE = "60" or S512/ ABCDE ="060" or S512/ABCDE ="006" or S512/ABCDE = "28" or S512/ABCDE = "371")]
Or
(/S512[(ABCDE != '1'and ABCDE != '2' and ABCDE != '3')]) EX
Above expressions are correct as per my requirement.
Field are capitals only in the input payload.
Thanks
Prem
Hi Prem,
/p1:VDA490500/S512/ABCDE ≠ 155 OR /p1:VDA490500/S512/ ABCDE ≠ 37 OR /p1:VDA490500/S512/ ABCDE ≠ 60 OR /p1:VDA490500/S512/ ABCDE ≠ 060 OR /p1:VDA490500/S512/ ABCDE ≠ 117 OR /p1:VDA490500/S512/ ABCDE ≠ 006 OR /p1:VDA490500/S512/ ABCDE ≠ 28 OR /p1:VDA490500/S512/ ABCDE ≠ 371 OR /p1:VDA490500/S512/ ABCDE ≠ 100
The above expression you need to use AND operator instead of OR operator which means like below.
/p1:VDA490500/S512/ABCDE ≠ 155 AND /p1:VDA490500/S512/ ABCDE ≠ 37 AND /p1:VDA490500/S512/ ABCDE ≠ 60 AND /p1:VDA490500/S512/ ABCDE ≠ 060 AND /p1:VDA490500/S512/ ABCDE ≠ 117 AND /p1:VDA490500/S512/ ABCDE ≠ 006 AND /p1:VDA490500/S512/ ABCDE ≠ 28 AND /p1:VDA490500/S512/ ABCDE ≠ 371 AND /p1:VDA490500/S512/ ABCDE ≠ 100
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Both
Requirement is anything other than 155,28,37,060,60,371 we have to send to rest of other to target.
/p1:VDA490500/S512[(ABCDE = "155") or (ABCDE= "37") or (ABCDE = "60") or (ABCDE ="060") or (ABCDE ="006") or (ABCDE = "28") or (ABCDE = "371")] EX
or
/p1:VDA490500/S512/ABCDE ≠ 155 AND /p1:VDA490500/S512/ ABCDE ≠ 37 AND /p1:VDA490500/S512/ ABCDE ≠ 60 AND /p1:VDA490500/S512/ ABCDE ≠ 060 AND /p1:VDA490500/S512/ ABCDE ≠ 117 AND /p1:VDA490500/S512/ ABCDE ≠ 006 AND /p1:VDA490500/S512/ ABCDE ≠ 28 AND /p1:VDA490500/S512/ ABCDE ≠ 371 AND /p1:VDA490500/S512/ ABCDE ≠ 100
which one I need to use.
could you please suggest me.
Thanks
Hi Prem,
I am readjusting because I thought you are using or. Anyway, here is what it should look like
/p1:VDA490500/S512[(ABCDE != "155") and (ABCDE != "37") and (ABCDE != "60") and (ABCDE !="060") and (ABCDE !="006") and (ABCDE != "28") and(ABCDE != "371")] EX
Why don't you try it out.
Regards,
Mark
Hi Mark,
Thanks for your support.It is working but I have added 2 more conditions.
below expression is correct one?
/p1:VDA490500/S512[(WKKND != "155") and (WKKND != "37") and (WKKND != "60")and (WKKND !="060") and (WKKND !="006") and (WKKND != "65") and (WKKND != "THO") and (WKKND != "28")
and (WKKND != "371")] EX
could you please confirm.
Thanks
prem
Hi Mark,
thanks for your support.
I have below requirement.
one condition should be like this /p1:VDA490500/S512[(ABCDE = "155")and another
condition /p1:VDA490500/S512[(GHIJK != "155")-->but in this condition we are getting spaces.
could help me how to write in this case.
Requirement is we have same INTERFACE is sending the
data for 2 different customers but we need to send ABCDE =155 AND we don’t wont to send for field EFGHI != 200,But when check the xml data for this one we aregetting spaces after 200.interface is same we are getting 2 different messages.
Could you please provide correct x path condition.
Thanks
Prem
Hi Mark,
thanks for your support.
I have below requirement
one condition should be like this /p1:VDA490500/S512[(ABCDE = "155")and another condition /p1:VDA490500/S512[(GHIJK != "155")-->but in this condition we are getting spaces.
Could help me how to write in this case.
Requirement is we have same INTERFACE is sending the data for 2 different customers but we need to send ABCDE =155 AND we don’t wont to send for field EFGHI != 200,But when check the xml data for this one we are getting spaces after 200. we are getting like below In the xml.<EFGHI>123456 </ EFGHI >interface is same we are getting 2different messages.
Could you please provide correct x path condition.
Thanks
Prem
Hi Prem,
You can still simplify your expression, try using this, remember to check multiline and set no receiver found behavior to stop processing instead of throwing error:
/p1:VDA490500/S512[(ABCDE = "155") or (ABCDE= "37") or (ABCDE = "60") or (ABCDE ="060") or (ABCDE ="006") or (ABCDE = "28") or (ABCDE = "371")] EX
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prem,
Check these blogs for more information
Xpath Condition in Receiver Determination - Process Integration - SCN Wiki
Regards,
Praveen.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.