Please delete this topic.
The error comes when a node doesn't exists as indicated :
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist
Are you sure that node exists in the repository where you are executing the code?
Also, it is a good idea to always check node existance before trying to extract node properties or performing any operation using the nodeRef on a node.
NodeRef connectedDocument = new NodeRef(stringRepresentationOfaNode); if (nodeService.exists(connectedDocument )) { Serializable nodePropMark = nodeService.getProperty(connectedDocument, NDBaseDocumentModel.PROP_MARK) } else { //LOG or report error }
I abolutely sure the node DOES exist, and I can see that node in NodeBrowser and the defined property also exists. Morover the same node works with similar code in certain place of programm. but fails in another. Probably there is something with environment.
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.