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

Upgrading from 0.9.7 to 0.9.8, error: There is already an object named 'PKey_scope_info_server' in the database. #964

Open
hakakou opened this issue Feb 11, 2023 · 0 comments

Comments

@hakakou
Copy link

hakakou commented Feb 11, 2023

I have two SQL servers syncing using SqlSyncChangeTrackingProvider.
After updating to 0.9.7 to 0.9.8, sync fails with the following log:

Created agent [ClientDB, SqlSyncProvider] => [ServerDB, SqlSyncProvider]
0,0%:       ClientDB:        Session Begins. Id:4b33cc16-e92a-4fa6-9a77-357001c35c28. Scope name:DefaultScope.
0,0%:       ClientDB:        - Temporary renamed scope_info to tmpscope_info.
100,0%:     ClientDB:        Session Ends. Id:4b33cc16-e92a-4fa6-9a77-357001c35c28. Scope name:DefaultScope.
100,0%:     ServerDB:  Session Ends. Id:4b33cc16-e92a-4fa6-9a77-357001c35c28. Scope name:DefaultScope.
.\SQL|Dotmim.Sync.SyncException: [InternalCreateScopeInfoTableAsync].ScopeType:ScopeInfo..There is already an object named 'PKey_scope_info_server' in the database.
Could not create constraint or index. See previous errors.
 ---> Microsoft.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PKey_scope_info_server' in the database.
Could not create constraint or index. See previous errors.
   at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
...
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

1 participant