Getting Periodic Exception calling "Check" with "0" argument(s): "Error transferring file Message

Advertisement

rsford31
Joined:
Posts:
15

Getting Periodic Exception calling "Check" with "0" argument(s): "Error transferring file Message

Hi,
I'm using $seession.FileExists to check for the existance of a remote file then if it exists I'm using $session.GetFiles followed by $transferResult.Check(). Periodically, I the transfer errs with:
Is the session open? True
File /path/path/somefile.ZIP exists at source.
Error: Exception calling "Check" with "0" argument(s): "Error transferring file '/path/path/somefile.ZIP'."
I'll re-run the process again and the transfer is successful.
I turned on logging and was able to capture the details. In the logs (attached) it says the following:
550 Command PORT failed
I'm assuming this is the cause of the issue? If so is there anything I can do to mitigate this? Let me know! Thanks so much for your time!
  • sessionlog.txt (8.16 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,405
Location:
Prague, Czechia

Re: Getting Periodic Exception calling "Check" with "0" argument(s): "Error transferring file Message

The problem is actually the previous error:
550 Command PASV failed

That usually happens when the server runs out of free ports in passive port range.
If you can change the FTP server configuration, allow wider port range there. Another solution is to decrease TIME_WAIT port interval.
If you cannot change the server configuration, the only workaround on WinSCP side is to decrease a transfer speed. Or use SFTP protocol, if available.

Reply with quote

Advertisement

You can post new topics in this forum