You are viewing limited content. For full access, please sign in.

Question

Question

Import Agent 11 not deleting empty folders after import

asked on January 8, 2024

I'm working on a project to import Windows network shares into Laserfiche and am using Import Agent version 11.0.0.501.  I have the option checked on the profile's Post-processing tab to Delete empty subfolders

I'm running the Import Agent Service with my credentials and I have sufficient access to the import location that the folders should be deleted.  However only a few of the empty subfolders are deleting, most are left as empty folders.   Some of the empty subfolders are five or six folders deep. The files and folders are being added to the processed folder.

Is there a limit on how many subfolders deep the import agent can delete folders?

0 0

Answer

SELECTED ANSWER
replied on January 8, 2024 Show version history

Just a thought... Is it confirmed the folders are really empty and there aren't hidden or system files left in there, such as the Windows hidden/system "thumbs.db" file?

Another thought... Is it possible it is something with the order of processing. i.e. in the picture below, could it be that "AFile.PDF" is processed but the folder isn't empty (has sub-folders) so it is left, then "AFIle2.PDF" is processed and Folder 2 is removed, then "AFile3.PDF" is processed and Folder 3 is removed, but Folder 1 is never removed because it wasn't empty at the time the only actual file in it was processed?

2 0
replied on January 8, 2024

Reviewing the leftover folders many do contain hidden Thumbs.db files.  I wonder if there's a way to get rid of them prior to processing with Import Agent?

Your thought of processing order could be what is happening as well.

The leftover folders make it difficult to confirm that all files have been imported without manually navigating each to make sure they're empty.

 

 

0 0
replied on January 8, 2024

Probably disable feature: How do I disable the generation of thumbs.db but not the display of - Microsoft Community, and for existing Thumbs.db files, manually search and delete them.

 

For the problem of processing order, it should be fine. As Import Agent runs the processing round by round. For each round, it tries to delete empty directory. If the empty directory is not deleted one round, it will be deleted in next rounds. 

1 0
replied on January 9, 2024

I found this webpage PowerShell Command to Recursively Delete Thumbs.db - Networking HowTos and ran the PowerShell command against the folder I was going to import and it removed the folders since the Thumbs.db files were not there.

2 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.