cancel
Showing results for 
Search instead for 
Did you mean: 

Error:Returning to application. Exception: com.sap.aii.adapter.xi.routing.RoutingException: Can't determine receivers because condition evaluation failed

Former Member
0 Kudos


my requiremant is one sender and based on receiver detremination condition it should go to many receivers.

Just to elaborate the requirement.

Observe the Xpath example below:

<Identifier>

    <Name>abc</Name>

    <Value>first</Value>

</Identifier>

  <Identifier>

    <Name>cdf</Name>

    <Value>come</Value>

   </Identifier>

   <Identifier>

    <Name>ten</Name>

    <Value>go</Value>

   </Identifier>

Now am using the following Xpath.

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name[1] ≈ abc  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value[1] ≈ first  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name[2] ≈ cdf  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value[2] ≈ come AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name[3] ≈ ten  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value[3] ≈ go

any suggestions for the correct xpath are welcome

thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Mohammed,

Have you checked the multiline checkbox in the condition editor to check all the occurrences?

Are you sure that you need the AND operator and not the OR operator?

Regards.

Former Member
0 Kudos

Thanks Vila,

I have checked the multiline check box .

Still the error.

Thanks,

iaki_vila
Active Contributor
0 Kudos

Hi Mohammed,

Could you share a screenshoot with the payload and the rule configuration?, may be it's a typo error and we can check it easier.

Regards.

Former Member
0 Kudos

Hi

The correct xpath should be like this

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name ≈ abc  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value ≈ first  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier[1]/Name ≈ cdf  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier[1]/Value ≈ come AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier[2]/Name ≈ ten  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier[2]/Value ≈ go

Harish
Active Contributor
0 Kudos

Hi,

so you want to trigger based on the below condition

Receiver 1

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name[1] ≈ abc  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value[1] ≈ first  or


Receiver 2

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name[2] ≈ cdf  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value[2] ≈ come or


receiver 3

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Name[3] ≈ ten  AND

/p1:MT_fd/MessageHeader/OtherArea/Identifier/Value[3] ≈ go


so please apply this condition to different receiver service. Or if it is for one then put or in between the condition

Former Member
0 Kudos

Thanks Harish,

Each receiver need to selected based on all 6 conditions.

Regards,