Please help me to find my bug in uploading files to SFTP server. It is something with remote side directory listing. I can successfully upload to test server, production returns errors.
If I use remote dir
$Rem_Dir = " /PDF/IN", I get :
If I use remote dirException calling "Check" with "0" argument(s): "Cannot create remote file '/PDF/IN/NG#APERUTNINA#L31275648#C2#NA80#Z202152114240.pdf'.
Error code: 3
Error message from server: file:///C:/PDF/IN/NG#APERUTNINA#L31275648#C2#NA80#Z202152114240.pdf"
At C:\pdf2ftp\skript\pdf2sftp_v1.ps1:93 char:13
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : SessionRemoteException
$Rem_Dir = " home/PERUTNINA/PDF/IN", no files are copied...no errors?
I can manually upload with WinSCP GUI. The used script is in attached file.
Thank You very much!
With best regards!