cancel
Showing results for 
Search instead for 
Did you mean: 

'Invalid format of condition value' in router condition

2022sapis
Explorer
0 Kudos
362

Hi

I am using router after request-reply pull from odata in local integration process.and i need to route records with values containing '@' in it for further processing and rest of the data without '@' should route to default end route.

I have read below blogs and hence tried the conditions like :

1. https://blogs.sap.com/2017/06/01/sap-cloud-platform-integration-content-filter-in-detail/

2. https://answers.sap.com/questions/12932533/please-explain-conditional-router-in-detail-in-cpi.html

non-xml Conditions tried:

/org/dept [ contains($cleanEmail, '@')] , //dept[contains(email, '@')], /org/dept/email [ contains($cleanEmail, email)], //dept[ contains($cleanEmail, '@')]

*cleanEmail: it is the property value of type xpath,

Expected output: org with <email> 879879879ho809<email/> should be routed to default end route2 and rest for processing through route 1.

<org>

<dept>

<email> sdnsap@gmail <email/>

</Name>

</ShipAddres>

</dept>

<dept>

<email> cpi|sdnsap@gmail<email/>

</Name>

</ShipAddres>

</dept>

<dept>

<email> 879879879ho809<email/>

</Name>

</ShipAddres>

</dept>

</org>

i get error :Invalid format of condition expression value.

Can anyone advise here,

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

AdityaMani
Participant
0 Kudos

Hi,

As I know your requirement you can also use router after groovy

Answers (0)