Skip to content

Edge case for conflict resolution when adding entities that were already successfully sent to the server #360

@nvrnight

Description

@nvrnight

Very few of my users ended up running across this issue.

I use PushAsync on the EF DB Context on the client devices. I suspect that maybe my user's device succeeded in uploading the entities, but failed save the result locally that it succeeded. Then every push afterwards ends up with the same result of conflict, even though my conflict resolution code was in place. I looked at the source code for the server library for the table Create endpoint and it always returns a Conflict response whenever the entity already exists.

I am currently working around this issue by modifying the Kind column on the data sync operation from Add to Update after my conflict resolution is performed for this scenario, it succeeds on the next push.

Metadata

Metadata

Assignees

Labels

ClientImprovements or additions to the client codeResolvedThe question, issue, or PR has been resolved.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions