Skip to Content
avatar image
Former Member

Incomplete FTP read

Hi,

In my File to Idoc scenario, when I am testing with big file, it gets failed sometimes. The reason being the file is read by the adapter even before it is completely ftped.

I have checked with "Msecs to wait before modification check" but it is not working in my case. I think it works only for NFS.

Pls let me know if there is any work around in XI for this?

regards

Anirudh.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Oct 20, 2008 at 09:10 AM

    Hi,

    Give me a broader view like when are you scheduling the communication channel and how often do u post the file.

    Moreover, try to increase the interval length of FTP.

    Regards

    Krish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 09:13 AM

    Hi,

    You can also do one more thing.

    Put the complete file with different naming convention. Change the file name into original file that should be picked by CC via a script.

    These script you can specify in the Run OS command before processing.

    So, by this the CC will pick up the complete file and the script will also rename it once the complete file is been processed.

    Regards

    Krish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The files has transaction data that will keep coming after every 15 mins.

      I have used below script

      bash-3.00# cat test*

      for f in *.dat; do

      base=`basename $f .dat`

      mv $f $base.txt

      done

      But in this case also, if the file is in middle of being ftped, it changes the file name to .txt when this script is run.

      It defeats the entire purpose 😔

      The files that I am ftping are a lot bigger. So ls -l may not help.

      regards,

      Anirudh.

  • Oct 20, 2008 at 10:02 AM

    Hi,

    I have faced a similar kind of issue a long back. There is a function module in XI-ABAP Stack where you can increase the processing time for each file. Am not sure abt the module name, however you can search it in SE37.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 12:17 PM

    Hi,

    better to handle this within FTP Server level. Create a mother folder which holds all data and schedule a script which will transfer all files which are complete to the source dir from where xi picks up.

    this solves the prob

    if u know the File dump time then it is better to use CC schedule time

    as said u need to adjust with the parties to go ahead

    srini

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 01:36 PM

    we can active/inactive the CC thr a link.. so after file gets ftp, then active the CC.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 02:16 PM

    Hi,

    Every file which has been written has eof i.e. end of file. So you can write an script and check for the end-of-file if found then only pick the file else do not pick.

    Regard,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded