Duplicate Transmissions
the simpliest way is to make your ftp transaction save..
e.g. put into a temp dir and after put has suceeded move it to the final dir....
as mv is transactional this would help a lot.
everything else is just improving likelyhood.
regards chris

chonekim,
I would also say that this is a major issue but there exists a solution for this. As Chris already said: a ftp rename is transaction save. A solution beneath the idea of Chris (which works fine, too) for m-e-c as2 is to name a file that is not transfered complete by a special extension, e.g. ".transfering". After the upload the client has to rename it e.g. to ".finished". This operation has to be done by the upload client.
The directory poll process in m-e-c as2 could be configured with a set of file ignore patterns per partner. Just set it in the example to "*.transfering" and it will pick up only fully transfered files.
Regards
Heller

A good way to see if a file was well transfered is to check the status in ftp logfile.
You can find the 226 code in logs for the file.
http://help.globalscape.com/help/support/Error_Codes/FTP_Codes.htm
But the best way, if filename is not important, is to send file under name of its MD5 or SHA1 checksum.
The processus below must check if the checksum of the file and filename are matching.
Another way (on Linux) is to list files that are currently handled by ftp server.
lsof | grep "^ftp" | grep filename
© 1999-2008 mendelson-e-commerce GmbH. All right reserved.
Hi Heller;
I have a major (you may say a minor) problem with m-e-c AS2 1.0 build 2.3;
I installed m-e-c AS2 to a box along with a FTP server; I configured a partner FTP Client account that points to messages\client\outbox folder under mec/as2/ directory. Mec-AS2 poll Intervals for the client is 20 seconds;
I FTP’ed 9 files simultaneously, with various of files sizes, to the mec/as2/messages/clientfolder/outbox folder; Somehow, AS2 forward to the partner 10 files with 1 duplication (see below)
2008-07-07 12:43:25.0 partnerAS2ID mec_as2-1215449005000-6@senderAS2_receiverID ETPEDI.001508868 3DES SHA-1 SYNC
2008-07-07 12:43:25.203 partnerAS2ID mec_as2-1215449005203-7@senderAS2_receiverID ETPEDI.001511324 3DES SHA-1 SYNC
2008-07-07 12:43:25.578 partnerAS2ID mec_as2-1215449005578-8@senderAS2_receiverID ETPEDI.001511355 3DES SHA-1 SYNC
2008-07-07 12:43:25.968 partnerAS2ID mec_as2-1215449005968-9@senderAS2_receiverID ETPEDI.001511364 3DES SHA-1 SYNC
2008-07-07 12:43:26.281 partnerAS2ID mec_as2-1215449006281-10@senderAS2_receiverID ETPEDI.001511447 3DES SHA-1 SYNC
2008-07-07 12:43:26.5 partnerAS2ID mec_as2-1215449006500-11@senderAS2_receiverID ETPEDI.001511566 3DES SHA-1 SYNC
2008-07-07 12:43:26.718 partnerAS2ID mec_as2-1215449006718-12@senderAS2_receiverID ETPEDI.001511641 3DES SHA-1 SYNC
2008-07-07 12:43:47.046 partnerAS2ID mec_as2-1215449027046-13@senderAS2_receiverID ETPEDI.001511641 3DES SHA-1 SYNC
2008-07-07 12:43:47.5 partnerAS2ID mec_as2-1215449027500-14@senderAS2_receiverID ETPEDI.001511665 3DES SHA-1 SYNC
2008-07-07 12:43:49.484 partnerAS2ID mec_as2-1215449029484-15@senderAS2_receiverID ETPEDI.001511688 3DES SHA-1 SYNC.
As you can see; trasnmission @ 2008-07-07 12:43:26.718 and @ 2008-07-07 12:43:47.046 are identical. Both transmission transfer file ETPEDI.001511641.
If i'm not mistaken; the file was not completely FTP'ed over to the server, and then AS2 pickup the file while file is still FTPing. AS2 cut off first segment of the file over to the queue, then the FTP completed, and the same file present in the outbox folder again, AS2 pickup the last segment of the file and transmitted to the partner again.
Is there away for AS2 to delay the pickup between files - or detect if the files last access/modified pass certain interval since it present in the outbox folder.
Please advise on any work-around for the problems. I've also try only two files, and the problems still occurred with file size 613KB.
I can try to set higher Poll Interval for the partner.
Thank you,
Chone