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

Question

Question

Deleting folder and getting an exception "Entry not found". TOC table is still holding the deleted folder tocid

asked on April 23, 2018

Hi Team,

 

I have deleted a folder and run the below script with an entry loops

FolderInfo info = Folder.GetFolderInfo(tocid, sessionvar);
                    string path = info.Path;

I got the Entry not found exception. when I looked into Toc table I found the folder in the table, My expectation it should be deleted from the toc table as well . 

 

Please advise me on this

 

Thank you in  advance

 

0 0

Replies

replied on April 23, 2018

If it has been moved to the recycle bin it will remain in the toc table but with the recycle bin as its parent, and will not be available through the Folder.GetFolderInfo function.

0 0
replied on April 23, 2018 Show version history

Hi Brain,

Then at what point the folder will be deleted from the toc table?

So what would you suggest for this issue? It happens many times like Entry not found if any user deletes the folder

Thank you in advance

 

0 0
replied on April 23, 2018

The row will be deleted when it is purged from the recycle bin.

Without knowing more about the problem you are trying to solve, it sounds like you need to keep users from deleting folders that you are using.  Can you remove their delete rights on them?

0 0
replied on April 24, 2018

Thank you Brian,

I should not remove the delete rights for them , because they are the owners of the application (Managers). This problem is occurring when I am retrieving the folder information and the folder permissions of particular trustee. This issue was automatically resolved but it might occur in the future. After finished this issue I faced a different kind of exception like "Operation or command invalid for the requested type of object". This exception occurred when I am trying to retrieve windows trustee information  

TrusteeInfo trinfo = Trustee.GetInfo(, sessionvar);

 

 

Thank you 

 

Best Regards,

Venkata Srividya.

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

Sign in to reply to this post.