cancel
Showing results for 
Search instead for 
Did you mean: 

Recover /Delete document no longer visible in share

jackjm
Champ in-the-making
Champ in-the-making
Hello all

I ran some javascript rules on a folder which caused one document to not show up at all in share any more. If I try to reupload the document; I cannot; the upload simply fails. Is there some query that can be run in node browser (or elsewhere) to view such documents and then either recover /delete them!

Any insight will be greatly appreciated

thanks a lot for your time
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

what did your script rule do? I mean "does not show up" can be caused by several issues and some of them may not be recoverable. What is the error you receive / find in the log when your re-upload fails?

Regards
Axel

jackjm
Champ in-the-making
Champ in-the-making
Hello Axel,

The script accidentally changed the type of the document to an older type that doesn't exist anymore in the system. Presently, I don't get any error messages in the log file when I try to upload the same file; I might have to turn on the debug settings for log4j to see that. It's ok if I cannot recover the node; I think I am running into the issue where SOLR is choking on this document and not moving forward; since SOLR has stopped indexing since this has happened.

I will probably just go into the DB and delete all the references to the node and the node itself and see how it stands up!

BTW, here is the message in my log files every minute; anything on top of your head that stands out:


2012-06-14 16:12:34,553  ERROR [extensions.webscripts.AbstractRuntime] [http-8443-5] Exception from executeScript - redirecting to status template error: 05140002 Wrapped Exception (with status template): null
org.springframework.extensions.webscripts.WebScriptException: 05140002 Wrapped Exception (with status template): null

More details at: https://forums.alfresco.com/en/viewtopic.php?f=8&t=45177&p=133069

Thanks a lot for your input.

afaust
Legendary Innovator
Legendary Innovator
Hello,

in that case, I'd assume the quickest, easiest and cleanest way to be to - temporarily - reintroduce the old type to the system and clean it up using Alfresco API. This allows you to perform searches for any node of an obsolete type and export / delete that completely, so that you can be sure no error occurs once you remove the old model again.
You could fix this - assuming it is the sole cause - by manipulating the database directly, but it's usually not advisable to do so.

Regards
Axel

mrogers
Star Contributor
Star Contributor
Can you not change the type back?  But it's probably easiest to add the missing type definition.