Hi Martin,
I have reopened this chat, as it is now happening on every other site as well, which tells me its not a site problem. I changed my code a bit and here's the error message I see:
WinSCP.SessionRemoteException: Can't get attributes of file '/FolderPath/2024-01-10 09:04:14.906423_Corp_File.csv'. No such file or directory. Error code: 2 Error message from server: at WinSCP.OperationResultBase.Check() at CallSite.Target(Closure , CallSite , Object )
This is a different site I'm pulling files from and this also throws the same error on random files and when I re-run my process, it get fixed and some other files show this error. Please Help!
Is there something in my code I might be doing wrong? I'm using the
session.GetFiles($SrcPath, $destPath, $False, $transferOptions)
to get a named file from the server.