<?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: Problem with selecting data before aspect applied to any file in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304485#M257615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In cmis query the&amp;nbsp; FROM part must be the name of an object type or an join clause containing aspect name ,but not an aspect only&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 14:58:48 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-02-24T14:58:48Z</dc:date>
    <item>
      <title>Problem with selecting data before aspect applied to any file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304484#M257614</link>
      <description>I have problem when trying to execute CMIS query like this&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ELECT * FROM namespace:aspectName WHERE namespace:lastUpdate&amp;lt;=1392983610113&amp;nbsp; ORDER BY namespace:lastUpdate ASC‍before aspect 'aspectName' is applied to any document. Result should be the empty set but Alfresco is throwing exception&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.a</description>
      <pubDate>Mon, 24 Feb 2014 09:45:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304484#M257614</guid>
      <dc:creator>pogoma</dc:creator>
      <dc:date>2014-02-24T09:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with selecting data before aspect applied to any file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304485#M257615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In cmis query the&amp;nbsp; FROM part must be the name of an object type or an join clause containing aspect name ,but not an aspect only&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:58:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304485#M257615</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-02-24T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with selecting data before aspect applied to any file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304486#M257616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This query is working in general. I found just one case when its not work - aspect didn't applied to any file (aspect metadata aren't saved in DB yet). And my question is: is there any simple way to make this query works in this case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 16:08:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304486#M257616</guid>
      <dc:creator>pogoma</dc:creator>
      <dc:date>2014-02-24T16:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with selecting data before aspect applied to any file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304487#M257617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why not use join query like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT d.cmis:objectid,a.* FROM cmis:document as d join namespace:aspectName as a on d.cmis:objectid = a.cmis:objectid&amp;nbsp; WHERE a.namespace:lastUpdate&amp;lt;=1392983610113&amp;nbsp; ORDER BY a.namespace:lastUpdate ASC&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it has same effect like yours and will not cause any error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:08:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304487#M257617</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-02-24T17:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with selecting data before aspect applied to any file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304488#M257618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now i have message: "Unknown column/property 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". I think that column set in my query is empty (query without "order by" is working) coz there is no aspect metadata in db before aspect is applied to any file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be: "objectId". Still have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;## Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input Pozycja: 1040 ### The error may involve alfresco.metadata.query.select_byDynamicQuery-Inline ### The error occurred while setting parameters ### Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input Pozycja: 1040 ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: syntax error at end of input Pozycja: 1040&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304488#M257618</guid>
      <dc:creator>pogoma</dc:creator>
      <dc:date>2014-02-25T13:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with selecting data before aspect applied to any file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304489#M257619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes property 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 should be like this 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( Letter i should be capitalized),following query is tested in my envirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT d.cmis:objectId,a.* FROM cmis:document as d join ca:aspectContent as a on d.cmis:objectId = a.cmis:objectId&amp;nbsp; WHERE a.ca:anotherDate&amp;lt;=1392983610113&amp;nbsp; ORDER BY a.ca:anotherDate ASC&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 06:15:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-selecting-data-before-aspect-applied-to-any-file/m-p/304489#M257619</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-02-26T06:15:03Z</dc:date>
    </item>
  </channel>
</rss>

