Closed almuatacim closed 1 week ago
Thanks for the detailed feedback ! It helped a lot to debug this issue.
Indeed, there is a bug here in the TableParser
.
I've just made a fix that should resolve your issue. Can you grab the last code source from the main branch, and make a new test ?
Hi,
Thanks for the quick fix! I’ve just grabbed the latest code from the main branch, and I can confirm that the issue is now resolved. The sync works perfectly with the original column names D
and M
in the opr
table.
Just a quick question: do you have an estimated release date for when this update will be available on NuGet? It would help me and others plan our updates accordingly.
Thanks again for your great support and for addressing this so quickly!
Best regards,
Almuatacim Hamouda
I will make a pre release soon, like next week :)
I am developing an ASP.NET Web API to synchronize SQL Server databases using Dotmim.Sync and the
SqlSyncChangeTrackingProvider
. While syncing a table namedopr
, I encountered aDotmim.Sync.SyncException
related to two specific columns namedD
andM
. The exception is as follows:Steps to Reproduce:
Create a SQL Server table with the following schema:
Set up Dotmim.Sync using
SqlSyncChangeTrackingProvider
to sync theopr
table between SQL Server databases.Attempt to provision and sync this table using Dotmim.Sync in an ASP.NET Core Web API.
The sync operation fails with the above exception, specifically when it encounters the columns named
D
andM
.Workaround:
When I rename the columns
D
andM
to more descriptive names likeD_Col
andM_Col
, the sync operation works successfully without any issues. Another workaround is to exclude these columns from the sync setup:Additional Information:
I suspect that this issue might be related to the short column names
D
andM
, potentially conflicting with internal Dotmim.Sync handling or reserved keywords.Request:
Could you please look into whether column name length or specific characters in column names might be causing this issue, or if there are certain limitations with Dotmim.Sync and
SqlSyncChangeTrackingProvider
that need to be addressed? I'd appreciate guidance on how to best handle this scenario while keeping the original column names.Thank you for your help!