<?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: BatchUpdateException while creating a document in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/batchupdateexception-while-creating-a-document/m-p/320681#M7682</link>
    <description>&lt;P&gt;You're trying to create several documents in the same folder with the same name (&lt;CODE&gt;AADHAAR_CARD&lt;/CODE&gt;). The Nuxeo code attempts to detect pre-existing documents with the same name and provide a new one (&lt;CODE&gt;AADHAAR_CARD.1593524158152&lt;/CODE&gt;) but this is not perfect, as it will fail if done with high concurrency. You should do your creations with different names for different documents in the same folder.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jul 2020 13:57:48 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2020-07-04T13:57:48Z</dc:date>
    <item>
      <title>BatchUpdateException while creating a document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/batchupdateexception-while-creating-a-document/m-p/320680#M7681</link>
      <description>&lt;P&gt;I doing performance testing of Nuxeo instance but I am sometime getting BatchUpdateException. I am uploading same file repeatedly with different metadata. I am using Postgres as backend DB.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Failed to save session, java.sql.BatchUpdateException: Batch entry 0 INSERT INTO \"hierarchy\" (\"id\", \"parentid\", \"pos\", \"name\", \"isproperty\", \"primarytype\", \"mixintypes\", \"ischeckedin\", \"baseversionid\", \"majorversion\", \"minorversion\", \"isversion\", \"isretentionactive\", \"istrashed\", \"systemchangetoken\", \"changetoken\") VALUES (75680, 909, NULL, 'AADHAAR_CARD.1593524158152', 'FALSE', 'Picture', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, 0, 0) was aborted: ERROR: duplicate key value violates unique constraint \"hierarchy_unique_child\"\n  Detail: Key (parentid, name)=(909, AADHAAR_CARD.1593524158152) already exists.  Call getNextException to see other errors in the batch.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:22:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/batchupdateexception-while-creating-a-document/m-p/320680#M7681</guid>
      <dc:creator>Ankush_Bandil</dc:creator>
      <dc:date>2020-07-02T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: BatchUpdateException while creating a document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/batchupdateexception-while-creating-a-document/m-p/320681#M7682</link>
      <description>&lt;P&gt;You're trying to create several documents in the same folder with the same name (&lt;CODE&gt;AADHAAR_CARD&lt;/CODE&gt;). The Nuxeo code attempts to detect pre-existing documents with the same name and provide a new one (&lt;CODE&gt;AADHAAR_CARD.1593524158152&lt;/CODE&gt;) but this is not perfect, as it will fail if done with high concurrency. You should do your creations with different names for different documents in the same folder.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 13:57:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/batchupdateexception-while-creating-a-document/m-p/320681#M7682</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2020-07-04T13:57:48Z</dc:date>
    </item>
  </channel>
</rss>

