PxPlus User Forum

Twitter Twitter Twitter

Author Topic: *web/sftp  (Read 705 times)

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
*web/sftp
« on: July 11, 2022, 08:28:30 PM »
At one location, CALL "*web/sftp;receive" returns the sporadic error below.  I have tried PO/OUT /PO/OUT ~/PO/OUT & /~/PO/OUT and still get the error a few times a day.  File: is the FilesToReceive variable sent.

*web/sftp;receive:Error: /~/PO/OUT not found on server.
File: /~/PO/OUT|B0

Is there a way to debug this?

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: *web/sftp
« Reply #1 on: July 12, 2022, 08:28:11 AM »
Hi Peter,

If you can sometimes download the file and other times you can't that would possibly indicate the issue is on the sftp server. Likely sometimes the file is locked by a program updating it for example. The best you can do in that situation is to handle errors like that by trying again a few times before giving up.

Another probably less likely possibility is that sometimes your current directory is different so maybe using a absolute path would help /HOME/USERNAME/PO/OUT
Principal Software Engineer for PVX Plus Technologies LTD.

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
Re: *web/sftp
« Reply #2 on: July 17, 2022, 10:46:17 AM »
Thanks Devon,
I was thinking with some hope bias that this was ignorable.