Showing Progress While Batching RRS feed

  • Question

  • I am wanting to show the actual Progress of a Scope & Table while batching. From what I remember is that the progress will only show what you have in that batch.

    Is there any way to know the percent complete for the entire scope?

    Currently I am keeping a running total of changes and keep adding to it with each batch. The result is a progress bar that jumps all over the place and is not accurate.


    Friday, February 4, 2011 3:28 PM

All replies

  • Hi Rache,

    You're right that when you have batching enabled, the SyncProgress event will show change application progress relative to the number of changes in that batch. However, the provider does not know how many batches it will receive before reaching the last batch, so the total number of changes is unknown.

    A workaround is to implement a custom sync provider that does not immediately apply a change batch as soon as it is received, but saves the batch file in a temporary location. The custom provider will only start applying changes once all batches have been received. That way you know how many batches there are and can accurately report sync progress, but it will also make the solution slightly more complex.



    Thursday, February 10, 2011 12:47 AM
  • By the looks of it I unintentionally am doing this already. If you already have all the batch files downloaded how do you know how many there are? The only way I can think of is to somehow pass the folder location down and count the number of files. Is this what you are suggesting or is there a better way.
    Wednesday, March 9, 2011 4:45 PM