cancel
Showing results for 
Search instead for 
Did you mean: 

Document was blocked in 'Working Copy'

alvarogonzalez
Champ in-the-making
Champ in-the-making
Hello,

The other day a colleague was editing a document in your computer downloaded from Alfresco and the program was used to edit the document was closed unexpectedly.

Now, in Alfresco share, document appears as a working copy.If you download the document and upload to alfresco again. This generate new versión and you lost all changes do it.

If from Alfresco admin website (xxx.xxx.xxx.xxx:8080/alfresco/faces), I make chek out, with admin user and normal user,and I get the following error :

" Please correct the errors below then click OK.
Unable to cancel check out of Content Node due to system error:04150203 The original node cannot be found. Perhaps the copy has been corrupted or the original has been deleted or moved."

Also, I try connect to postgress alfresco database and delete the rows, involved in the document,in alf_node_properties table. But it did not work. The document disappears but also more items in the folder that contained in Alfresco Share. I restore database and now the documento appear like "Working Copy" and still neither the user nor administrator can unlock.

Regards





2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager
Check https://issues.alfresco.com/jira/browse/MNT-2239
Hyland Developer Evangelist

heiko_robert
Star Collaborator
Star Collaborator
We also see this effect from time to time. It seems there is still a bug in Share or in the transaction handling ending up in something like a deadlock:
- document is locked
- document is checked out (ASPECT "cm:checkedOut")
- document has no working copy (no assoc "cm:workingcopylink")

document.unlock();

–> could not be unlocked since it is checked out.
document.cancelCheckout();

–> workingcopy aspect is missing from this node
document.removeAspect("{http://www.alfresco.org/model/content/1.0}checkedOut");

–> node is locked.

The only work around I found was to restart Alfresco to release the lock. After that you can clean the node / remove the aspect using Java Script.