<?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 Error updating cm:categories using CMIS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60735#M21290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;{"exception":"runtime","message":"03240394 Invalid node ref - does not contain forward slash: 590abfb1-a741-46dc-94c3-c6e8f6c53af5"}&lt;/P&gt;&lt;P&gt;when I try to set cm:categories for an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The id is a correct id of a category manually created in Alfresco (getted&amp;nbsp;using CMIS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using PortCMIS and after creating a folder with all the aspects I try to update categories (I get the same error if I put the categories in the properties during the creation).&lt;/P&gt;&lt;PRE style="color: gainsboro; background: #1e1e1e; font-size: 13;"&gt;properties&amp;nbsp;&lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #4ec9b0;"&gt;Dictionary&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #569cd6;"&gt;string&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN style="color: #569cd6;"&gt;object&lt;/SPAN&gt;&amp;gt;(); properties&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Add(&lt;SPAN style="color: #d69d85;"&gt;"cm:categories"&lt;/SPAN&gt;,&amp;nbsp;categories); newFolder&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;UpdateProperties(properties,&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;categories is a List&amp;lt;string&amp;gt; with all&amp;nbsp;the ID of the categories I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it's the wrong way to put the categories in the properties.....&lt;/P&gt;&lt;P&gt;I'm becoming crazy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 13:24:18 GMT</pubDate>
    <dc:creator>redflow</dc:creator>
    <dc:date>2018-04-24T13:24:18Z</dc:date>
    <item>
      <title>Error updating cm:categories using CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60735#M21290</link>
      <description>Hi allI get this error:{"exception":"runtime","message":"03240394 Invalid node ref - does not contain forward slash: 590abfb1-a741-46dc-94c3-c6e8f6c53af5"}when I try to set cm:categories for an object.The id is a correct id of a category manually created in Alfresco (getted&amp;nbsp;using CMIS).I'm using Por</description>
      <pubDate>Tue, 24 Apr 2018 13:24:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60735#M21290</guid>
      <dc:creator>redflow</dc:creator>
      <dc:date>2018-04-24T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error updating cm:categories using CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60736#M21291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are a couple of things to keep in mind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Categories are modeled in an aspect called cm:generalclassifiable. So if you are going to set categories on a doc you will need to add the secondary object type with an ID of "P:cm:generalclassifiable" to the node by updating the cmis:secondaryObjectTypeIds property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The cm:categories property is not a list of Strings, it is a list of IDs. So instead of trying to set the property with a list of Strings, try setting it with a list of CMIS ID objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a &lt;A href="https://gist.github.com/jpotts/11196922" rel="nofollow noopener noreferrer"&gt;gist&lt;/A&gt; that shows you how to add a category to a document using Groovy. It should give you an idea of how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 04:17:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60736#M21291</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-04-26T04:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error updating cm:categories using CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60737#M21292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I was already using your first advice: I create the new object putting all properties and also secondary object type to&amp;nbsp;"P:cm:generalclassifiable" (if I check in Alfresco everything is ok).&lt;/P&gt;&lt;P&gt;I get all the ids of category that I want to link to the object using something like the code in your link but I get the error when I try exactly what specified in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to change list of string to list of CmisObjectId i get this error: 'Property 'cm:categories' is an Id property!' because PortCMIS check if for ids I'm using strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So probably it's not possible to set categories using CMIS.....but what could be the alternative?&lt;/P&gt;&lt;P&gt;In RestAPI it's not available any method for categories....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 07:32:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60737#M21292</guid>
      <dc:creator>redflow</dc:creator>
      <dc:date>2018-04-26T07:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error updating cm:categories using CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60738#M21293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my error!&lt;/P&gt;&lt;P&gt;I was using as category id their cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId instead of alfcmis:nodeRef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 07:54:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-updating-cm-categories-using-cmis/m-p/60738#M21293</guid>
      <dc:creator>redflow</dc:creator>
      <dc:date>2018-04-26T07:54:08Z</dc:date>
    </item>
  </channel>
</rss>

