Asked by:
Caught exception while getting tombstones: System.FormatException

Question
-
I'm having problems with regards to this one:
"Caught exception while getting tombstones: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list".
I can't determine why this problem is showing and what is the cause of this problem? This exception occurs when i call provider.cleanupMetadata method.
Please help :(
Thanks and Best Regards,
RD
Friday, December 10, 2010 3:18 AM
All replies
-
here is my tracelog with regards to the sync framework.
synctest2.vshost.exe Information: 0 : Retrieving procedure metadata for `testlasys`.`sp_get_scope_tables` from server.
synctest2.vshost.exe Information: 0 : Retrieving procedure metadata for `testlasys`.`sp_get_scope_tables` from procedure cache.
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:277, Connecting to database: testlasys
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:292, Executing Command: sp_get_timestamp
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:292, Parameter: sync_new_timestamp Value: Skipped since Not Input/InputOutput
synctest2.vshost.exe Information: 0 : Retrieving procedure metadata for `testlasys`.`sp_get_timestamp` from server.
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:339, Executing Command: select scope_id, scope_local_id, scope_sync_knowledge, scope_forgotten_knowledge, scope_timestamp from scope_info where scope_name = @sync_scope_name
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:339, Parameter: sync_scope_name Len: 9 Value: testlasys
INFO , synctest2.vshost, 10, 12/10/2010 03:02:09:449, ----- Tombstone Cleanup for Scope "testlasys" -----
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:464, Starting from Cleanup ReplicaKeyMap: [(0:39363631323430323033333838343136)] ScopeRangeSet: [00:[]]
ERROR , synctest2.vshost, 10, 12/10/2010 03:02:09:480, Caught exception while getting tombstones: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.Synchronization.Data.SyncResource.FormatString(String key, Object[] a1)
at Microsoft.Synchronization.Data.SyncUtil.CheckForAdapterRowIds(DbSyncAdapterCollection adapters)
at Microsoft.Synchronization.Data.RelationalSyncProvider.PrepareAdaptersForMetadataCleanup(DbSyncScopeMetadata scopeMetadata, IDbTransaction transaction)
at Microsoft.Synchronization.Data.DbSyncProvider.CleanupMetadataInternal(DbSyncScopeMetadata scopeMetadata, IDbTransaction cleanupTransaction)
at Microsoft.Synchronization.Data.DbSyncProvider.CleanupMetadata()
ERROR , synctest2.vshost, 10, 12/10/2010 03:02:09:496, Failed to update knowledge, disposing transaction
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:09:496, Closing Connection
synctest2.vshost.exe Information: 0 : Retrieving procedure metadata for `testlasys`.`sp_get_scope_tables` from server.
synctest2.vshost.exe Information: 0 : Retrieving procedure metadata for `testlasys`.`sp_get_scope_tables` from procedure cache.
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:699, Connecting to database: testlasys
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:714, Executing Command: sp_get_timestamp
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:714, Parameter: sync_new_timestamp Value: Skipped since Not Input/InputOutput
synctest2.vshost.exe Information: 0 : Retrieving procedure metadata for `testlasys`.`sp_get_timestamp` from server.
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:761, Executing Command: select scope_id, scope_local_id, scope_sync_knowledge, scope_forgotten_knowledge, scope_timestamp from scope_info where scope_name = @sync_scope_name
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:777, Parameter: sync_scope_name Len: 9 Value: testlasys
INFO , synctest2.vshost, 10, 12/10/2010 03:02:40:871, ----- Tombstone Cleanup for Scope "testlasys" -----
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:886, Starting from Cleanup ReplicaKeyMap: [(0:39363631323430323033333838343136)] ScopeRangeSet: [00:[]]
ERROR , synctest2.vshost, 10, 12/10/2010 03:02:40:902, Caught exception while getting tombstones: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.Synchronization.Data.SyncResource.FormatString(String key, Object[] a1)
at Microsoft.Synchronization.Data.SyncUtil.CheckForAdapterRowIds(DbSyncAdapterCollection adapters)
at Microsoft.Synchronization.Data.RelationalSyncProvider.PrepareAdaptersForMetadataCleanup(DbSyncScopeMetadata scopeMetadata, IDbTransaction transaction)
at Microsoft.Synchronization.Data.DbSyncProvider.CleanupMetadataInternal(DbSyncScopeMetadata scopeMetadata, IDbTransaction cleanupTransaction)
at Microsoft.Synchronization.Data.DbSyncProvider.CleanupMetadata()
ERROR , synctest2.vshost, 10, 12/10/2010 03:02:40:917, Failed to update knowledge, disposing transaction
VERBOSE, synctest2.vshost, 10, 12/10/2010 03:02:40:917, Closing ConnectionNote: I'm using MySQL Databases for the client and server side.
Friday, December 10, 2010 3:21 AM