Skip to Content
author's profile photo Former Member
Former Member

File sender adapter (FTP) -> processing mode "Archive"

Hello all

We're polling files from an external FTP server. For this I created a scenario on XI according to this thread:

...

When setting processing mode to "Archive" in the file sender adapter (ftp) it polls the file, stores it to the archive directory I specified and then tries to delete the file on the FTP server side. This returns me an error because we're not allowed to delete the retrieved files on the FTP server!

Because of this error the file adapter stops further processing and does not poll all the other files.

How can I disable this deletion mechanism while keeping processing mode to "Archive"?!?!?

We do not want to use processing mode "Delete" or "Test" and we don't see other options to influence this behaviour.

Thanks for any guideance on this one in advance!

Kind regards,

Renaud

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Jul 27, 2006 at 10:01 AM

    Hi,

    You can look into the option of using an OS command in your Sender File Adapter.

    <b>Keep the mode as TEST. In the OS command , write a simple OS command to move it to the corresponding Directoy.</b>

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded

    • Reanud,

      To be frank am seriosuly lost here in what the entire requirement here is 😔

      <i>In repository I created dummy data types, message types and message interfaces. No mapping programs and interface mappings!</i>

      Well, in this case you are using XI as a mere FTP service.

      So far so good.

      But, if you are going to change the filename in the Message mapping by appendding a time stamp and then creating the directory dynamically, then you will need to have a Content Conversion on both the sender and receiver file adapter which will actually complicate things.

      So, the better and more simple way to do this is .

      1. Use XI as the FTP service.

      2. Dump all Files in a Dummy Directory.

      3. In the receiver file adapter , use the TIMESTAMP option to append the Timestamp to the file.

      Now, you can write a Script that will get executed from the file adapter that will pick these files from the dummy directory, extract the TImeStamp, create the folder dynamically and then move files to this new folder.

      Let me know if i have understood the requirements correct. and if this solution is feasible.

      Regards,

      Bhavesh

  • author's profile photo Former Member
    Former Member
    Posted on Jul 27, 2006 at 10:01 AM

    Hiiii,

    Chk out this thread

    archiving-ftp-files

    this has the reply for ur answer

    cheers

    jithesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi jithesh

      Just read through it... doesn't fit to my problem. But there are some other interesting info that I'll keep in mind.

      Thanks!

      BR,

      Renaud