cancel
Showing results for 
Search instead for 
Did you mean: 

File2Proxy

Former Member
0 Kudos

Hi,

A xyz system sending a file of 100 records and in it 20 have error those error messages have to come back XYZ dircetory this senario is file to proxy ,plz help me with solutions

Regards,

Eswar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prasad,

U can achieve the above requirement without using the BPM also.

1.U will have 2 message mappings. 1 for valid records into the proxy. Other for the invalid records to the file.

This is required because.. u will face problem if u use proxy in multimapping with a File adapter(Not supported).

2.u will have correspondingly 2 operation mappings.

3.Since the same sender is receiver for file and also for proxy... configure accordingly in configuration.

U will have 2 interface determinations and also 2 receivers in receiver determination.

This will work out.. try it.

If still any prblm.. pl do post..

Babu

Answers (3)

Answers (3)

former_member200962
Active Contributor
0 Kudos
A xyz system sending a file of 100 records and in it 20 have error those error messages have to come back XYZ dircetory 
this senario is file to proxy

The Source file has 100 records....out of which 20 are error messages

Maintain two Receivers in receiver Determination....one for PROXY and second will be your FILE directory.

Now in the mapping for FILE --> 20Error --> FILE flow maintain validation check which will separate out these 20 msgs from the rest and populate it in the target FILE structure.

Message Branching.

Regards,

Abhishek.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

<<<u will have to use a BPM..

you don't have to use a BPM for sure

it's a simple file - proxy (async)

and proxy - file (for messages with errors)

so nothing easier

Regards,

Michal Krawczyk

former_member206760
Active Contributor
0 Kudos

Hi Michal,

i suppose the error here means the error in the message mapping between file and proxy....

how can we achieve that without BPM ..)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>i suppose the error here means the error in the message mapping between file and proxy....

that's the point

you can send them to proxy anyway and from there to PI again

this way you don't need to use a BPM

unless the proxy is a standard one (you cannot change it's code) - then it would be a little bit more difficult

Regards,

Michal Krawczyk

former_member206760
Active Contributor
0 Kudos

ah ok....did not think of that....thanks....

former_member206760
Active Contributor
0 Kudos

u will have to use a BPM..

1. receive step

2. transformation step which will do the 1->N mapping to have one message for each record..

3. use a block in par for each mode...inside that u can use the transformation step to do the actual maaping...and if there is any

error u can do exception handling .

4.in the exception handling block u can use async send step to send the file with errorneous records to the directory ERROR.

5. if there is no error in the par for each block ..then u can use a async send step to send the file to directory SUCCESS