cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH question

Former Member
0 Kudos

Hi guys,

i am little bit confused about following requirement. Normally is it easy to explain. But in interface determination expression it doesn't work for me.

STATUS TYPE TYPE MAPPING
NOT A NOT QQNOT QAA
ANOT QQNOT QAB
NOT AQQQAC
AQQQAD

I got following error message for;

STATUS TYPE
BQQ

Inbound interface found several times (for same sender and receiver) for the outbound interface

My xpath expression was;

(/Status!="A") and (/Type=!"QQ" or /Type=!"QA") EX

(/Status="A") and (/Type=!"QQ" or /Type=!"QA") EX

(/Status!="A") and (/Type="QQ" or /Type="QA") EX

(/Status="A") and (/Type="QQ" or /Type="QA") EX

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Peter,

Please modify the xpath condition as below

(/Status!="A") and (/Type=!"QQ") AND  (/Status!="A") and (/Type=!"QA") EX

(/Status="A") and (/Type=!"QQ") AND  (/Status="A") and (/Type=!"QA") EX

(/Status!="A") and (/Type="QQ" or /Type="QA") EX

(/Status="A") and (/Type="QQ" or /Type="QA") EX

regards,

Harish

Former Member
0 Kudos

Hi Harish,

i'll check it and let you know.

Thank you,

PM

Former Member
0 Kudos

Hi Harish,

no luck!

Harish
Active Contributor
0 Kudos

Hi Peter,

Your input is for which mapping?

STATUSTYPETYPEMAPPING
NOT ANOT QQNOT QAA
ANOT QQNOT QAB
NOT AQQQAC
AQQQAD

Please try with all combination and let me know which one is not working.

regards,

Harish

Former Member
0 Kudos

Hi

my input was for mapping C

STATUS TYPE
BQQ
Harish
Active Contributor
0 Kudos

Hi Peter,

The condition is good for this scenario, can you please check if other scenario is working?

the problem may be the namespace. you can try with simple condition first then try with whole logic.

(/Status!="A") and (/Type=!"QQ") AND  (/Status!="A") and (/Type=!"QA") EX

(/Status="A") and (/Type=!"QQ") AND  (/Status="A") and (/Type=!"QA") EX

(/Status!="A") and (/Type="QQ" or /Type="QA") EX

(/Status="A") and (/Type="QQ" or /Type="QA") EX

Former Member
0 Kudos

Hi

one of my example was Status A and the Type was QQ

the routing rules as follow;

/Header[(Status ="A" and Type !="QQ" or Type !="QA")]  EX

/Header[(Status ="A" and Type ="QQ" or Type ="QA")]    EX

But again:

Inbound interface found several times (for same sender and receiver) for the outbound interface



Harish
Active Contributor
0 Kudos

Hi Peter,

the below routing rule is not correct

/Header[(Status ="A" and Type !="QQ" or Type !="QA")]  EX

/Header[(Status ="A" and Type ="QQ" or Type ="QA")]    EX

The correct routing rule is

/Header[(Status ="A" and not (Type ="QQ" or Type ="QA"))]  EX

/Header[(Status ="A" and (Type ="QQ" or Type ="QA"))]    EX

regards,

Harish

Former Member
0 Kudos

Thank you! Resolved!

Answers (0)