<?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 bulkimport - curl - metadata in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/bulkimport-curl-metadata/m-p/57765#M20718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem using bulkimport&lt;/P&gt;&lt;P&gt;I'd like to import documents and change their types and custom properties&lt;/P&gt;&lt;P&gt;I have two files :&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;a pdf file (for example : test.pdf)&lt;/LI&gt;&lt;LI&gt;the xml file whicg contain the type and metadata (for example : test.pdf.metadata.xml)&lt;BR /&gt;Here is my xml file :&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE properties SYSTEM "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://java.sun.com/dtd/properties.dtd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://java.sun.com/dtd/properties.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;properties&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;entry key="type"&amp;gt;myCM:RH&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;entry key="myCM:serviceRH"&amp;gt;FrontOffice&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;entry key="myCM:identificationPortefeuilleRH"&amp;gt;4&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/properties&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use bulkimport with curl : &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;curl -v -u admin:admin -L POST --url "localhost:8080/alfresco/s/bulkfsimport/initiate" --data "targetPath=/Sites/human-resources/documentLibrary/&amp;amp;sourceDirectory=/app/tmp/test&amp;amp;existingFileMode=REPLACE"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my problem : BOTH files are posted in the document Library of my human-resources site.&lt;/P&gt;&lt;P&gt;In the document library I have test.pdf and test.pdf.metadata.xml&lt;/P&gt;&lt;P&gt;More over, the type and custom properties of my test.pdf file aren't modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Au niveau du fichier log4j je n'ai pas d'erreur :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2018-10-25 10:36:46,750&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk import started from '/app/tmp/test'...&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,752&amp;nbsp; INFO&amp;nbsp; [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk Filesystem Import: Commencing batch of 100 entries&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,753&amp;nbsp; DEBUG [bulkimport.impl.DirectoryAnalyserImpl] [BulkFilesystemImport-BackgroundThread] Analysing directory /app/tmp/test...&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,754&amp;nbsp; DEBUG [bulkimport.impl.DirectoryAnalyserImpl] [BulkFilesystemImport-BackgroundThread] Finished analysing directory /app/tmp/test.&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,758&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] RETRY TXNS: []&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,758&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Bulk Filesystem Import1 ready to execute&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,759&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Importing org.alfresco.repo.bulkimport.ImportableItem@4ded1775[HeadRevision=org.alfresco.repo.bulkimport.ImportableItem$ContentAndMetadata@20d17725[contentFile=/app/tmp/test/test.pdf,metadatafile=&amp;lt;null&amp;gt;],Versions=&amp;lt;null&amp;gt;]&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,759&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Searching for node with name 'test.pdf' within node 'workspace://SpacesStore/e02f9fab-b8dc-47e8-82a0-42004687970b'.&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;2018-10-25 10:36:46,760&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Creating new node of type '{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}content' with name 'test.pdf' within node 'workspace://SpacesStore/e02f9fab-b8dc-47e8-82a0-42004687970b'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,772&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Streaming contents of file '/app/tmp/test/test.pdf' into node 'workspace://SpacesStore/0fdf9519-e5c2-47bb-9f27-21c6dd5bd2f9'.&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,807&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Adding properties to node 'workspace://SpacesStore/0fdf9519-e5c2-47bb-9f27-21c6dd5bd2f9':&lt;BR /&gt;&lt;SPAN&gt;[{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}name = test.pdf,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}created = Wed Jul 27 08:52:06 RET 2016,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}title = test.pdf,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}modified = Wed Jul 27 08:52:06 RET 2016]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,816&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Importing org.alfresco.repo.bulkimport.ImportableItem@127def54[HeadRevision=org.alfresco.repo.bulkimport.ImportableItem$ContentAndMetadata@6d29748b[contentFile=/app/tmp/test/test.pdf.metadata.xml,metadatafile=&amp;lt;null&amp;gt;],Versions=&amp;lt;null&amp;gt;]&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,817&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Searching for node with name 'test.pdf.metadata.xml' within node 'workspace://SpacesStore/e02f9fab-b8dc-47e8-82a0-42004687970b'.&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;2018-10-25 10:36:46,818&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Creating new node of type '{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}content' with name 'test.pdf.metadata.xml' within node 'workspace://SpacesStore/e02f9fab-b8dc-47e8-82a0-42004687970b'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,828&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Streaming contents of file '/app/tmp/test/test.pdf.metadata.xml' into node 'workspace://SpacesStore/4113de28-833f-4bae-8231-80027935cb02'.&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,849&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [Bulk Filesystem Import1] Adding properties to node 'workspace://SpacesStore/4113de28-833f-4bae-8231-80027935cb02':&lt;BR /&gt;&lt;SPAN&gt;[{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}name = test.pdf.metadata.xml,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}created = Tue Sep 18 15:38:50 RET 2018,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}title = test.pdf.metadata.xml,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;}modified = Tue Sep 18 15:38:50 RET 2018]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,895&amp;nbsp; INFO&amp;nbsp; [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk Filesystem Import: Processed 2 entries. Rate: 13 per second. 0 failures detected.&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,899&amp;nbsp; INFO&amp;nbsp; [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk Filesystem Import: Completed batch of 100 entries&lt;BR /&gt;&amp;nbsp;2018-10-25 10:36:46,899&amp;nbsp; DEBUG [repo.bulkimport.BulkFilesystemImporter] [BulkFilesystemImport-BackgroundThread] Bulk import from '/app/tmp/test' succeeded.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm on centos 7 and alfresco community 5.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 07:02:22 GMT</pubDate>
    <dc:creator>livier</dc:creator>
    <dc:date>2018-10-25T07:02:22Z</dc:date>
    <item>
      <title>bulkimport - curl - metadata</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/bulkimport-curl-metadata/m-p/57765#M20718</link>
      <description>Hi everyone, I have a problem using bulkimportI'd like to import documents and change their types and custom propertiesI have two files :a pdf file (for example : test.pdf)the xml file whicg contain the type and metadata (for example : test.pdf.metadata.xml)Here is my xml file :&amp;lt;?xml version="1.0</description>
      <pubDate>Thu, 25 Oct 2018 07:02:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/bulkimport-curl-metadata/m-p/57765#M20718</guid>
      <dc:creator>livier</dc:creator>
      <dc:date>2018-10-25T07:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: bulkimport - curl - metadata</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/bulkimport-curl-metadata/m-p/57766#M20719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved : the name of the xml file should be test.pdf.metadata.properties.xml&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:10:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/bulkimport-curl-metadata/m-p/57766#M20719</guid>
      <dc:creator>livier</dc:creator>
      <dc:date>2018-10-25T11:10:13Z</dc:date>
    </item>
  </channel>
</rss>

