cancel
Showing results for 
Search instead for 
Did you mean: 

Xpath Syntax

Former Member
0 Kudos

Hello all,

I am using the X-path expression in the Receiver determination step of XI.

My message type is:

<MT_test1>

- <LGYCD>

<LGY1>RSB</LGY1>

<CMP1>500501502</COMPS1>

<LGY2>SPT</LGY2>

<CMP2>503504510</COMPS2>

</LGYCD>

</MT_test1>

If I use condition:

(/p1:MT_test1/LGYCD[LGY1!='RSB'] &#8800; ' RSB ') then send to BS_RSB.

(/p1:MT_test1/LGYCD[LGY2!='SPT'] &#8800; ' SPT ') then send to BS_SPT.

<i><b>Then the message is sent to the Legacy system without any errors.</b></i>

If I use condition like this:

(/p1:MT_test1/LGYCD/LGY2 = ' SPT ') then send to BS_SPT.

(/p1:MT_test1/LGYCD/LGY1 = ' RSB ') then send to BS_RSB.

And also changing the single quotes to double quotes and giving some space etc.

I am getting the error "NO receiver found" .

Can anyone explain the cause of the error.

Thankyou.

Accepted Solutions (0)

Answers (2)

Answers (2)

moorthy
Active Contributor
0 Kudos

HI,

This blo gmay help you to understand the some syntax.

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Regards,

Moorthy

Former Member
0 Kudos

Hi,

I have tried all the options in the Blog but didn't helped me.

Thankyou.

agasthuri_doss
Active Contributor
0 Kudos

Hi,

1) Check out your XML data which comes into your system.

2) Check whether Receiver is activated.

Regards

Agasthuri Doss

Former Member
0 Kudos

>>(/p1:MT_test1/LGYCD/LGY2 = ' SPT ')

The Xpath expression looks fine. What is the value for the node LGCY2? Remember it is case sensitive...

Can you try giving these

(/p1:MT_test1/LGYCD/LGY2 =SPT) or

(/p1:MT_test1/LGYCD/LGY2 ="SPT")

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Jai Shankar,

I have tried that also but I am getting the error Receiver not found.

Thank you,

JE.