BizTalk 2020 Not Deleting Files

Advertisement

jglisson
Joined:
Posts:
5
Location:
Atlanta, Georgia

BizTalk 2020 Not Deleting Files

We have an issue where BizTalk 2020, using WinSCP 5.15,4, will not delete files from a particular server.

For one server, the SFTP adapter downloads a file, issues the rm script command, which deletes the file. (See attached TEMP2_FTP.log)

For another server (the one we're troubleshooting), the SFTP adapter downloads a file, but never issues the rm script command, so the file is never deleted. (See attached TEMP_FTP.log)

I am not terribly proficient with the logs to see if something might signal the SFTP adapter that it cannot delete the file, and as such it does not issue the rm command.
Description: TEMP2_FTP.log does delete the file.
Description: TEMP_FTP.log does not delete the file.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,478
Location:
Prague, Czechia

Re: BizTalk 2020 Not Deleting Files

The WinSCP log files won't help here. The remove request does not make it to WinSCP. So what do you do in BizTalk to trigger the remove?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,478
Location:
Prague, Czechia

I cannot say if it is relevant, as I do not know how BizTalk works. I'm not sure where/how the timestamps are evaluated in respect to:
Later when BizTalk tries to delete the file it tries to delete (rm) the file based on the initial ls(dir) time stamp which does not match.
But I can see a full timestamp in the ls log and it matches the stat timestamp later, so it's possibly not relevant.

Reply with quote

Advertisement

jglisson
Joined:
Posts:
5
Location:
Atlanta, Georgia

The issue appears to be the MoveIT SFTP server. I have outlined the issue on their support forum.

https://community.progress.com/s/question/0D54Q00007uR3uASAS/ls-and-stat-commands-return-different-timestamps

Essentially, the ls command does not provide the timestamp to the second. But the stat command does. BizTalk issues the ls command, downloads any files, then issues the stat command before it deletes the file. However, the stat command to MoveIT does report the seconds. So, to BizTalk it looks as if the file has changed, and as such does not issue a rm command.

Reply with quote

Advertisement

You can post new topics in this forum