How to avoid a partial file transfer on the TIBCO Adapter for Files (FA) publication side?
book
Article ID: KB0089847
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows
-
Not Applicable
-
Description
Description: Usually if an external application is writing/creating/copying a file into
the input directory of a Simple File Transfer (SFT) publisher, there is a
chance of the file being picked up before it isĀ completely ready, especially
if the SFT publisher polling is timer based. Such partial transfer
results in corrupted files at the subscriber side.
Issue/Introduction
How to avoid a partial file transfer on the TIBCO Adapter for Files (FA) publication side?
Resolution
Any of the solutions below can be used while configuring the SFT publisher.
1). Use "By trigger" as a recognition method. FA will read the input file only when its trigger file is created. Once the file is completely transferred by an external process/application, create a trigger file for it.
2). Use an "RV message" as a polling method rather than a Timer. This way, you can control the polling of the FA publisher. When the file is completely transferred into the input directory by an external application, publish an RV message on the polling subject to trigger the FA publisher.
If better error handling is required, the SFT publisher and subscriber can use ECM mode, which offers features such as Checksum Verification and I/O errors.
Additional Information
Refer to the TIBCO Adapter for files User Guide -> Chapter 4 Adapter Configuration Opetions ->
Publication service options -> Configuration Tab. You can also refer to the File Adapter User Guide->Chap 1 Concepts-> Simple
File Transfer Mode section for details about ECM and non ECM protocols
error handling.