-
Notifications
You must be signed in to change notification settings - Fork 82
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
Problem during Send: can't write new records on the remote db #7
Comments
What version of sync service do you use? |
If it is possible, send me link to your sync service. |
Hi @tdziemidowicz and thanks for your reply. |
First, try newer version. Current version is 3.2.3. (you can download it from our page).
There were known issue in 3.1.x version with parameters generation when master db was MSSQL. Let me know if problem still persists with updated version.
|
I have updated to version 3.2.3. For the Ionic client, I get a 500 error during the Send and I'm still investigating why, because both This is what I get from
There's no trace of RowId. But then, in the HTML5 client, it looks for
I'm probably missing something, but it really looks like the query to create the local tables, that I receive from |
Looking at your script, it's definitely something wrong with table configuration. Do those steps:
|
hi @igghera did you get assistance, facing the same challenge. Been stuck for 5 days now |
@XplaSir we ended up using Xamarin because we found a library that was working fine with it. This repo is definitely a good project, but we couldn’t get it to work |
Hi, I'm using the Ionic client provided in this repo.
As a database I'm usng SQL SERVER 2016.
The connection to the server works fine, and I'm able to add a table, initialise the client's database and hit the
Sync
endpoint to get data from the remote db.Then I create some record on the client, and when I hit the
Send
endpoint, it looks like the data is not being sent.I mean, I do send the XML payload and everything, and get a 204 response, it just doesn't recognise my local changes and thus the remote db doesn't receive the new data. I mean, in the XML payload, there's no trace of my local changes.
In the attempt to fix the issue, I added an auto-increment key to my table in the remote db.
At this point, when I hit the
Sync
endpoint, I getError while syncing databases!
.I debugged the issue, and it's actually a
column index out of range
from SqLite.I when to the bottom of it, this is what I found: basically, if my table has 4 columns, the
Sync
endpoint sends me 4 + 1 columns, where the extra one is RowId.I'm not sure, at this point, whether it's a client or server issue. I'm just stuck and I don't know what to do.
Maybe someone has a clue?
Thanks in advance
[EDIT]
I've tried with the basic HTML5 and the C# client examples.
In both cases I can create new records locally but they are not sent to the server during the
Send
.If I manually change the value of the
MergeUpdate
field to 1, it sends the new rows but they are not saved in the remote DB. I'm using the code provided by the examples, but 3 examples that behave the same makes me think I'm doing something wrong...The text was updated successfully, but these errors were encountered: