<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Activesync fails to sync events created while offline</title> 
  <pubDate>Fri, 10 Apr 2026 20:05:40 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10644</link> 
  <atom:link rel="self" type="application/rss+xml" title="Activesync fails to sync events created while offline" href="https://bugs.horde.org/ticket/10644/rss" /> 
  <description>Activesync fails to sync events created while offline</description> 
 
   
   
  <item> 
   <title>I am again experiencing problems with AS but this time I kno</title> 
   <description>I am again experiencing problems with AS but this time I know whats going on better.  Again, some events are not properly sync&#039;ed and are duplicated.

I discovered the following facts:

-Events that were already in kronolith are kept OK.  No problem with them.
-Events that I CREATED on the mobile device while I was NOT online with my horde installation (out of range from my wifi LAN) are not properly sync&#039;ed.  They are sync at the right moment (day, time) but duplicated.
-I am not sure about events that were modified on the mobile device and later sync&#039;ed as I did not had a chance to try yet.
-Events that created/modified on the mobile device WHILE connected to the local network are sync&#039;ed properly.

In other words, only  (SO FAR) events that are created from scratch offline are not properly sync&#039;ed.

Attached is the AS log for today.  I deleted the entries that were dated prior to today, because the log was well over 5MB.

While removing my private data from the log, I&#039;ve noticed 3 strange things:

1-The events that were duplicated by AS were in the log twice.  I marked them as:  !!!Faulty Event!!!
2-I did NOT change anything with my contacts since original sync (when I created the exchange account on the mobile dev) yet there is references to contact changes in the AS log.
3-One line caught my attention .  Not sure if it has anything to do with my problem:

2011-10-12T18:01:45-04:00 NOTICE: [Appl6Q109352A4S] Error saving state for synckey {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}11: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry &#039;{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}11&#039; for key &#039;PRIMARY&#039; - removing previous sync state and trying again.

Also if important to mention: I did not remove or delete anything dated 2011-10-12.
Help is appreciated.
Thanks to the staff!</description> 
   <pubDate>Thu, 13 Oct 2011 00:33:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68162</link> 
  </item> 
   
  <item> 
   <title>Unable to reproduce your symptoms but will try to track down</title> 
   <description>Unable to reproduce your symptoms but will try to track down based on log and errors.</description> 
   <pubDate>Thu, 13 Oct 2011 14:18:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68177</link> 
  </item> 
   
  <item> 
   <title>From what I can tell, Horde receives all the changes from th</title> 
   <description>From what I can tell, Horde receives all the changes from the device, processes them correctly and then sends the new synckey to the device (which indicates the changes were successful). For some reason, the device is not accepting (or receiving) the response because it immediately re-issues the same SYNC request (including the on-device changes). No idea why your device is not accepting the request. </description> 
   <pubDate>Sat, 15 Oct 2011 19:27:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68242</link> 
  </item> 
   
  <item> 
   <title>I *think* that I&#039;ve found it, and if I&#039;m right, you can clos</title> 
   <description>I *think* that I&#039;ve found it, and if I&#039;m right, you can close this bug.

You see, I am using a third party app on the iphone called &quot;Week Calendar&quot;.  I started to think that the problem might be on the iphone end and suspected the app to have bugs.

Going on the App store and searching for my app, I&#039;ve found this link:

http://www.utilitap.com/weekcalendar/faq.php?item=duplicate

It mentions MobileMe, which I am not using, but the bug is the same.  I will email them to ask for further assistance and see that they say.
</description> 
   <pubDate>Sat, 15 Oct 2011 20:13:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68243</link> 
  </item> 
   
  <item> 
   <title>Nope. Your logs indicate it is (at least partially an Active</title> 
   <description>Nope. Your logs indicate it is (at least partially an ActiveSync) issue. There may be some kind of conflict with the App you mentioned that is causing the device to not receive the synckey (though I doubt it), but the AS server still needs to be able to handle this situation. Working on a solution as we speak...</description> 
   <pubDate>Sat, 15 Oct 2011 20:40:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68244</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Ignore dupli</title> 
   <description>Changes have been made in Git for this ticket:

Ignore duplicate incoming message additions (Bug: 10644)
If incoming changes are successfully applied, but the client does
not receive (or ignores) the new synckey, the next SYNC command will
send duplicate client changes. We now save the incoming clientid
string in the map table so we can ignore duplicate additions in these cases.

Note the new migration that must be run

 4 files changed, 85 insertions(+), 25 deletions(-)
http://git.horde.org/horde-git/-/commit/7d9499c647b1f12703da34f980a91a23d7fd16fa</description> 
   <pubDate>Sat, 15 Oct 2011 21:30:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68245</link> 
  </item> 
   
  <item> 
   <title>Can you try what I just committed?

You will need to run t</title> 
   <description>Can you try what I just committed?

You will need to run the new migration - this can be done from Admin-&gt;Config
 
You *might* also need to re-initialize the AS account depending on how messed up the client&#039;s database is.</description> 
   <pubDate>Sat, 15 Oct 2011 21:35:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68246</link> 
  </item> 
   
  <item> 
   <title>After several days testing and trying out, I am confirming t</title> 
   <description>After several days testing and trying out, I am confirming that it now works!

Thanks a lot guys!</description> 
   <pubDate>Tue, 18 Oct 2011 23:47:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10644#t68300</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
