Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during SynchronizeAsync on Android client #960

Open
symbiogenesis opened this issue Feb 8, 2023 · 4 comments
Open

Error during SynchronizeAsync on Android client #960

symbiogenesis opened this issue Feb 8, 2023 · 4 comments

Comments

@symbiogenesis
Copy link
Contributor

symbiogenesis commented Feb 8, 2023

I'm seeing this error sometimes on the client, when running a normal SynchronizeAsync.

I'm using MAUI, and have only seen this on the Android client so far. Windows client is fine. I'm seeing it in debug mode, so it isn't an AOT bug.

Version: 0.9.8
Server: SQL Server
Client: SQLite on Android

Exception message:

[InternalApplyChangesAsync]..[InternalApplyChangesAsync]..[InternalApplyTableChangesAsync]..Specified argument was out of the range of valid values. (Parameter 'Can't make a query on primary keys since number of primary keys columns in criteria is not matching the number of primary keys columns in this table')

Stack trace:

at Dotmim.Sync.LocalOrchestrator.<>c__DisplayClass0_0.<b__3>d.MoveNext()
--- End of stack trace from previous location ---
at Dotmim.Sync.LocalOrchestrator.<>c__DisplayClass0_0.<b__3>d.MoveNext()
--- End of stack trace from previous location ---
at Dotmim.Sync.SyncPolicy.d__17'1[[System.ValueTuple'3[[Dotmim.Sync.SyncContext, Dotmim.Sync.Core, Version=0.9.8.0, Culture=neutral, PublicKeyToken=null],[Dotmim.Sync.ClientSyncChanges, Dotmim.Sync.Core, Version=0.9.8.0, Culture=neutral, PublicKeyToken=null],[Dotmim.Sync.ScopeInfoClient, Dotmim.Sync.Core, Version=0.9.8.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
at Dotmim.Sync.LocalOrchestrator.InternalApplyChangesAsync(ScopeInfo cScopeInfo, ScopeInfoClient cScopeInfoClient, SyncContext context, ServerSyncChanges serverSyncChanges, ClientSyncChanges clientSyncChanges, ConflictResolutionPolicy policy, Boolean snapshotApplied, DbConnection connection, DbTransaction transaction, CancellationToken cancellationToken, IProgress'1 progress)
at Dotmim.Sync.SyncAgent.SynchronizeAsync(String scopeName, SyncSetup setup, SyncType syncType, SyncParameters parameters, CancellationToken cancellationToken, IProgress'1 progress)
at Dotmim.Sync.SyncAgent.SynchronizeAsync(String scopeName, SyncSetup setup, SyncType syncType, SyncParameters parameters, CancellationToken cancellationToken, IProgress'1 progress)

What kinds of things might be the cause of this?

@symbiogenesis symbiogenesis changed the title Error on Sync Error during SynchronizeAsync on Android client Feb 8, 2023
@Mimetis
Copy link
Owner

Mimetis commented Feb 8, 2023

No idea,
Need more info
A walkthrough / sample github repository where you are able to reproduce would help

@pazunino
Copy link

Hi @symbiogenesis I'm facing same error with your same configuration, maui client with 0.9.8.
I can sync once or twice without issues but after that the error you mentioned arise without any reason.
Have you solved?

@symbiogenesis
Copy link
Contributor Author

tbh, I'm still using 0.9.6

@symbiogenesis
Copy link
Contributor Author

Downgrading will likely fix your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants