We receive XML files from customers on a sFTP server. Then a SQL Server job picks them up and load them in database. However, it often fails with an error saying that a file is not accessible. That's because it's still being uploaded to our FTP server.
Unfortunately, the files can't be renamed by the customer after the upload is completed. We have many of them and it's not their priority.
I was wondering if there is any way to identify if a file has already been loaded.