<?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: Getting &amp;quot;DocumentException: Unknown document type: content&amp;quot; while trying to get a content using GET REST API in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/getting-quot-documentexception-unknown-document-type-content/m-p/314485#M1486</link>
    <description>&lt;P&gt;The &lt;CODE&gt;content&lt;/CODE&gt; table may have something with &lt;CODE&gt;id&lt;/CODE&gt; 7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79, but it's a complex property id, not a document id.&lt;/P&gt;
&lt;P&gt;From a complex property to find the enclosing document you have to find the id in the &lt;CODE&gt;hierarchy.id&lt;/CODE&gt; column, find the &lt;CODE&gt;hierarchy.parentid&lt;/CODE&gt; on the same line, check that this second id is present in the &lt;CODE&gt;hierarchy&lt;/CODE&gt; table with &lt;CODE&gt;isproperty&lt;/CODE&gt; = false / 0, then you'll know you have a document id. If it's still a complex property you have to do the &lt;CODE&gt;parentid&lt;/CODE&gt; stuff again.&lt;/P&gt;
&lt;P&gt;See the structure of the VCS tables in &lt;A href="https://doc.nuxeo.com/x/HxLF"&gt;VCS Tables&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2015 15:15:08 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2015-05-26T15:15:08Z</dc:date>
    <item>
      <title>Getting "DocumentException: Unknown document type: content" while trying to get a content using GET REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-quot-documentexception-unknown-document-type-content/m-p/314484#M1485</link>
      <description>&lt;P&gt;I am trying to get a content using REST APIs described &lt;A href="https://doc.nuxeo.com/display/NXDOC/Document+Resources+Endpoints"&gt;here&lt;/A&gt;. But getting error "Failed to get document 7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79".&lt;/P&gt;
&lt;P&gt;In the logs I am getting this exception:&lt;/P&gt;
&lt;P&gt;org.nuxeo.ecm.core.api.ClientException: Failed to get document 7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79&lt;/P&gt;
&lt;P&gt;Caused by: org.nuxeo.ecm.core.api.DocumentException: Unknown document type: content
at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.newDocument(SQLSession.java:656)&lt;/P&gt;
&lt;P&gt;The exact GET request I am making is &lt;A href="http://localhost:8080/nuxeo/site/api/v1/id/7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79" target="test_blank"&gt;http://localhost:8080/nuxeo/site/api/v1/id/7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The content table does have a content with id "7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79".&lt;/P&gt;
&lt;P&gt;Any idea what is going wrong here? I am using Nuxeo 6.0 Community Edition.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 09:52:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-quot-documentexception-unknown-document-type-content/m-p/314484#M1485</guid>
      <dc:creator>Pranav_Pal</dc:creator>
      <dc:date>2015-05-26T09:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting "DocumentException: Unknown document type: content" while trying to get a content using GET REST API</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-quot-documentexception-unknown-document-type-content/m-p/314485#M1486</link>
      <description>&lt;P&gt;The &lt;CODE&gt;content&lt;/CODE&gt; table may have something with &lt;CODE&gt;id&lt;/CODE&gt; 7fc1cb55-0ce6-4a09-bbff-123cfb6cfb79, but it's a complex property id, not a document id.&lt;/P&gt;
&lt;P&gt;From a complex property to find the enclosing document you have to find the id in the &lt;CODE&gt;hierarchy.id&lt;/CODE&gt; column, find the &lt;CODE&gt;hierarchy.parentid&lt;/CODE&gt; on the same line, check that this second id is present in the &lt;CODE&gt;hierarchy&lt;/CODE&gt; table with &lt;CODE&gt;isproperty&lt;/CODE&gt; = false / 0, then you'll know you have a document id. If it's still a complex property you have to do the &lt;CODE&gt;parentid&lt;/CODE&gt; stuff again.&lt;/P&gt;
&lt;P&gt;See the structure of the VCS tables in &lt;A href="https://doc.nuxeo.com/x/HxLF"&gt;VCS Tables&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 15:15:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-quot-documentexception-unknown-document-type-content/m-p/314485#M1486</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2015-05-26T15:15:08Z</dc:date>
    </item>
  </channel>
</rss>

