Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

After upgrade from SQL Server 2016 to 2017 problem with File System Task (Delete file) with error file being used by another process

$
0
0

Hi,

I have an agent job with two SSIS packages. The first package basically creates a couple of files and the second package imports the file into the database and then deletes the files. The files are place on a share.

The package was working fine with SQL Server 2016 and has been running a couple of years without any issues.

This week I have upgraded the server to SQL Server 2017 and now the same packages is failing about 3 times out of 10. 

The error is in the second package when the file should be deleted and the error message is: "Delete Stage File: Error: An error occured with the following message: "The process cannot acces the file '\\share\filearea\indata\file.raw' because it is being used by another process.".

I can see in procmon.exe that is only ISServerExec.exe which is accessing the file when running the sql agent job with the SSIS packages. And it seems like the ISServerExec.exe process from the first SSIS package in the job is not releasing the file before the second ISServerExec.exe process tries to delete the file. 

I have seen others have the same error and they have implemented delays in the package. However, for me the packages was working without issues for a long time it is only started after the upgrade from 2016 to 2017. 

Anyone seeing a similar issue after and upgrade? Or when running on SQL Server 2017?

Stefan


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>