cancel
Showing results for 
Search instead for 
Did you mean: 

Condition in NWDS not working but working in Swing Tool Integration Builder

Former Member
0 Kudos

Hi All,

I am creating a simple IFlow  (File to File ) with a condition in it. I did add Condition in the NWDS , but when I execute the iFlow it doesnt check the condition.

Scenario:

Send a Matmas XML File from File Source to another Folder.

Condition:

 

/ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1[count(ZZKLML) > 0]

/ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1[count(ZZKLML2) > 0]

    

/ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1[count(ZZKLML3) > 0]

Issue:

Deployed with Conditions in NWDS:

When I excecute the iFlow , it doesnt check condition. I created a XML File without these Segments, but the message went through and created a File.

Deployed with Conditions in Integration Builder ( SING Tool)

The Message is delivered successful but no File, is created due to condition in Integration Builder

Condition:

/ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1[ EXISTS(ZZKLML) OR   EXISTS(ZZKLML) OR EXISTS(ZZKLML)]

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Giressh,

In your condition remove the whitespace before XPath,It will work.

Former Member
0 Kudos

hi Sritharan,

Firstly Sorry for creating duplicate threat, It was unintentional.

Thank you very much for this Input of deleting "White space" in front of "Xpath". We tried it without space and Voila, it worked!

Funny that NWDS creates this whitespace, that I have to delete it..

Anyway thank you very much for your Input 🙂

Answers (2)

Answers (2)

former_member182412
Active Contributor
0 Kudos

Hi Gireesh,

Use below condition in NWDS.


(EXISTS(Xpath./ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1/ZZKLML)) OR (EXISTS(Xpath./ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1/ZZKLM2)) OR (EXISTS(Xpath./ZMATMAS_EXT/IDOC/E1MARAM/Z1MARA1/ZZKLM3))

Regards,

Praveen.

former_member182412
Active Contributor
0 Kudos

Hi Gireesh,

Did you check this blog.

Regards,

Praveen.