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

Update error for multiple primary keys tables #16

Open
georgeenaru opened this issue Sep 16, 2015 · 1 comment
Open

Update error for multiple primary keys tables #16

georgeenaru opened this issue Sep 16, 2015 · 1 comment

Comments

@georgeenaru
Copy link

Hi,

Thanks for this toolkit, it works fine, except one issue.
When trying to sync tables that have more than one primary keys the "SyncAsync" method throws an error. Below is the error.
To get over it I had to change all my tables with multiple keys to use only one primary key each and it worked.

Error occured during Upload request.
System.ArgumentException
An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at Microsoft.Synchronization.Services.RequestParser.ReadIncomingRequestStreamForPost() at Microsoft.Synchronization.Services.RequestParser.ParseIncomingRequest() at Microsoft.Synchronization.Services.SyncService1.ProcessRequestForMessage(Stream messageBody)

@vikingau
Copy link
Contributor

Hi George,
If you mean that the table has more than one table in the primary key, then I have already submitted a patch that will allow for a multiple column primary key.
Please review earlier request: Fix handling of multi-column PK in GetChanges
This may address what you require.

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

2 participants