执行SSIS包会给出System.IO.IOException

时间:2019-03-19 20:57:38

标签: sql-server visual-studio ssis etl ssis-2012

我试图执行该程序包,并且每次看到以下错误。尤其是当我执行数据流任务时。

错误:

  

System.IO.IOException:进程无法访问文件           'C:\ PPE_OVERRIDES.ispac',因为它正在被另一个进程使用。

完整输出:

------ Build started: Project: PPE_OVERRIDES, Configuration: Development ------
    Build started: SQL Server Integration Services project: Incremental ...
    Starting project consistency check ...
    Project consistency check completed. The project is consistent.
    Error : System.IO.IOException: The process cannot access the file 
        'C:\PPE_OVERRIDES.ispac' because it is being used by another process.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.File.InternalDelete(String path, Boolean checkHost)
       at System.IO.File.Delete(String path)
       at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)
       at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)
    Build complete -- 1 errors, 0 warnings
    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

我该如何解决。我的ispac文件在bin文件夹中。我要确保SsISDB目录和Visual Studio不会在此位置上争斗

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

每次启动SQL Server Manager实例时,都必须终止SSIS调试主机进程。但是,我不希望它们出现在我尝试重新执行程序包之前。我可能会尝试执行一个空的虚拟程序包,修复崩溃问题,然后使用真实的程序包再试一次。