<?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: Referential integrity constraint violation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200098#M153228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the use case, im just saying is that it is probably because the engine doesn't know the type when you pass in null. Try to not set the variable when your receive it, and use execution.getVariable() == null later on .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 15:04:27 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-10-31T15:04:27Z</dc:date>
    <item>
      <title>Referential integrity constraint violation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200095#M153225</link>
      <description>Hi,I receive the following exception during my process execution:### Error updating database.&amp;nbsp; Cause: org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation: "ACT_FK_VAR_BYTEARRAY: PUBLIC.ACT_RU_VARIABLE FOREIGN KEY(BYTEARRAY_ID_) REFERENCES PUBLIC.ACT_GE_BYTEARRAY(ID_) ('20')"; SQ</description>
      <pubDate>Mon, 27 Oct 2014 14:19:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200095#M153225</guid>
      <dc:creator>fbrcls</dc:creator>
      <dc:date>2014-10-27T14:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity constraint violation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200096#M153226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not quite sure, but I think it is due to first adding null as value there and then replacing it. Is there any reason why you set null? Isn't the fact that the variable doesn't exist is enough?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:50:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200096#M153226</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-28T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity constraint violation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200097#M153227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The service task calls a Java bean that can return null as value. That's the reason. Later in the process I will check on this value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 11:32:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200097#M153227</guid>
      <dc:creator>fbrcls</dc:creator>
      <dc:date>2014-10-28T11:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity constraint violation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200098#M153228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the use case, im just saying is that it is probably because the engine doesn't know the type when you pass in null. Try to not set the variable when your receive it, and use execution.getVariable() == null later on .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 15:04:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200098#M153228</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-10-31T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity constraint violation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200099#M153229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just adding my own experience, in case it helps some one (using activiti version 5.14). We had the same issue, but with a slightly different (but related) cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a process variable, that contains the stringified value of a java enum.&amp;nbsp; In one of my integration tests the variable was accidentally (incorrectly) initialised to "" (empty string). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this initialisation in place, eventually (some time later) the test would fail with the above violation. I think it relates somehow to it being a different java type on either occasion that activiti serializes it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe it is essentially the same issues as described in &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/browse/ACT-1839" rel="nofollow noopener noreferrer"&gt;https://activiti.atlassian.net/browse/ACT-1839&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One I removed the (incorrect) initialisation.. the problem went away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hth's&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 17:11:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/referential-integrity-constraint-violation/m-p/200099#M153229</guid>
      <dc:creator>johnm</dc:creator>
      <dc:date>2016-03-10T17:11:47Z</dc:date>
    </item>
  </channel>
</rss>

