cancel
Showing results for 
Search instead for 
Did you mean: 

pick up file using file adapter

Former Member
0 Kudos

Hi Experts,

I had a small query regarding sender file adapter.. I have a requirement where the sender fiel adapter should pick up the file only after the file has been completely constructed by the external application...

We are facing issues where PI is picking up the file from the location before it has been completely constructed.. hence data is being lost..

Kindly share your thoughts.

Regards,

tauseef

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Ibrahim,

Msec to wait does not work on FTP protocol and usually Pi connects to FTP than NFS.

If Legacy application is a Unix/ mainframe based application, they can add time stamp to the filename at the end of code or run a small script after completion of file. At PI we can use relavant file mask and ensure file is picked after it is written completely.

Regards,

Pranav

ambrish_mishra
Active Contributor
0 Kudos

HI Ibrahim,

Although Msecs check suggested by Baskar is a solution, you can also request the third party (if capability exists) to use temporary file option. So the file while being written is created with name <filename>.temp and when end of file is reached, it is assigned the actual file name. Your file adapter can subsequently pick the specific file name.

Hope it helps!

Ambrish

praveen_sutra
Active Contributor
0 Kudos

Hi Ibrahim,

Alternatively you can time the availability of the channel at specified time through channel configuration.

Please refer below link for help regarding it:

http://help.sap.com/saphelp_nwpi71/helpdata/en/46/ad6cfeb5492a86e10000000a1553f6/content.htm

thanks and reagards,

Praveen T

anupam_ghosh2
Active Contributor
0 Kudos

Hi Ibrahim,

In additional parameters in the adapter configuration, set the Advanced Mode indicator.

  • Msecs to Wait Before Modification Check

Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.

This parameter is not available if you have selected File Content Conversion as the Message Protocol and then made an entry under Recordsets per Message that splits an input file into several messages.

This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.

Reference:

http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Regards

Anupam

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Go to Advanced tab in file adapter and set Msecs to Wait Before Modification Check .  This will help.