<?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: database violations error while starting workflow through the job scheduling in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312662#M265792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This stacktrace confirms that the code causing the issue is run in an isolated job and not caused by your workflow start job.&lt;/P&gt;&lt;P&gt;The real cause of the problem may be completely unrelated. Apparently a node has been marked as deleted but not all of its properties have been removed at the time they should have been. This looks like a potential error / bug in the NodeService / NodeDAO area of responsibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which Alfresco version are you running?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 09:09:40 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2016-10-18T09:09:40Z</dc:date>
    <item>
      <title>database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312659#M265789</link>
      <description>While I am trying to start the workflow from job scheduling getting database violation error:ERROR [node.db.DeletedNodeCleanupWorker] [DefaultScheduler_Worker-10] Failed to purge nodes.&amp;nbsp; If the purgable set is too large for the available DB resources &amp;nbsp; then the nodes can be purged manually as well.</description>
      <pubDate>Tue, 18 Oct 2016 06:28:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312659#M265789</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-10-18T06:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312660#M265790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not believe the error in DeletedNodeCleanupWorker is in any way related to your attempt to start a workflow. Both are independant jobs which do not call / trigger each other. I cannot determine any relation via the log excerpts you posted. If you could set the log level for org.alfresco.repo.node.db.DeletedNodeCleanupWorker to WARN (as the message states) you will get more detail about this particular error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 07:53:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312660#M265790</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-10-18T07:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312661#M265791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added that to log statements&amp;nbsp; after that I got like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-03-08 16:15:17,085&amp;nbsp; WARN&amp;nbsp; [node.db.DeletedNodeCleanupWorker] [DefaultScheduler_Worker-3] Failed to purge nodes.&amp;nbsp; If the purgable set is too large for the available DB resources &lt;/P&gt;&lt;P&gt;&amp;nbsp; then the nodes can be purged manually as well. &lt;/P&gt;&lt;P&gt;&amp;nbsp; Set log level to WARN for this class to get exception log: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Max commit time: 1486377910675&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Error:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;### Error updating database.&amp;nbsp; Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt;### The error may involve alfresco.node.delete_NodesByTxnCommitTime-Inline&lt;/P&gt;&lt;P&gt;### The error occurred while setting parameters&lt;/P&gt;&lt;P&gt;### Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt;; SQL []; ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".; nested exception is org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt; org.springframework.dao.DataIntegrityViolationException: &lt;/P&gt;&lt;P&gt;### Error updating database.&amp;nbsp; Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt;### The error may involve alfresco.node.delete_NodesByTxnCommitTime-Inline&lt;/P&gt;&lt;P&gt;### The error occurred while setting parameters&lt;/P&gt;&lt;P&gt;### Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt;; SQL []; ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".; nested exception is org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:245)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:346)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at com.sun.proxy.$Proxy9.delete(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.mybatis.spring.SqlSessionTemplate.delete(SqlSessionTemplate.java:259)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.domain.node.ibatis.NodeDAOImpl.deleteNodesByCommitTime(NodeDAOImpl.java:393)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.purgeNodes(AbstractNodeDAOImpl.java:2044)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.db.DeletedNodeCleanupWorker$1.execute(DeletedNodeCleanupWorker.java:110)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.db.DeletedNodeCleanupWorker$1.execute(DeletedNodeCleanupWorker.java:107)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.db.DeletedNodeCleanupWorker.purgeOldDeletedNodes(DeletedNodeCleanupWorker.java:122)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.db.DeletedNodeCleanupWorker.doCleanInternal(DeletedNodeCleanupWorker.java:62)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker$1.doWork(AbstractNodeCleanupWorker.java:173)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker$1.doWork(AbstractNodeCleanupWorker.java:168)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker.doCleanAsSystem(AbstractNodeCleanupWorker.java:182)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.cleanup.AbstractNodeCleanupWorker.doClean(AbstractNodeCleanupWorker.java:124)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.cleanup.NodeCleanupRegistry.doClean(NodeCleanupRegistry.java:62)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.alfresco.repo.node.cleanup.NodeCleanupJob.execute(NodeCleanupJob.java:54)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.quartz.core.JobRunShell.run(JobRunShell.java:216)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)&lt;/P&gt;&lt;P&gt;Caused by: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_node" violates foreign key constraint "fk_alf_nprop_n" on table "alf_node_properties"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Detail: Key (id)=(1584) is still referenced from table "alf_node_properties".&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:381)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:22)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:51)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:29)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:87)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:46)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:118)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.ibatis.session.defaults.DefaultSqlSession.delete(DefaultSqlSession.java:131)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at sun.reflect.GeneratedMethodAccessor436.invoke(Unknown Source)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:606)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:338)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ... 18 more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 09:05:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312661#M265791</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-10-18T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312662#M265792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This stacktrace confirms that the code causing the issue is run in an isolated job and not caused by your workflow start job.&lt;/P&gt;&lt;P&gt;The real cause of the problem may be completely unrelated. Apparently a node has been marked as deleted but not all of its properties have been removed at the time they should have been. This looks like a potential error / bug in the NodeService / NodeDAO area of responsibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which Alfresco version are you running?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 09:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312662#M265792</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-10-18T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312663#M265793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using alfresco enterprise 4.2.2 version &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 09:18:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312663#M265793</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-10-18T09:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312664#M265794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just faced and fixed 101 different registres in a PostgreSQL database, in which an Alfresco 5.2.f is connected.&lt;/P&gt;&lt;P&gt;I had to take every single ID printed in the log file and execute the following SQL statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff; margin: 0px 0px 8px;"&gt;DELETE&lt;BR /&gt;FROM alf_node_properties&lt;BR /&gt;WHERE node_id = &amp;lt;ID&amp;gt;;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;DELETE FROM alf_node&lt;BR /&gt;WHERE ID = &amp;lt;ID&amp;gt;;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;After every execution, I had to re-execute the&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #f8f8f8;"&gt;nodeServiceCleanupJobDetail job, as for each execution, I could get only 2 IDs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; background-color: #f8f8f8;"&gt;I used the OOTB Support Tools to manually execute the job.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; background-color: #f8f8f8;"&gt;The problem with this is that I am not sure what exactly caused such inconsistencies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; background-color: #f8f8f8;"&gt;I hope this information is useful for others facing the same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 02:53:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312664#M265794</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-07-25T02:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: database violations error while starting workflow through the job scheduling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312665#M265795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone looking, the OOTBee Support Tools can be found here -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/OrderOfTheBee/ootbee-support-tools" title="https://github.com/OrderOfTheBee/ootbee-support-tools" rel="nofollow noopener noreferrer"&gt;GitHub - OrderOfTheBee/ootbee-support-tools: OOTBee Support Tools addon to extend set of administrative tools on Reposit…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 12:45:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-violations-error-while-starting-workflow-through-the/m-p/312665#M265795</guid>
      <dc:creator>kgastaldo</dc:creator>
      <dc:date>2017-07-26T12:45:07Z</dc:date>
    </item>
  </channel>
</rss>

