<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why I can not access the property? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125201#M34183</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Dec 2020 10:26:14 GMT</pubDate>
    <dc:creator>iceja</dc:creator>
    <dc:date>2020-12-20T10:26:14Z</dc:date>
    <item>
      <title>This topic was created by mistake</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125199#M34181</link>
      <description>&lt;P&gt;Please delete this topic.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 10:05:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125199#M34181</guid>
      <dc:creator>iceja</dc:creator>
      <dc:date>2020-12-18T10:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why I can not access the property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125200#M34182</link>
      <description>&lt;P&gt;The error comes when a node doesn't exists as indicated :&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="viewmode-value"&gt;org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Are you sure that node exists in the repository where you are executing the code?&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;PRE&gt; NodeRef connectedDocument = new NodeRef(stringRepresentationOfaNode);

if (nodeService.exists(connectedDocument )) {
  Serializable nodePropMark =  nodeService.getProperty(connectedDocument, NDBaseDocumentModel.PROP_MARK)
} else {
  //LOG or report error
}
&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Dec 2020 17:00:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125200#M34182</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-12-18T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why I can not access the property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125201#M34183</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 10:26:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/this-topic-was-created-by-mistake/m-p/125201#M34183</guid>
      <dc:creator>iceja</dc:creator>
      <dc:date>2020-12-20T10:26:14Z</dc:date>
    </item>
  </channel>
</rss>

