Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13580

How to remove a file from the DELETE PENDING state? (without rebooting...)

$
0
0

We have an ETL application and we have thousands daily tasks importing, generating, exporting, deleting and renaming CSV files. IN years is the 2nd time we see this behaviour, but now is worst than the previous one.

A file got stucked in a DELETE PENDING STATE! No one can read, delete, take ownership of the file. Procmon shows as DELETE PENDING state wich makes sense, this is the  behaviour of the APplication regaring the stored CSV files

I´m trying to avoid reboot or CHKDSK because is a production (non-stop) Server

icacls C:\DADOSETL\RH\INPUT\BIFIN2016.csv
C:\DADOS\ETL\RH\INPUT\BIFIN_COLABORADOR_ORCADO_2016.csv: Access is denied.


takeown /f C:\DADOSETL\RH\INPUT\BIFIN2016.csv
ERROR: Access is denied.

Event Class:File System
Operation:CreateFile
Result:DELETE PENDING
Path:\Device\HarddiskVolume4\ETL\RH\INPUT\BIFIN2016.csv
Desired Access:Read Control
Dis"Apple-tab-span" style="white-space:pre;"> Open
Options:Open Reparse Point
Attributes:n/a
ShareMode:Read, Write, Delete
AllocationSize:n/a

handle64.exe C:\DADOSETL\RH\INPUT\BIFIN2016.csv

No matching handles found.

Based on the PID, i could find this proccess related to the trying of the delete operation:

SRV-DTC-002 C:\Users\fborup-adm>tasklist /fi "pid eq 644" /svc

Image Name                     PID Services
========================= ======== ============================================
svchost.exe                    644 DcomLaunch, PlugPlay, Power




Viewing all articles
Browse latest Browse all 13580

Latest Images

Trending Articles



Latest Images

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