WinSCP.SessionRemoteException: C:\path\file.zip is not file!
Hello,
I need your help! I have made a custom WinSCP PowerShell script that I am calling everyday... Few days ago I notice that script started to fail with error
I also added
Here are the logs with error appearing:
I tried to run new WinSCP version 5.19.6 and 5.15.9 and error is appearing for both versions. Can you please point me out how to approach with further troubleshooting?
Thanks!
Regards,
Nikola
I need your help! I have made a custom WinSCP PowerShell script that I am calling everyday... Few days ago I notice that script started to fail with error
TechnicallyWinSCP.SessionRemoteException: C:\path\file.zip is not file!
C:\path\file.zip
is a path on server where I want to save file with desired file name. Strangely script worked ok till last few days.
I also added
$session.SessionLogPath = "C:\Temp\winscp.log"
but logs are also showing the same error.
Here are the logs with error appearing:
. 2022-06-06 17:08:23.444 Binary transfer mode selected. * 2022-06-06 17:08:23.444 (ExtException) . 2022-06-06 17:08:23.444 Asking user: . 2022-06-06 17:08:23.444 'C:\path\file.zip' is not file! () < 2022-06-06 17:08:23.444 Script: 'C:\path\file.zip' is not file! * 2022-06-06 17:08:23.459 (ESkipFile) 'C:\path\file.zip' is not file! . 2022-06-06 17:08:23.459 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s . 2022-06-06 17:08:23.459 Script: Failed > 2022-06-06 17:08:23.475 Script: exit . 2022-06-06 17:08:23.475 Script: Exit code: 1 . 2022-06-06 17:08:23.475 Closing connection. . 2022-06-06 17:08:23.475 Sending special code: 12 . 2022-06-06 17:08:23.475 Sent EOF message
Thanks!
Regards,
Nikola