cancel
Showing results for 
Search instead for 
Did you mean: 

File Adapter (FTP) Receiver modification check

Former Member
0 Kudos

Hi All,

In the sender adapter we can check advanced mode and then check the modification of the file to be picked up so we always take the full file.

We have a scenario where XI writes a file in a server via FTP and a job is executed in that server to process the file, but... How could I be sure that the file is completed before the job is executed? Is there any way to check if the file is changing and wait until it's full to finally write it into the target directory?

My concern is that the job could be executed with an incomplete file...

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

try this:

use: Run Operating System Command After Message Processing

and inside it create a flag file (with the same name

as original but flg extension)

then in your job check for the flag file

and only it the flag exists poll the original file

but try this approach on dev first as you need to be sure that

After Message Processing is done after a large file

is in folder

Regards,

michal

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Michal,

That idea looks fine, we'll try to apply it.

Thank you very much.

MichalKrawczyk
Active Contributor
0 Kudos

no problem

Regards,

michal