<?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 Problem copying folders using a scheduled job in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-copying-folders-using-a-scheduled-job/m-p/37693#M15885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a problem with a scheduled job that we use to copy folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job reads a csv file that contains a list of folders to be created and the metadata to be applied.&lt;/P&gt;&lt;P&gt;To create the folder I use the FileFolderService.copy(...) method to copy a folder template from /Data Dictionary/Space Templates, then I set the metadata on the new folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the copying operation works as expected except the copied folder does not get indexed so cannot be searched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that the job was running as System therefore the copied folders are created/modified by System (no particular reason for this - i was just copying the example code in the documentation).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the code so the job runs as admin then the copied folders get indexed correctly !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I drop the SOLR index and re-build it, the "System" owned folders are still not indexed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have just run the job as part of a data migration so now have 500,000+ folders that will not index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know the easiest way to change the creator &amp;amp; modifier of all my folders to admin? I could then re-build the SOLR index and see if it&amp;nbsp;picks them up? Or is there a way to tell SOLR to index System content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2017 07:49:24 GMT</pubDate>
    <dc:creator>pedwards99</dc:creator>
    <dc:date>2017-10-25T07:49:24Z</dc:date>
    <item>
      <title>Problem copying folders using a scheduled job</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-copying-folders-using-a-scheduled-job/m-p/37693#M15885</link>
      <description>Morning all,I've got a problem with a scheduled job that we use to copy folders.The job reads a csv file that contains a list of folders to be created and the metadata to be applied.To create the folder I use the FileFolderService.copy(...) method to copy a folder template from /Data Dictionary/Spac</description>
      <pubDate>Wed, 25 Oct 2017 07:49:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-copying-folders-using-a-scheduled-job/m-p/37693#M15885</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2017-10-25T07:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem copying folders using a scheduled job</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-copying-folders-using-a-scheduled-job/m-p/37694#M15886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so with the help of Alfresco Support, we found the problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Content owned by the System user is filtered out of all searches you run in Share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query that gets constructed includes "&lt;SPAN style="color: #000000; font-size: medium;"&gt;AND -cm:creator:system" so will not return those objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: medium;"&gt;The&amp;nbsp;content is still indexed, but will not be returned. Support's advice was to either customise Share to remove this or to run the job as a non-system account.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: medium;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 15:37:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-copying-folders-using-a-scheduled-job/m-p/37694#M15886</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2017-10-26T15:37:23Z</dc:date>
    </item>
  </channel>
</rss>

