Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.9k views
in .NET FTP by (200 points)
Hi,

I am trying to ftp a file with some very long rows of data (they are just text files).

I have used the three variants of 'put' (filename, stream, bytearray) and all return the following error message in the 'catch' block:

General FTP faiure: Could not PUT file: Records written to file XXXXX in library YYYYY have been truncated. Data in file may not be valid. Data transfer ended. (code=426)

This is to an IBM as400 system. I have used command line ftp (windows xp pro), and two other ftp clients with no issues. I can ftp the file back down to my PC and there are no differences in the files.

Why is the data being truncated using the edtftp.dll api ?

Thanks in advance.

4 Answers

0 votes
by (162k points)
Permissions - same credentials?

Are you transferring in binary or ASCII mode?

Post the log from ftp.exe - type 'debug' to see the messages.

Also the edtFTP log
0 votes
by (200 points)
Thank you for your prompt reply. Checking this outside office so I cannot get you logs straight away.

Additional info before I send you logs tomorrow.

I am using the VB.NET API (initially edtFTPnet.dll and and the PRO version). I am using the EnterpriseDT.Net.Ftp.FtpClient class.

This is the only environment what I am getting the truncation error in. I will check to see what logging I can turn on in this environment (i.e familiarity with log4net).

I have tried your FTP shell as well with no issues.

When I get the logs I will post this info to you.

Thanks again.
0 votes
by (200 points)
It turns out that the truncation message is due to the IBM system I am ftp-in the files to.

The file/member structure has a set maximum length of characters per row.

When I tested using the API i was sending the file to a set file/member with the limitation. Using the ftp command line / script I was using a different filename and this was creating a new file/member without the limitation.

My fault and thanks again for your response and support.
0 votes
by (51.6k points)
I'm glad you managed to solve it. Thanks for letting us know.

Categories

...