You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Sébastien Pertus,
We are facing a weird situation regarding conflicts. Issue: I have 2 applications 1 website Connected with SQL Server Main Database and 1 desktop app connected with Sqlite Database.
Whenever I modify any row using my website and try to sync data using the Desktop application, the Modified data is not syncing to the local SQLite Database.
This issue is mostly happening on the tables where I have used GUID as the Primary Key.
I have created a console application to check the issue, agent.LocalOrchestrator.OnApplyChangesConflictOccured shows that there is a conflict. (This is not a conflict as data is only modified using the server not from the client). Conflict Scenario as per your documentation: Conflicts occurs when a client update / delete/insert a record that is updated/deleted or inserted on the server as well before any sync happens.
I have found that Dotmim has Automatically resolved the conflict but changes are not applied to the client.
See the Below screenshot.
However, if I use the following code:
Hi Sébastien Pertus,
We are facing a weird situation regarding conflicts.
Issue: I have 2 applications 1 website Connected with SQL Server Main Database and 1 desktop app connected with Sqlite Database.
Whenever I modify any row using my website and try to sync data using the Desktop application, the Modified data is not syncing to the local SQLite Database.
This issue is mostly happening on the tables where I have used GUID as the Primary Key.
I have created a console application to check the issue, agent.LocalOrchestrator.OnApplyChangesConflictOccured shows that there is a conflict. (This is not a conflict as data is only modified using the server not from the client).
Conflict Scenario as per your documentation: Conflicts occurs when a client update / delete/insert a record that is updated/deleted or inserted on the server as well before any sync happens.
I have found that Dotmim has Automatically resolved the conflict but changes are not applied to the client.
![image](https://private-user-images.githubusercontent.com/22783551/276188660-c41e5200-9267-4dd2-810f-9579e26f39ab.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4ODA0MjQsIm5iZiI6MTcxODg4MDEyNCwicGF0aCI6Ii8yMjc4MzU1MS8yNzYxODg2NjAtYzQxZTUyMDAtOTI2Ny00ZGQyLTgxMGYtOTU3OWUyNmYzOWFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDEwNDIwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0Y2NmNTNhYWNhZTk1MmMxYzk4NWMzNGE2OGQxZjliZGU3MWU0MGQyYTg2M2U1MmQxZmE5ZDk5ZjZmZWNhNTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6YtgdnCj28gAa3Lfzpu7IXRsEnMiFh-rOPu0cVZwJO0)
See the Below screenshot.
However, if I use the following code:
It will apply changes to the client. My question is this a good approach?
![image](https://private-user-images.githubusercontent.com/22783551/276189056-286a3f59-1aaa-4934-86db-33c4d624d910.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4ODA0MjQsIm5iZiI6MTcxODg4MDEyNCwicGF0aCI6Ii8yMjc4MzU1MS8yNzYxODkwNTYtMjg2YTNmNTktMWFhYS00OTM0LTg2ZGItMzNjNGQ2MjRkOTEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDEwNDIwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxZjBkYmU5MzJiMDNkOWM3NmY5ZGI3NWU1YjBhYWI5Y2JhNWRjZDE5MzNjYWQzMmQwMzBkMmRhZDRmZjA0NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1TJZbN74TXXRfr5grspao1MvefIur38YaGlbMbYyqAI)
More Information:
I am using ConflictResolutionPolicy.ClientWins
Dotmim Version: 0.9.7.
One Other Question: Can we use the same user for desktop clients on different machines?
The text was updated successfully, but these errors were encountered: