cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Appending Files in File Adapter

Former Member
0 Kudos

Hi All,

There is a requirement with file adapter, Files need to be keep on appending from the source directory.

Ex :

  1.   1day fie1 is processed from FTP and placed in the target (File1)
  2.   2day file2 and file 3 is processed from FTP along with the File1 (File1 + File2 +File3) need to placed again in the Target
  3.    Next (File1 + File2 +File3+File4) need to be processed

The ways I tried out is setting Available Time Planning with the processing mode Test, But it was not feasible solution with the very long files.

Please suggest any feasible solutions to achieve this requirement

Thanks In Advance

Regards,

Anusha Penneru

Accepted Solutions (0)

Answers (3)

Answers (3)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

very long files is a problem for file a adapter at least you have pi 7.3 because you have available a new funtionality to handle long files.

also i recommend you to configure your channel to update a single file instead of persist differentes files with same data. to do this configure it as APPENDING 

Regards

Rodrigo

manigram
Active Participant
0 Kudos

HI,

In Receiver file adapter choose File construction mode as Append. Suppose you need all messages for the day into single file at recevier side. Write UDF and pass filename with currend date, so that every day only one file has created with date.  enable ASMA in receive file adapter.

Regards,

Manigandan

gagandeep_batra
Active Contributor
0 Kudos

Hi Anusha,

Can you let us know why you want same file again at sender side to process again .

if there is any update happen then you can go for archive option and done update from archive  and create an new one with updated and place it in Sender folder to reprocess it again

Regards

gAgan

Former Member
0 Kudos

Hi Gagandeep,

As per the client requirement they want the final single file which contains all the f1+f2+f3 as per their business requirement.Even there were no modifications in the file they need one consolidated file.

Regards,

Anusha