<?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: CMIS query fails for IN_FOLDER &amp;gt;2 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93913#M27749</link>
    <description>&lt;P&gt;The query is for CMIS to access FileNet. I posted this because I didn't find out about this "bug" anywhere else and I thought it might apply to other developers. There is a lot of useful advice on the site, so it seemed like a natural home for it. Apologies if I didn't make it clear.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 17:18:57 GMT</pubDate>
    <dc:creator>DonRobinson</dc:creator>
    <dc:date>2019-10-16T17:18:57Z</dc:date>
    <item>
      <title>CMIS query fails for IN_FOLDER &gt;2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93911#M27747</link>
      <description>&lt;P&gt;I've been developing a web-app in VB.Net which uses CMIS.Net, linking to a FileNet repository. The application builds up queries programmatically, locating documents by creating queries which contain multiple IN_FOLDER statements. In development I had written code to bundle 30 such statements into a query, and successfully processed many such "bundles-of-30" queries from a total list of 299 folders. The application failed on the final bundle, which happened to have 29 IN_FOLDER statements. It turns out that the IN_FOLDER logic fails when the number of statments is an odd-number larger than 2. This information was provided when my client obtained tech support from Oracle.&amp;nbsp; Examples in which IN_FOLDER returned no records, or returned a large number of records, were found to not affect the pass or fail. It appears to be only the "even/odd" condition. I did not find this behaviour documented anywhere (Google search "CMIS IN_FOLDER fail"), and this forum seems like a good place to make it known. Here is an example of a query that works:&lt;/P&gt;&lt;P&gt;SELECT SecurityFolder, 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, cmis:name FROM cmis:document WHERE (&lt;BR /&gt;IN_FOLDER('idf_50FFF254-0000-CF1E-9CC1-F6EB1F58A770') OR&lt;BR /&gt;IN_FOLDER('idf_90FFF254-0000-CA1F-9DB4-AC5E955E4D2D') OR&lt;BR /&gt;IN_FOLDER('idf_0002F354-0000-C01C-8FD8-B6F5CB33F543') OR&lt;BR /&gt;IN_FOLDER('idf_5002F354-0000-CC16-A7ED-F8D60E733394') OR&lt;BR /&gt;IN_FOLDER('idf_B002F354-0000-CE1D-8554-55998AFE4F03') OR&lt;BR /&gt;IN_FOLDER('idf_0003F354-0000-C417-8F26-F0F51BDE7D5A') OR&lt;BR /&gt;IN_FOLDER('idf_4003F354-0000-CC1A-9C77-6E9EE3E6A00D') OR&lt;BR /&gt;IN_FOLDER('idf_9003F354-0000-CF17-A5BA-4C1C4A8FD3C0') OR&lt;BR /&gt;IN_FOLDER('idf_E003F354-0000-C913-9F84-7D3BA292AB65') OR&lt;BR /&gt;IN_FOLDER('idf_3004F354-0000-CF1B-99E8-89964AF2480D')) Order By SecurityFolder&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 19:43:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93911#M27747</guid>
      <dc:creator>DonRobinson</dc:creator>
      <dc:date>2019-10-02T19:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS query fails for IN_FOLDER &gt;2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93912#M27748</link>
      <description>&lt;P&gt;Are you asking how to create your CMIS query to access FileNet, not Alfresco?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93912#M27748</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-10-16T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS query fails for IN_FOLDER &gt;2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93913#M27749</link>
      <description>&lt;P&gt;The query is for CMIS to access FileNet. I posted this because I didn't find out about this "bug" anywhere else and I thought it might apply to other developers. There is a lot of useful advice on the site, so it seemed like a natural home for it. Apologies if I didn't make it clear.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:18:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-for-in-folder-gt-2/m-p/93913#M27749</guid>
      <dc:creator>DonRobinson</dc:creator>
      <dc:date>2019-10-16T17:18:57Z</dc:date>
    </item>
  </channel>
</rss>

