简体   繁体   English

SSIS文件系统任务删除目录离开目录并删除所有权限

[英]SSIS File System Task Deleting Directory Leaves Directory and Removes all Permissions

I have a rather bizarre issue with an SSIS package I have. 我的SSIS套件有一个非常奇怪的问题。 After processing some files within a Directory I am removing the Directory so my For Each Loop doesn't process the same files again. 在处理了目录中的某些文件之后,我将删除目录,以使我的For Each循环不会再次处理相同的文件。

It fails to Delete the Directory but yet leaves it in the folder and then tells me I do not have access to this folder, I cannot take ownership of it or even move it to another directory. 它无法删除目录,但仍将其保留在文件夹中,然后告诉我我无权访问此文件夹,我无法拥有它的所有权,甚至无法将其移动到另一个目录。

I have even tried a VB.NET Script tasks to try and remove it and I get the same result. 我什至尝试了VB.NET脚本任务来尝试将其删除,但我得到了相同的结果。

A reboot of the server makes the folder disappear - has anyone experienced this before. 重新启动服务器会使文件夹消失-以前没有人经历过。

Regards, 问候,

JML JML

Sounds like the directory is "in use" still but with the deletion pending. 听起来目录仍在“使用中”,但删除正在进行中。 When you reboot, the lock on the directory is cleared and the deletion completes. 重新启动后,目录上的锁将被清除,删除操作将完成。 The discussion at 的讨论

try ing to move a file "The process cannot access the file because it is being used by another process." 尝试移动文件“该进程无法访问该文件,因为该文件正在被另一个进程使用。”

may be helpful. 可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL Server / SSIS-从目录中删除文件 - SQL Server/SSIS - Deleting files from Directory SQL任务之后的SSIS文件系统任务 - SSIS File System Task after SQL task 如何根据ssis中的文件名搜索目录和子目录中的文件 - how to search for a file in directory and sub directories basing on the file name in ssis 在服务器之间复制文件时出现 SSIS 文件系统任务错误 - SSIS File System Task Error while copying files between servers SQL查询以选择目录,然后删除其中的所有文件-C# - SQL query for selecting directory and then deleting all files within it - C# 文件系统目录结构(SQL还是NoSql)? - File system directory structure (SQL or NoSql)? 递归删除从SQL表中删除文件记录,但是我也需要从目录中删除文件 - Recursive delete removes file records from SQL table, but I need to remove the files from a directory aswell 如何在SQL Server 2005调用/查询中创建文件系统目录 - How to create a file system directory in a SQL Server 2005 call/query 在SSIS中导入之前删除文本文件的内容 - Deleting the contents of a text file before importing in SSIS Netezza:获取所有数据库名称并写入unix目录中的文件 - Netezza : Fetch all database names and write to a file in unix directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM