Replies: 10 comments 6 replies
-
I followed the github esxample and updated the server for MIGRAtION. However now when I try to sync from the client mobile device I am getting the following error below. Can anybody help me with what is going on here? I am obviously doing something wrong. Here is my code on the web api....I checked and the stored procs are updated correctly so I am unclear as to why I am getting this error `try
} {Dotmim.Sync.Web.Client.HttpSyncWebException: Invalid object name 'Vehicle_tracking'.at Dotmim.Sync.RemoteOrchestrator.ApplyThenGetChangesAsync(ScopeInfo clientScope, BatchInfo clientBatchInfo, DbConnection connection, DbTransaction transaction, CancellationToken cancellationToken, IProgress
|
Beta Was this translation helpful? Give feedback.
-
Hmmm all i did was an EF migration, not sure how that would have been
deleted?
So its a server issue not the local sqlite database?
For the EF migration, I used visual studio package manager console
Then I ran the code for the server in the web api, everything seemed to
update correctly.
I didnt see a tracking table before or after on the server. Where would
the tracking table be?
I spoke to my boss, he said if you have the time to help with this, we will
pay.
Seth
…On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus ***@***.***> wrote:
Seems you have deleted the tracking table on your server
—
Reply to this email directly, view it on GitHub
<#734 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Here are my tables before the migration...essentially the very first sync
[image: image.png]
On Thu, May 12, 2022 at 2:32 PM Seth Isaacks ***@***.***>
wrote:
… Hmmm all i did was an EF migration, not sure how that would have been
deleted?
So its a server issue not the local sqlite database?
For the EF migration, I used visual studio package manager console
Then I ran the code for the server in the web api, everything seemed to
update correctly.
I didnt see a tracking table before or after on the server. Where would
the tracking table be?
I spoke to my boss, he said if you have the time to help with this, we
will pay.
Seth
On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus ***@***.***>
wrote:
> Seems you have deleted the tracking table on your server
>
> —
> Reply to this email directly, view it on GitHub
> <#734 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
I am not sure what else to do, I have done everything your directions say
to do but it will not work.
Instead of doing the migration, I added the new column as per your example.
I then ran just the web api...by pressing PLAY on the project.
Then I checked the azure database to make sure it updated which it did.
Then I went back to my mobile app and ran the app and updated the Sqlite
Database per your instructions.
Then I tried to sync the data and I get the same error again.
Without someone help that is more knowledgeable, it does not appear it will
work with Xamarin and Sqlite
Regards
Seth Isaacks
On Thu, May 12, 2022 at 3:29 PM Seth Isaacks ***@***.***>
wrote:
… Tables after migration
[image: image.png]
On Thu, May 12, 2022 at 2:36 PM Seth Isaacks <
***@***.***> wrote:
> Here are my tables before the migration...essentially the very first sync
>
> [image: image.png]
>
> On Thu, May 12, 2022 at 2:32 PM Seth Isaacks <
> ***@***.***> wrote:
>
>> Hmmm all i did was an EF migration, not sure how that would have been
>> deleted?
>> So its a server issue not the local sqlite database?
>> For the EF migration, I used visual studio package manager console
>> Then I ran the code for the server in the web api, everything seemed to
>> update correctly.
>> I didnt see a tracking table before or after on the server. Where would
>> the tracking table be?
>> I spoke to my boss, he said if you have the time to help with this, we
>> will pay.
>>
>> Seth
>>
>> On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus <
>> ***@***.***> wrote:
>>
>>> Seems you have deleted the tracking table on your server
>>>
>>> —
>>> Reply to this email directly, view it on GitHub
>>> <#734 (reply in thread)>,
>>> or unsubscribe
>>> <https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
>>> .
>>> You are receiving this because you authored the thread.Message ID:
>>> ***@***.***>
>>>
>>
|
Beta Was this translation helpful? Give feedback.
-
Something just occurred to me, I have been turning change tracking on for
the entire server database...should I only be doing that per table?
Just trying to figure out why I am getting the errors I am getting.
On Thu, May 12, 2022 at 5:39 PM Seth Isaacks ***@***.***>
wrote:
… IN the migration sample you have, if I run your example on the mobile side
I get an exception stating:
{System.PlatformNotSupportedException:
Strings.PlatformNotSupported_DataSqlClient
at Microsoft.Data.SqlClient.SqlConnectionStringBuilder..ctor
(System.String connectionString) [0x00006] in
/_/artifacts/Project/obj/Release.AnyCPU/Microsoft.Data.SqlClient/netcore/Microsoft.Data.SqlClient.notsupported.cs:504
at Dotmim.Sync.SqlServer.SqlSyncProvider..ctor (System.String
connectionString) [0x00021] in <aa4426aee7564ab09ad93bdbfadb609f>:0
at AutomobileApp.Services.NFODataService.Test () [0x0008e] in
C:\SandBox\AutomobileApp\AutomobileApp\AutomobileApp\Services\NFODataService.cs:191
}
On Thu, May 12, 2022 at 4:43 PM Seth Isaacks <
***@***.***> wrote:
> I am not sure what else to do, I have done everything your directions say
> to do but it will not work.
> Instead of doing the migration, I added the new column as per your
> example.
> I then ran just the web api...by pressing PLAY on the project.
> Then I checked the azure database to make sure it updated which it did.
> Then I went back to my mobile app and ran the app and updated the Sqlite
> Database per your instructions.
> Then I tried to sync the data and I get the same error again.
> Without someone help that is more knowledgeable, it does not appear it
> will work with Xamarin and Sqlite
>
> Regards
> Seth Isaacks
>
> On Thu, May 12, 2022 at 3:29 PM Seth Isaacks <
> ***@***.***> wrote:
>
>> Tables after migration
>>
>> [image: image.png]
>>
>> On Thu, May 12, 2022 at 2:36 PM Seth Isaacks <
>> ***@***.***> wrote:
>>
>>> Here are my tables before the migration...essentially the very first
>>> sync
>>>
>>> [image: image.png]
>>>
>>> On Thu, May 12, 2022 at 2:32 PM Seth Isaacks <
>>> ***@***.***> wrote:
>>>
>>>> Hmmm all i did was an EF migration, not sure how that would have been
>>>> deleted?
>>>> So its a server issue not the local sqlite database?
>>>> For the EF migration, I used visual studio package manager console
>>>> Then I ran the code for the server in the web api, everything seemed
>>>> to update correctly.
>>>> I didnt see a tracking table before or after on the server. Where
>>>> would the tracking table be?
>>>> I spoke to my boss, he said if you have the time to help with this, we
>>>> will pay.
>>>>
>>>> Seth
>>>>
>>>> On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus <
>>>> ***@***.***> wrote:
>>>>
>>>>> Seems you have deleted the tracking table on your server
>>>>>
>>>>> —
>>>>> Reply to this email directly, view it on GitHub
>>>>> <#734 (reply in thread)>,
>>>>> or unsubscribe
>>>>> <https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
>>>>> .
>>>>> You are receiving this because you authored the thread.Message ID:
>>>>> ***@***.***
>>>>> com>
>>>>>
>>>>
|
Beta Was this translation helpful? Give feedback.
-
Has anyone successfully done sqlite to sql in an xamarin project? I cannot get this to work. Please help |
Beta Was this translation helpful? Give feedback.
-
So essentially when I follow the migration process......the second sync I do, I get an error stating that the Tracking Table is missing. But I took a snapshot of the sql azure database before and after and neither time did it have a table with that name. I have spent WEEKS trying to get this to work but ultimately fails every time. So on the client when I create my sqlite database it looks like the syntax below. So if I was to add an additional property to the MyTable class, sqlite will update the table on app start:
|
Beta Was this translation helpful? Give feedback.
-
Sebastian
I do not believe DotmimSync will work with Xamarin and Sqlite. Your
software is expecting a Vehicle_Tracking table that simply does not exist
in the database.
I have a table called [dbo].[MSchange_tracking_history] but there is not a
Vehicle_Tracking.
I have followed your online examples on github for migration, it simply
does not work.
I have googled and googled but cannot find any other people using Xamarin
and this.
Thanks for your time.
Seth
On Thu, May 12, 2022 at 6:19 PM Seth Isaacks ***@***.***>
wrote:
… Something just occurred to me, I have been turning change tracking on for
the entire server database...should I only be doing that per table?
Just trying to figure out why I am getting the errors I am getting.
On Thu, May 12, 2022 at 5:39 PM Seth Isaacks <
***@***.***> wrote:
> IN the migration sample you have, if I run your example on the mobile
> side I get an exception stating:
>
> {System.PlatformNotSupportedException:
> Strings.PlatformNotSupported_DataSqlClient
> at Microsoft.Data.SqlClient.SqlConnectionStringBuilder..ctor
> (System.String connectionString) [0x00006] in
> /_/artifacts/Project/obj/Release.AnyCPU/Microsoft.Data.SqlClient/netcore/Microsoft.Data.SqlClient.notsupported.cs:504
>
> at Dotmim.Sync.SqlServer.SqlSyncProvider..ctor (System.String
> connectionString) [0x00021] in <aa4426aee7564ab09ad93bdbfadb609f>:0
> at AutomobileApp.Services.NFODataService.Test () [0x0008e] in
> C:\SandBox\AutomobileApp\AutomobileApp\AutomobileApp\Services\NFODataService.cs:191
> }
>
> On Thu, May 12, 2022 at 4:43 PM Seth Isaacks <
> ***@***.***> wrote:
>
>> I am not sure what else to do, I have done everything your
>> directions say to do but it will not work.
>> Instead of doing the migration, I added the new column as per your
>> example.
>> I then ran just the web api...by pressing PLAY on the project.
>> Then I checked the azure database to make sure it updated which it did.
>> Then I went back to my mobile app and ran the app and updated the Sqlite
>> Database per your instructions.
>> Then I tried to sync the data and I get the same error again.
>> Without someone help that is more knowledgeable, it does not appear it
>> will work with Xamarin and Sqlite
>>
>> Regards
>> Seth Isaacks
>>
>> On Thu, May 12, 2022 at 3:29 PM Seth Isaacks <
>> ***@***.***> wrote:
>>
>>> Tables after migration
>>>
>>> [image: image.png]
>>>
>>> On Thu, May 12, 2022 at 2:36 PM Seth Isaacks <
>>> ***@***.***> wrote:
>>>
>>>> Here are my tables before the migration...essentially the very first
>>>> sync
>>>>
>>>> [image: image.png]
>>>>
>>>> On Thu, May 12, 2022 at 2:32 PM Seth Isaacks <
>>>> ***@***.***> wrote:
>>>>
>>>>> Hmmm all i did was an EF migration, not sure how that would have been
>>>>> deleted?
>>>>> So its a server issue not the local sqlite database?
>>>>> For the EF migration, I used visual studio package manager console
>>>>> Then I ran the code for the server in the web api, everything seemed
>>>>> to update correctly.
>>>>> I didnt see a tracking table before or after on the server. Where
>>>>> would the tracking table be?
>>>>> I spoke to my boss, he said if you have the time to help with this,
>>>>> we will pay.
>>>>>
>>>>> Seth
>>>>>
>>>>> On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus <
>>>>> ***@***.***> wrote:
>>>>>
>>>>>> Seems you have deleted the tracking table on your server
>>>>>>
>>>>>> —
>>>>>> Reply to this email directly, view it on GitHub
>>>>>> <#734 (reply in thread)>,
>>>>>> or unsubscribe
>>>>>> <https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
>>>>>> .
>>>>>> You are receiving this because you authored the thread.Message ID:
>>>>>> ***@***.***
>>>>>> com>
>>>>>>
>>>>>
|
Beta Was this translation helpful? Give feedback.
-
Tables after migration
[image: image.png]
On Thu, May 12, 2022 at 2:36 PM Seth Isaacks ***@***.***>
wrote:
… Here are my tables before the migration...essentially the very first sync
[image: image.png]
On Thu, May 12, 2022 at 2:32 PM Seth Isaacks <
***@***.***> wrote:
> Hmmm all i did was an EF migration, not sure how that would have been
> deleted?
> So its a server issue not the local sqlite database?
> For the EF migration, I used visual studio package manager console
> Then I ran the code for the server in the web api, everything seemed to
> update correctly.
> I didnt see a tracking table before or after on the server. Where would
> the tracking table be?
> I spoke to my boss, he said if you have the time to help with this, we
> will pay.
>
> Seth
>
> On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus <
> ***@***.***> wrote:
>
>> Seems you have deleted the tracking table on your server
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#734 (reply in thread)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
>> .
>> You are receiving this because you authored the thread.Message ID:
>> ***@***.***>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
IN the migration sample you have, if I run your example on the mobile side
I get an exception stating:
{System.PlatformNotSupportedException:
Strings.PlatformNotSupported_DataSqlClient
at Microsoft.Data.SqlClient.SqlConnectionStringBuilder..ctor
(System.String connectionString) [0x00006] in
/_/artifacts/Project/obj/Release.AnyCPU/Microsoft.Data.SqlClient/netcore/Microsoft.Data.SqlClient.notsupported.cs:504
at Dotmim.Sync.SqlServer.SqlSyncProvider..ctor (System.String
connectionString) [0x00021] in <aa4426aee7564ab09ad93bdbfadb609f>:0
at AutomobileApp.Services.NFODataService.Test () [0x0008e] in
C:\SandBox\AutomobileApp\AutomobileApp\AutomobileApp\Services\NFODataService.cs:191
}
On Thu, May 12, 2022 at 4:43 PM Seth Isaacks ***@***.***>
wrote:
… I am not sure what else to do, I have done everything your directions say
to do but it will not work.
Instead of doing the migration, I added the new column as per your
example.
I then ran just the web api...by pressing PLAY on the project.
Then I checked the azure database to make sure it updated which it did.
Then I went back to my mobile app and ran the app and updated the Sqlite
Database per your instructions.
Then I tried to sync the data and I get the same error again.
Without someone help that is more knowledgeable, it does not appear it
will work with Xamarin and Sqlite
Regards
Seth Isaacks
On Thu, May 12, 2022 at 3:29 PM Seth Isaacks <
***@***.***> wrote:
> Tables after migration
>
> [image: image.png]
>
> On Thu, May 12, 2022 at 2:36 PM Seth Isaacks <
> ***@***.***> wrote:
>
>> Here are my tables before the migration...essentially the very first sync
>>
>> [image: image.png]
>>
>> On Thu, May 12, 2022 at 2:32 PM Seth Isaacks <
>> ***@***.***> wrote:
>>
>>> Hmmm all i did was an EF migration, not sure how that would have been
>>> deleted?
>>> So its a server issue not the local sqlite database?
>>> For the EF migration, I used visual studio package manager console
>>> Then I ran the code for the server in the web api, everything seemed to
>>> update correctly.
>>> I didnt see a tracking table before or after on the server. Where
>>> would the tracking table be?
>>> I spoke to my boss, he said if you have the time to help with this, we
>>> will pay.
>>>
>>> Seth
>>>
>>> On Thu, May 12, 2022 at 2:21 PM Sébastien Pertus <
>>> ***@***.***> wrote:
>>>
>>>> Seems you have deleted the tracking table on your server
>>>>
>>>> —
>>>> Reply to this email directly, view it on GitHub
>>>> <#734 (reply in thread)>,
>>>> or unsubscribe
>>>> <https://github.com/notifications/unsubscribe-auth/AOZ5VYFUUMIKXTXAGTJOEQDVJVY6VANCNFSM5VWHRNCA>
>>>> .
>>>> You are receiving this because you authored the thread.Message ID:
>>>> ***@***.***>
>>>>
>>>
|
Beta Was this translation helpful? Give feedback.
-
I have a Xamarin Mobile Application that houses a local sqlite database
I am currently syncing to a Azure Sql Database for the backend
My question is about migrations, in the examples posted on here, it says to have two sql sync providers....one for the client and one for server.
However my sync I have a WebClientOrchestrator and a SqliteSyncProvider. Should I be using those for migration vs two SqlSyncProviders?
Also, when I add the property to my model on the client side, sqlite automatically generates the field under the hood. So do I still need to have a client provider for migration?
Also can I handle the server on the client side....I need the Azure Sql Server connection string. Being that the phone holds the sqlite db, i would not have access to the client database on the server. So I am not sure if the client should be handled on the client and the server should be handled in the web api? I am not even sure how you would set that up in the web api?
I put all the code on the client side but when I call
var serverProvider = new SqlSyncProvider(serverDbConnectionString);
I get the following error: System.PlatformNotSupportedException: Strings.PlatformNotSupported_DataSqlClient
at Microsoft.Data.SqlClient.SqlConnectionStringBuilder..ctor (System.String connectionString)
I am assuming I need to put the code in the web api, but I am not sure how to call from the client to the web api and tell it to migrate the data? Can someone explain what I need to do?
Beta Was this translation helpful? Give feedback.
All reactions