Hello,
I try to define a rule to a folder that delete all activeWorkflows attached to a document when the document it's self is deleted or deplaced. I use this script in the rule:
for(var i=0;i<document.activeWorkflows.length ;i++){
document.activeWorkflows[i].cancel();
}
When i deplaced the document all attached woekflows are cancelled but when i try to delete this document an error occure:
Could not delete 'file_name'.
help plz.
You need to provide more details about the error, e.g. any log output from alfresco.log - otherwise we will not be able to help you (errors can't be explained by looking into a magic 8-ball).
thanks for your response
I delete all old messages in the log files (alfresco.log and share.log), i try to delete a document this msg is shown
Could not delete 'file_name'
but i have no indication in the log files (they still empty :/ )
Then please look closely into the HTTP packet for any additional details (use developer tools of your browser to monitor network packets for the web page).
I have this error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://127.0.0.1:7777/share/proxy/alfresco/slingshot/doclib/action/file/node/workspace/SpacesStore/f...
That just means that an error occurred. Any detail should be inside the HTTP packet as content - typically this is a JSON structure that contains a message and a callstack.
There you have your issue - some code seems to be misbehaving. Do you have any customisations / addons installed?
yes. I have install an AMP
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.