AnsweredAssumed Answered

Probleme Checkin/checkout

Question asked by lerire on May 15, 2009
Hi dear developpers,
I have written a javascript to execute as a rule. Unfortunatelly,  (see below)
// ———————————————————————-
//Name: Checkin_Majeur.js
//Description: checkin en version majeure
//Datw de creation: 11-05-2009
//Modifications:
//Date de derniere modidication
//———————————————————————–
//Get date
var ladate=new Date();

document.properties["sample:statut"]="Valide";
document.properties["sample:validationDate"]=ladate;
document.save();

var workingCopy = document.checkout();

Unfortunately, the execution failed with the error message

16:46:04,035 ERROR [org.alfresco.web.ui.common.Utils] Impossible d'approuver le document à cause de l'erreur système : Failed to execute script 'workspace://SpacesStore/a064b2d5-89dd-4d26-ac52-de205ec7db6e': Node does not exist: workspace://SpacesStore/13815d8e-4bc6-4d65-9219-585513aa3358
org.alfresco.scripts.ScriptException: Failed to execute script 'workspace://SpacesStore/a064b2d5-89dd-4d26-ac52-de205ec7db6e': Node does not exist: workspace://SpacesStore/13815d8e-4bc6-4d65-9219-585513aa3358

and I wanted to know where it failed and I comment the last line. The checkout produce a workingcopy under the space where the script is running, but when I tried to checkin the working copy, an error occured and I can't do anything with the working copy and the original document.

Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/32a2165f-12f6-463e-829c-cd21b2999f64

Then I have two request.
1- How can I remove this corrupted document from my application or from my Database (MySQL)
2- What could be wrong in my script

Any ideas or help will be welcome

That is urgent

Thank you very much inadvance

Irene

Outcomes