Skip to Content

Receiver Determination with not EQUAL operation issie

Hi All,

I have File to Sftp Scenario where I am sending 2 different file like below:

1. 2088.4567.201789938874.MY6,2001.4567.201789938874.MY6

2. Other than above files.

I used in condition at Receiver Interface Condition in PI Integrated Configuration like below:

1. FileName = contains 2088.* or 2001.* --> Receiver CC _File1

2. FileName NOT EQUAL above --> Receiver CC_File2

But when i send file name 2022_20140130.MY6, then it is not going to recever CC_File2.

How to handle this requirement ?

I am not using Mapping, but I am using Contex Object FileName to validate the name of the file at run time.

Regards,

Ramu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 31, 2017 at 08:38 AM

    This can be achieved in 2 ways.

    Approach1: In the second receiver condition, i.e. FileName NOT EQUAL above, instead of OR try to use AND condition.

    Approach 2: Use only first receiver condition and in ICO we've an option, If No Receiver Found Proceed as follows. there select following receiver and mention CC_File2.

    --Priyanka

    Add comment
    10|10000 characters needed characters exceeded

  • May 30, 2017 at 03:32 PM

    Please paste the XPath expression you have used in the condition of Receiver Determination. Definitely, there is some problem in the expression, else it should work.

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded

  • May 31, 2017 at 09:05 AM

    Equals/Not Equals to operator (=) dosen't work with Widlcards(*) only approximately does , so i would suggest to go with Approach 2 suggested by Priyanka.

    Add comment
    10|10000 characters needed characters exceeded