<?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 LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114019#M31690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My ldap sync is broken with the error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2019-08-10 03:16:18,271 ERROR [org.quartz.core.JobRunShell] [DefaultScheduler_Worker-3] Job DEFAULT.ldapPeopleJobDetail threw an unhandled Exception:&lt;BR /&gt;org.springframework.dao.DataIntegrityViolationException: No property value exists for ID 2927643&lt;BR /&gt; at org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl.getPropertyById(AbstractPropertyValueDAOImpl.java:841)&lt;BR /&gt; at org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl.getPropertyUniqueContext(AbstractPropertyValueDAOImpl.java:1293)&lt;BR /&gt; at org.alfresco.repo.attributes.AttributeServiceImpl.setAttribute(AttributeServiceImpl.java:175)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is similar to the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/232478"&gt;Synchronization aborted due to error DataIntegrityViolationException: No property value exists for ID 1196935&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="233887" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/233887-synchronisation-impossible-no-property-value-exists-for-id" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I didn't notice it at the time but looking at the logs this problem seemed to start here (multiple lines replaced with ... for clarity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to get this working again would be very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;BR /&gt;2019-08-10 03:00:00,614 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Executing database script /tmp/tomcat7-tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-1023817728131585085.sql (Copied from alfresco/dbscripts/utility/org.hibernate.dialect.MySQLInnoDBDialect/CleanAlfPropTablesPostExec.sql).&lt;BR /&gt;2019-08-10 03:00:00,675 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Executing database script /tmp/tomcat7-tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-7622424929137716558.sql (Copied from alfresco/dbscripts/utility/org.hibernate.dialect.MySQLInnoDBDialect/CleanAlfPropTables.sql).&lt;BR /&gt;2019-08-10 03:00:00,846 WARN [org.cggh.repo.security.sync.CustomChainingUserRegistrySynchronizer] [DefaultScheduler_Worker-2] Full synchronization with user registry 'ldap1'&lt;BR /&gt;2019-08-10 03:00:00,846 WARN [org.alfresco.repo.security.sync.CustomChainingUserRegistrySynchronizer] [DefaultScheduler_Worker-2] Some users and groups previously created by synchronization with this user registry may be removed.&lt;BR /&gt;2019-08-10 03:00:05,218 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 1 rows from table alf_audit_app.&lt;BR /&gt;2019-08-10 03:00:05,769 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 1 rows of 0 rows from table alf_audit_entry.&lt;BR /&gt;2019-08-10 03:00:06,406 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 2927637 rows from table alf_prop_unique_ctx.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:13,279 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 2927637 rows from table alf_prop_root.&lt;BR /&gt;2019-08-10 03:00:13,292 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 2927637 rows from table alf_prop_root.&lt;BR /&gt;2019-08-10 03:00:13,313 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 20000 to 30000 rows of 2927637 rows from table alf_prop_root.&lt;BR /&gt;2019-08-10 03:00:13,347 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 30000 to 40000 rows of 2927637 rows from table alf_prop_root.&lt;BR /&gt;....&lt;BR /&gt;2019-08-10 03:00:18,666 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 2920000 to 2930000 rows of 2927637 rows from table alf_prop_root.&lt;BR /&gt;2019-08-10 03:00:18,786 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 2927635 rows from table temp_prop_root_obs.&lt;BR /&gt;2019-08-10 03:00:18,788 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 2927635 rows from table temp_prop_root_obs.&lt;BR /&gt;2019-08-10 03:00:18,789 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 20000 to 30000 rows of 2927635 rows from table temp_prop_root_obs.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:19,299 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 2910000 to 2920000 rows of 2927635 rows from table temp_prop_root_obs.&lt;BR /&gt;2019-08-10 03:00:19,601 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 2920000 to 2930000 rows of 2927635 rows from table temp_prop_root_obs.&lt;BR /&gt;2019-08-10 03:00:20,838 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;2019-08-10 03:00:20,862 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:21,375 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 400000 to 410000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;2019-08-10 03:00:21,388 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 1 rows of 0 rows from table alf_audit_entry.&lt;BR /&gt;2019-08-10 03:00:21,400 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 400333 rows from table alf_prop_link.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:24,059 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 400000 to 410000 rows of 400333 rows from table alf_prop_link.&lt;BR /&gt;2019-08-10 03:00:24,076 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 66986 rows from table alf_prop_unique_ctx.&lt;BR /&gt;2019-08-10 03:00:24,109 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 66986 rows from table alf_prop_unique_ctx.&lt;BR /&gt;2019-08-10 03:00:24,181 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 20000 to 30000 rows of 66986 rows from table alf_prop_unique_ctx.&lt;BR /&gt;...&lt;BR /&gt;019-08-10 03:00:26,525 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 390000 to 400000 rows of 398263 rows from table alf_prop_unique_ctx.&lt;BR /&gt;2019-08-10 03:00:26,546 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;2019-08-10 03:00:26,561 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;2019-08-10 03:00:26,578 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 20000 to 30000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:27,291 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 400000 to 410000 rows of 400333 rows from table alf_prop_value.&lt;BR /&gt;2019-08-10 03:00:27,326 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;2019-08-10 03:00:27,331 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:28,368 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 400000 to 410000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;2019-08-10 03:00:28,383 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 4224 rows from table temp_del_str1.&lt;BR /&gt;2019-08-10 03:00:28,401 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;2019-08-10 03:00:28,418 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:28,823 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 400000 to 410000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;2019-08-10 03:00:28,838 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 1 rows of 0 rows from table temp_del_ser1.&lt;BR /&gt;2019-08-10 03:00:28,842 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 10000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;2019-08-10 03:00:28,854 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 10000 to 20000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;...&lt;BR /&gt;2019-08-10 03:00:29,338 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 400000 to 410000 rows of 400332 rows from table temp_prop_val_obs.&lt;BR /&gt;2019-08-10 03:00:29,352 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Processing from 0 to 1 rows of 0 rows from table temp_del_double1.&lt;BR /&gt;2019-08-10 03:00:29,356 INFO [org.alfresco.repo.domain.schema.script.ScriptExecutorImpl] [DefaultScheduler_Worker-10] Executing database script /tmp/tomcat7-tomcat7-tmp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-4347848468998907419.sql (Copied from alfresco/dbscripts/utility/org.hibernate.dialect.MySQLInnoDBDialect/CleanAlfPropTablesPostExec.sql).&lt;BR /&gt;2019-08-10 03:16:18,271 ERROR [org.quartz.core.JobRunShell] [DefaultScheduler_Worker-3] Job DEFAULT.ldapPeopleJobDetail threw an unhandled Exception:&lt;BR /&gt;org.springframework.dao.DataIntegrityViolationException: No property value exists for ID 2927643&lt;BR /&gt; at org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl.getPropertyById(AbstractPropertyValueDAOImpl.java:841)&lt;BR /&gt; at org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl.getPropertyUniqueContext(AbstractPropertyValueDAOImpl.java:1293)&lt;BR /&gt; at org.alfresco.repo.attributes.AttributeServiceImpl.setAttribute(AttributeServiceImpl.java:175)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2019 10:11:25 GMT</pubDate>
    <dc:creator>idwright</dc:creator>
    <dc:date>2019-09-03T10:11:25Z</dc:date>
    <item>
      <title>LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114019#M31690</link>
      <description>My ldap sync is broken with the error message:2019-08-10 03:16:18,271 ERROR [org.quartz.core.JobRunShell] [DefaultScheduler_Worker-3] Job DEFAULT.ldapPeopleJobDetail threw an unhandled Exception&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.springframework.dao.DataIntegrityViolationException: No property value exists for ID 2927643 at org.a</description>
      <pubDate>Tue, 03 Sep 2019 10:11:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114019#M31690</guid>
      <dc:creator>idwright</dc:creator>
      <dc:date>2019-09-03T10:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114020#M31691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like there are some properties missing in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to remove them manually, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;delete&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; alf_prop_unique_ctx &lt;SPAN class="keyword token"&gt;where&lt;/SPAN&gt; prop1_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2927643&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;delete&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; alf_prop_root &lt;SPAN class="keyword token"&gt;where&lt;/SPAN&gt; id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2927643&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 10:31:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114020#M31691</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2019-09-03T10:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114021#M31692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved this a while back by executing a JS snippet in JS Console, I couldn't find the final one, but I found the initial draft which might work from the first try or might require some fine-tuning first. PLEASE TEST IT ON A NON CRUCIAL ENVIRONMENT FIRST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; context &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Packages&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;springframework&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;web&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;context&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ContextLoader&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getCurrentWebApplicationContext&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; SyncStatus &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Packages&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;alfresco&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;repo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;security&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sync&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SyncStatus&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; attributeService &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; context&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getBean&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'attributeService'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Packages&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;org&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;alfresco&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cmr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AttributeService&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; ROOT_ATTRIBUTE_PATH &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".ChainingUserRegistrySynchronizer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; STATUS_ATTRIBUTE &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"STATUS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;logger&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;attributeService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getAttribute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ROOT_ATTRIBUTE_PATH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; STATUS_ATTRIBUTE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;SPAN class="comment token"&gt;/* experimental stuff */&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;attributeService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAttribute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ROOT_ATTRIBUTE_PATH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; STATUS_ATTRIBUTE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;attributeService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createAttribute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SyncStatus&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;COMPLETE_ERROR&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;toString&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;ROOT_ATTRIBUTE_PATH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; STATUS_ATTRIBUTE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;logger&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;attributeService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getAttribute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ROOT_ATTRIBUTE_PATH&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; STATUS_ATTRIBUTE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&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;/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;DIV data-extension-version="1.0.4"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 12:25:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114021#M31692</guid>
      <dc:creator>yreg</dc:creator>
      <dc:date>2019-09-03T12:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114022#M31693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, always be aware that the in-memory caches of Alfresco can still contain some values (e.g. mapping String value x to ID y) which&amp;nbsp;CleanAlfPropTables may delete. The whole prop_value code in Alfresco never checks if the cached entries still exist before (re-)linking and will throw up if they don't. Typically, a restart is required / advisable after running CleanAlfPropTables to ensure caches are clear, or you should manually clear the caches via the OOTBee Support Tools.&lt;/P&gt;&lt;P&gt;Problems like this had motivated me to write an &lt;A href="https://github.com/Acosix/alfresco-audit#incremental-cleanup-of-alf_prop_-tables" rel="nofollow noopener noreferrer"&gt;improved cleanup process&lt;/A&gt;, which also includes clearing any old cache entries, so it is safe to run any synchronisation processes afterwards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 13:44:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114022#M31693</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-09-03T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114023#M31694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not the caches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script&amp;nbsp;from&amp;nbsp;&lt;B&gt;Younes REGAIEG&lt;/B&gt;‌ provided a good start but more than one property was involved. By using the stack trace, either from the logs or in the javascript console, I could look up the names of the relevant properties in the code using the line numbers. (Easiest way to see the full stack trace is to not catch the exception from getAttribute)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be safe to run as it only does something if an exception is thrown when trying to get an attribute.&lt;/P&gt;&lt;P&gt;You may need to change the value of zone to match your configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();&lt;BR /&gt;var SyncStatus = Packages.org.alfresco.repo.security.sync.SyncStatus;&lt;BR /&gt;var attributeService = context.getBean('attributeService', packages.org.alfresco.service.cmr.attributes.AttributeService);&lt;BR /&gt; &lt;BR /&gt;var ROOT_ATTRIBUTE_PATH = ".ChainingUserRegistrySynchronizer";&lt;BR /&gt;var STATUS_ATTRIBUTE = "STATUS";&lt;BR /&gt;var SUMMARY_ATTRIBUTE = "SUMMARY";&lt;BR /&gt;var zone = "ldap1";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; logger.log(attributeService.getAttribute(ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE));&lt;BR /&gt;} catch(excep) {&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log("Missing attribute:" + ROOT_ATTRIBUTE_PATH + " " + STATUS_ATTRIBUTE + excep);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;attributeService.removeAttribute(ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;attributeService.createAttribute(SyncStatus.COMPLETE_ERROR.toString() ,ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log("Created attribute");&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log(attributeService.getAttribute(ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log(attributeService.getAttribute(ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE, zone));&lt;BR /&gt;} catch(excep) {&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log("Missing attribute:" + ROOT_ATTRIBUTE_PATH + " " + STATUS_ATTRIBUTE + " " + zone + excep);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;attributeService.removeAttribute(ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE, zone);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;attributeService.createAttribute(SyncStatus.COMPLETE_ERROR.toString() ,ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE, zone);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log("Created attribute");&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log(attributeService.getAttribute(ROOT_ATTRIBUTE_PATH, STATUS_ATTRIBUTE, zone));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log(attributeService.getAttribute(ROOT_ATTRIBUTE_PATH, SUMMARY_ATTRIBUTE, zone));&lt;BR /&gt;} catch(excep) {&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log("Missing attribute:" + ROOT_ATTRIBUTE_PATH + " " + SUMMARY_ATTRIBUTE + " " + zone + excep);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;attributeService.removeAttribute(ROOT_ATTRIBUTE_PATH, SUMMARY_ATTRIBUTE, zone);&lt;BR /&gt; &lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;logger.log("Removed attribute");&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 06:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114023#M31694</guid>
      <dc:creator>idwright</dc:creator>
      <dc:date>2019-09-04T06:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114024#M31695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Ian Wright&lt;/B&gt;‌, thanks for sharing your solution!&lt;BR /&gt;just a small typo: in line #3 "packages.org.alfresco..." should start with a upper case letter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 08:07:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114024#M31695</guid>
      <dc:creator>heiko_robert</dc:creator>
      <dc:date>2019-09-05T08:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114025#M31696</link>
      <description>&lt;P&gt;Thanks so much. This script worked like magic. Had to run it twice for some reason but so happy it worked. Been looking for a fix for a few days. Saved me from restoring an old backup.&lt;/P&gt;&lt;P&gt;Seems the issue was triggered by an incomplete running of the "&lt;SPAN&gt;propTablesCleanupJobDetail" scheduled task&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 04:03:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114025#M31696</guid>
      <dc:creator>ainsof</dc:creator>
      <dc:date>2020-04-06T04:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114026#M31697</link>
      <description>&lt;P&gt;Thanks you&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;,&lt;BR /&gt;Deleting the ID(s) from the db as you suggested cleared my errors...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 21:39:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114026#M31697</guid>
      <dc:creator>michaelzietlow</dc:creator>
      <dc:date>2021-06-25T21:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114027#M31698</link>
      <description>&lt;P&gt;Where and how did you run this cript can you provide with me with steps i am facing the same issue and trying to figure out the solution&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 11:49:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114027#M31698</guid>
      <dc:creator>shriyam_gupta</dc:creator>
      <dc:date>2023-11-28T11:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP sync fails after CleanAlfPropTablesPostExec.sql/CleanAlfPropTables.sql</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114028#M31699</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed.png" style="width: 484px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/332i5278A213B28C775C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I was able to fix this issue by manually updating the Id's to Null in table for coloumn prop1_id&lt;BR /&gt;found out the root cause of this issue was breaking of alfresco schedule job called PostpropCleanerDetail job&lt;BR /&gt;the system was unable to find any property values of ID's in prop1_id coloumn and was throwing the error, on putting it to null the alfresco created new prop1_id automatically and all the errors disappeared and ldap sync started working. Deleting these Id's works the same way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 19:09:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/114028#M31699</guid>
      <dc:creator>shriyam_gupta</dc:creator>
      <dc:date>2023-11-29T19:09:31Z</dc:date>
    </item>
  </channel>
</rss>

