locked
SyncStatistics and details ? RRS feed

  • Question

  •  

    Hi,

     

    Is there any way to know exactly what and why some data has failed during transactions ?

     

    A statement like "SyncStatistics syncStats = syncAgent.Synchronize();" is doing all the magic but

    I have no clue how to understand why I have some data failed during upload or download.

     

            try
            {
              LocalDataCache1SyncAgent syncAgent = new LocalDataCache1SyncAgent();
              syncAgent.RemoteProvider =
                new ServerSyncProviderProxy(new SynchroServiceReference.LocalDataCache1SyncContractClient());
              syncAgent.SessionProgress += syncAgent_SessionProgress;

              SyncStatistics syncStats = syncAgent.Synchronize();

              TraceHelper.Trace("Synchro.synchronize", "SyncStartTime " + syncStats.SyncStartTime);
              TraceHelper.Trace("Synchro.synchronize", "TotalChangesDownloaded " + syncStats.TotalChangesDownloaded);
              TraceHelper.Trace("Synchro.synchronize", "DownloadChangesApplied " + syncStats.DownloadChangesApplied);
              TraceHelper.Trace("Synchro.synchronize", "DownloadChangesFailed " + syncStats.DownloadChangesFailed);
              TraceHelper.Trace("Synchro.synchronize", "TotalChangesUploaded " + syncStats.TotalChangesUploaded);
              TraceHelper.Trace("Synchro.synchronize", "UploadChangesApplied " + syncStats.UploadChangesApplied);
              TraceHelper.Trace("Synchro.synchronize", "UploadChangesFailed " + syncStats.UploadChangesFailed);
              TraceHelper.Trace("Synchro.synchronize", "SyncCompleteTime " + syncStats.SyncCompleteTime);
              m_lastSynchro = DateTime.Now;
            }
            catch (Exception ex)
            {
              ErrorHelper.TraceError(ex);
            }
          }

     

     

    00260339 116999.21093750 [3320] TraceTongue Tiedynchro.synchronize:Tongue TiedyncStartTime 10/28/2007 6:41:07 PM  
    00260340 116999.22656250 [3320] TraceTongue Tiedynchro.synchronize::TotalChangesDownloaded 71  
    00260341 116999.24218750 [3320] TraceTongue Tiedynchro.synchronize:Big SmileownloadChangesApplied 34  
    00260342 116999.26562500 [3320] TraceTongue Tiedynchro.synchronize:Big SmileownloadChangesFailed 37       ?????
    00260343 116999.27343750 [3320] TraceTongue Tiedynchro.synchronize::TotalChangesUploaded 214  
    00260344 116999.28125000 [3320] TraceTongue Tiedynchro.synchronize::UploadChangesApplied 119  
    00260345 116999.32031250 [3320] TraceTongue Tiedynchro.synchronize::UploadChangesFailed 95          ?????

     

    Thxs

     

    -Vince

    • Moved by Tina_Tian Friday, April 22, 2011 8:06 AM (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Monday, October 29, 2007 11:01 PM

Answers

  • Hi Vince,

     

    The statistics object has a conflict list which contains all the failures and why. Check it out and let me know if you have any questions.

     

    Thanks

     

    Tuesday, October 30, 2007 12:15 AM
  •  

    Hi Thomas,

     

    Sorry for the confusion. there was a changes in the SyncStatistics object and the conflicts list was removed with this change. that is why it is not there.

     

    Sorry about that.

     

    thanks

    Yunwen

    Saturday, January 19, 2008 8:09 PM
    Moderator

All replies

  • Hi Vince,

     

    The statistics object has a conflict list which contains all the failures and why. Check it out and let me know if you have any questions.

     

    Thanks

     

    Tuesday, October 30, 2007 12:15 AM
  • Hello Rafik,

     

    you write:  

    ...

    "The statistics object has a conflict list which contains all the failures and why. Check it out and let me know if you have any questions."

     

    That "Conflict list" would be very helpful. I could not find a conflict list with the SyncStatistics object. Could you please clarify your last answer.

     

    Thanks

     

    Wednesday, January 16, 2008 5:15 PM
  •  

    Hi Thomas,

     

    Sorry for the confusion. there was a changes in the SyncStatistics object and the conflicts list was removed with this change. that is why it is not there.

     

    Sorry about that.

     

    thanks

    Yunwen

    Saturday, January 19, 2008 8:09 PM
    Moderator
  • So how do we find out what changes have failed, and why they have failed?
    Saturday, September 20, 2008 11:53 AM
  • Really interested in this too. Any news?

     

    Tuesday, October 7, 2008 12:05 PM