on 06-29-2007 12:01 PM
Hi all,
I'm working in an interface where XI sends a big file (greater than 1MB) via FTP to the client. The client needs an empty file to be created once the file has been fully sent from XI, with format <b>.ok</b>, so that their server can trigger their interface to process the file.
They want this procedure to ensure no partial files are processed.
Could someone please help me out on how to do this in XI.
Thank you.
<b>Juan Carlos</b>
Write a script and then trigger this script using the option Command Processing after MessageProcessing in the receiver file adapter.
Once the entire file is created , the script will be triggered and this will create the New file as you want it.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all for you help. I did a test and I ended up using "use temporary file" option.
Cheers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I'm working in an interface where Extrnal Server sends a big file (greater than 1MB) via FTP to client. The cleint needs an empty file to be created once the file has been fully sent from External Server, with format .ok, so that their server can trigger their interface to process the file.
They want this procedure to ensure no partial files are processed.
Could someone please help me out on how to do this in XI.
Thank you.
HI rajendra
look into this
file.checkFileModificationInterval=<msecs>
Use this parameter to define a length of time (default value: 0) for the file/FTP adapter to wait after the file has been read to see if the file length changes. If this is the case, the system repeats the read procedure. This is useful if the files to be imported by the adapter are generated dynamically without being locked on the operating system level (for example, files received from FTP servers). Without this workaround, the file/FTP adapter cannot recognize whether the generation of the file is complete in such applications with operating system functions.
regadrs
nisar
Hi,
You could use the option put file Via Temporary File, which causes the FTP adapter to write the file to temorary file and then rename it when it is complete.
Rgds Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the answer Shabarish but I can't use that option because I will still end up with the same problem: sending a big file via FTP which could be picked up by the client without being completely sent.
Unless XI only delivers the file to the clients server once it has been completely transfered. I will run a test for this.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Bhavesh for you response but if possible could you help me out with the script? A template could be very usefull.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
or maybe use;
<i>Put File
If the file is to be created on the server immediately, select Directly.
If the content is to be gathered in a temporary file first before the final file is put on the server, choose <b>Use Temporary File</b>.</i>
Ref: http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Please let me know if it works .... I guess it should but i am not quite sure.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.