Topic "Transfer of ascii data is dropping first line"

Author Message
Serex
[View user's profile]

Joined: 2010-03-11
Posts: 1
We are using winSCP 4.2.7 attempting to transfer files for our first time thru SFTP. Whether we issue command prompt or run thru an SSIS execute task it does the transfer beautifully, but it drops the first line. The end user insists that the problem is in our data transfer and we have exhausted what to look for. The user said we needed to be sure it was ascii as it was coming thru as binary, but we added that option and it is still happening. The recipient also indicates there are extraneous characters () being inserted at the beginnig of the first line which cause the transfer to drop that line. Can you help?

Here is the script we are executing

option batch on
option confirm off
option transfer ascii
open sftp://username:password@sftp.sitename.com -hostkey="ssh-xxx 0000 xx:00: 00:xx:x0:0x:xx:x0:x0:x0:00:x0:0x:00:x0:0x"
put "\\myfilepath\firstfile.txt" "/HOME/Put/ firstfile.txt"
put "\\ myfilepath \secondfile.txt" "/HOME/Put/ secondfile.txt"
close
exit

execution command line:
"C:\Program Files\WinSCP\winscp.com" /script="C:\Program Files\WinSCP\pospay.txt"

SSIS settings that execute the script the Execute Task Argument is the same as the command line.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can I have a copy of the file you are transferring?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License