cancel
Showing results for 
Search instead for 
Did you mean: 

ftp file transfer problem

Former Member
0 Kudos

hello

I have 2 scenarios file 2 RFC using FTP and file 2 mail. every file for each RFC or mail has different name. (the files are XML).

in the ftp sender in the name of the file I write the begining of the file name,(for exampel cost.xml, ship.xml, etc.). the reason that I write * is becuase at the end of the name there is an add of the date and time, so it is different for each one.

the thing is that in the same ftp directory I have both the files and it seems that it doesnt always collect the correct data. (for example if I run scenario A, it will collect the file for scenario B).

another thing is that in the FTP it will always collect the oldest files before it will collect the new one.

does any one know why does it happens with the files and how can I fix it? (do I have something to configure in the ftp sender).

is there a way also to deal with picking each file starting with the oldest one?

Thanks

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

again, thanks for the new information, but this scenario good for NFS and my scenario using FTP.

is there a way to do it with *FTP FILE Transfer?*

SudhirT
Active Contributor
0 Kudos

Hi Kfir,

This feature is available in both the protocols FTP and NFS.

Please check.

Thanks!

Answers (5)

Answers (5)

Former Member
0 Kudos

Kfir,

use File Exclusion Mask...by this you can easily achieve what you are looking for.

Regards,...

former_member192295
Active Contributor
0 Kudos

Hi,

Instead of writing file name a.xml, try with a.* option. Meanwhile enable archive option at sender channel, problem will be sort out easily.

Former Member
0 Kudos

since I am using the FTP I dont have the processing sequence "by date". it is in NFS.

I have different comm. channel - 1 for each scenario.

still it is collecting different files to different scenarios and I think it is becuase of the *, even though I though it should work with it.

so how can I different the collect of the files by the date and the time, to pick first the oldest one?

SudhirT
Active Contributor
0 Kudos

Hi Kfir,

If I understood your requirement correctly, that you want the different scenarios to pick the relevant file from the same directory. if this is the requirement then you can go for Exclusion Mask.

Select the file starting with ship.* for your file to file scenario and put the file name in exclusion mask column which you dont want for this scenario.

Check the blog

Also note that put the correct directory name in place of NOTHING.

Thanks!

SudhirT
Active Contributor
0 Kudos

Hi,

I will suggest you to use different names for two different scenario or use the Processing Sequence parameter according to your requirement.

Thanks!

prateek
Active Contributor
0 Kudos

Your first problem is a bit wierd. The channel should pick the file as per the naming convention. You try the second solution and let us know the result.

is there a way also to deal with picking each file starting with the oldest one?

Check the "Processing Sequence" parameter in file sender channel and use "By Date"

Regards,

Prateek