<?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 Probleme Cannot delete or update a parent row: a foreign key in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193116#M146246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bonjour,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;suite à une lecture des logs j'ai un message ci dessous concernant un defaut de purge.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Avez vous une idée sur le problème?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quelles sont les actions que je doit mettre en place?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;suite a une consultation des forums j'ai tenté :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;system.content.orphanProtectDays=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;system.content.orphanCleanup.cronExpression=0 4 * * * ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;system.content.eagerOrphanCleanup=true &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mais la purge ne se réalise toujours pas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Avez vous des pistes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Merci par avcance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; [node.db.DeletedNodeCleanup[Worker] DefaultScheduler_Worker-10] Failed to purge nodes.&amp;nbsp; If the purgable set is too large for the available DB resources &lt;BR /&gt;&amp;nbsp; then the nodes can be purged manually as&lt;BR /&gt;2012-06-04 21:00:04,921&amp;nbsp;&amp;nbsp; well. &lt;BR /&gt;&amp;nbsp; Set log level to WARN for this class to get exception log: &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Max commit time: 1336244400008&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Error:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;### Error updating database.&amp;nbsp; Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_child_assoc`, CONSTRAINT `fk_alf_cass_pnode` FOREIGN KEY (`parent_node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt;### The error may involve alfresco.node.delete_NodesByTxnCommitTime-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_child_assoc`, CONSTRAINT `fk_alf_cass_pnode` FOREIGN KEY (`parent_node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt;; SQL []; Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_child_assoc`, CONSTRAINT `fk_alf_cass_pnode` FOREIGN KEY (`parent_node_id`) REFERENCES `alf_node` (`id`)); nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`alfresco`.`alf_child_assoc`, CONSTRAINT `fk_alf_cass_pnode` FOREIGN KEY (`parent_node_id`) REFERENCES `alf_node` (`id`))&lt;BR /&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 21:12:07 GMT</pubDate>
    <dc:creator>vinloz</dc:creator>
    <dc:date>2012-06-05T21:12:07Z</dc:date>
    <item>
      <title>Probleme Cannot delete or update a parent row: a foreign key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193116#M146246</link>
      <description>Bonjour,suite à une lecture des logs j'ai un message ci dessous concernant un defaut de purge.Avez vous une idée sur le problème?quelles sont les actions que je doit mettre en place?suite a une consultation des forums j'ai tenté :system.content.orphanProtectDays=0system.content.orphanCleanup.cronExp</description>
      <pubDate>Tue, 05 Jun 2012 21:12:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193116#M146246</guid>
      <dc:creator>vinloz</dc:creator>
      <dc:date>2012-06-05T21:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Probleme Cannot delete or update a parent row: a foreign key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193117#M146247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Etrange… vous avez des incohérences dans la base de données semble-t-il.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Essayez de mettre le cleaner en WARN pour obtenir la trace d'exception complète, comme suggéré.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Essayez également de déterminer la requête exacte qui échoue et inspectez la dans votre base de données.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 08:10:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193117#M146247</guid>
      <dc:creator>rguinot</dc:creator>
      <dc:date>2012-06-06T08:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Probleme Cannot delete or update a parent row: a foreign key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193118#M146248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bonjour,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;et merci de cette réponse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Je pense que cette anomalie est issue de la suppression manuelle d'un site présent dans la corbeille (contenant beaucoup de fichiers). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Essayez de mettre le cleaner en WARN pour obtenir la trace d'exception complète, comme suggéré."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A quel endroit je peux mettre le cleaner en WARN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Essayez également de déterminer la requête exacte qui échoue et inspectez la dans votre base de données."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Est ce que vous avez une méthode pour l'identifier?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;merci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:29:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193118#M146248</guid>
      <dc:creator>vinloz</dc:creator>
      <dc:date>2012-06-06T11:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Probleme Cannot delete or update a parent row: a foreign key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193119#M146249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J'ai aussi ce bug qui arrive de temps en temps. Je ne sais pas ce qui pose problème. Pour palier à ceci, on peut procéder à un FULL réindexage pour obtenir le node qui pose problème et ensuite supprimer manuellement les enregistrement dans la DB : &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/installation-upgrades/indexing-does-not-work" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/installation-upgrades/indexing-does-not-work&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Voir aussi problème avec la table alf_activity_post &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/comment/131181#comment-131181" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/comment/131181#comment-131181&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pour relancer la purge, il faut modifier le bean nodeServiceCleanupTrigger(/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/scheduled-jobs-context.xml) et redémarrer Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Alfresco 4.0D, RHEL 5.6, Mysql)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:39:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193119#M146249</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2013-06-10T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Probleme Cannot delete or update a parent row: a foreign key</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193120#M146250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;for my understanding the root problem is broken referencial integrity. Take a look in the thread &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/comment/131181#comment-131181" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/comment/131181#comment-131181&lt;/A&gt;&lt;SPAN&gt; for housekeeping …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:27:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/probleme-cannot-delete-or-update-a-parent-row-a-foreign-key/m-p/193120#M146250</guid>
      <dc:creator>heiko_robert</dc:creator>
      <dc:date>2013-08-23T16:27:51Z</dc:date>
    </item>
  </channel>
</rss>

