User bio
404 bio not found
Member since Oct 1, 2019
Posts:
Peter has not published any posts yet.
Replies:
Peter Pozerski · Dec 22, 2023 go to post

Have had a similar problem.  Likely the issue is your FTP server needs to increase its timeout settings.  
 

You could try extending the FTP adapter and overriding the delete method as follows:

Method delete(pFilename As %StringpFileDir As %StringAs %Boolean
{
Set tSC=..setFilePath(pFileDir,.tOldDirIf $$$ISERR(tSC$$$LOGSTATUS(tSCQuit }
Set tOK=$S(..%isSFTP:..FTP.DeleteSSH(pFilename),1:..FTP.Delete(pFilename))

if 'tOK

{

if ..Connected set tSC=..Disconnect(1)
Set tSC=..Connect(..ConnectTimeout,1)
Set tOK=$S(..%isSFTP:..FTP.DeleteSSH(pFilename),1:..FTP.Delete(pFilename))

}
Do:'tOK ..disconnectOnNetErr(,1)
If ..Connected Set tSC=..restoreFilePath(tOldDirIf $$$ISERR(tSC$$$LOGSTATUS(tSCQuit }
Quit tOK
}

If tOK returns an error, you failed to delete.  this change will disconnect from the server, reconnect and delete again.  As the most likely issue is you are not connected this will work around your ftp server's timeout.  

The other option is to update your FTP server to have a larger timeout window.

Peter Pozerski · Dec 22, 2023 go to post

Have had a similar problem.  Likely the issue is your FTP server needs to increase its timeout settings.  
 

You could try extending the FTP adapter and overriding the delete method as follows:

Method delete(pFilename As %String, pFileDir As %String) As %Boolean
{
Set tSC=..setFilePath(pFileDir,.tOldDir) If $$$ISERR(tSC) $$$LOGSTATUS(tSC) Quit 0 }
Set tOK=$S(..%isSFTP:..FTP.DeleteSSH(pFilename),1:..FTP.Delete(pFilename))

if 'tOK

{

if ..Connected set tSC=..Disconnect(1)
Set tSC=..Connect(..ConnectTimeout,1)
Set tOK=$S(..%isSFTP:..FTP.DeleteSSH(pFilename),1:..FTP.Delete(pFilename))

}
Do:'tOK ..disconnectOnNetErr(,1)
If ..Connected Set tSC=..restoreFilePath(tOldDir) If $$$ISERR(tSC) $$$LOGSTATUS(tSC) Quit 0 }
Quit tOK
}

If tOK returns an error, you failed to delete.  this change will disconnect from the server, reconnect and delete again.  As the most likely issue is you are not connected this will work around your ftp server's timeout.  
The other option is to update your FTP server to have a larger timeout window.

Peter Pozerski · Jun 22, 2020 go to post

It looks like they are sending:

" PID||5520005629|0102163||JINDAL^ASHOKI KR^^||19490901|M"

and not:

"PID||5520005629|0102163||JINDAL^ASHOKI KR^^||19490901|M"

note the leading white space in the first entry

Certifications & Credly badges:
Peter has no Certifications & Credly badges yet.
Followers:
Peter has no followers yet.
Following:
Peter has not followed anybody yet.