Skip to Content
0

Receiver Determination with not EQUAL operation issie

May 30, 2017 at 08:01 AM

91

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Priyanka Anagani May 31, 2017 at 08:38 AM
2

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member May 30, 2017 at 03:32 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Manoj K May 31, 2017 at 09:05 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded