question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syncing from client to server resets all client changed data to 0 (SOMETIMES HAPPENS)

See original GitHub issue

So basically what’s happening is: I’m using this dotmim sync as a gateway between MySQL and SQLite (server and client), and when I modify/create new rows on this table (RoteiroDia), it doesn’t get created/doesn’t apply the changes to the current row and ALSO resets the client table to 0. The most important column on this table is Debito, whenever a already existing row gets modified and this gets a new value, it resets both mysql and sqlite to 0.

The Create Table for the table that is happening this:

CREATE TABLE `RoteiroDia` (
 `id` int NOT NULL AUTO_INCREMENT,
 `Data` datetime NOT NULL,
 `idRota` int NOT NULL,
 `idCliente` int NOT NULL,
 `Pos` int NOT NULL,
 `idVendedor` int NOT NULL,
 `idPlaca` int NOT NULL,
 `Debito` float NOT NULL,
 `Acerto` float NOT NULL,
 `Diferenca` float NOT NULL,
 `Desconto` float NOT NULL,
 `Pagamento` float NOT NULL,
 `NovaVendas` float NOT NULL,
 `Entradas` float NOT NULL,
 `FormaPagamento` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
 `Entregue` tinyint(1) NOT NULL,
 `JaVendido` tinyint(1) NOT NULL,
 `Oculto` tinyint(1) NOT NULL,
 `LTS B` int NOT NULL,
 `LTS A` int NOT NULL,
 `AA` int NOT NULL,
 `AAA` int NOT NULL,
 `LING A` int NOT NULL,
 `LING AA` int NOT NULL,
 `BB` int NOT NULL,
 `BBB` int NOT NULL,
 `CC` int NOT NULL,
 `CCC` int NOT NULL,
 `5LTS B` int NOT NULL,
 `5LTS A` int NOT NULL,
 `DDD` int NOT NULL DEFAULT '0',
 `FFF` int NOT NULL DEFAULT '0',
 `A ICE` int NOT NULL DEFAULT '0',
 `EEEE` int NOT NULL DEFAULT '0',
 `RRR` int NOT NULL DEFAULT '0',
 `QQ` int NOT NULL DEFAULT '0',
 `EEE` int NOT NULL DEFAULT '0',
 `COCO` int NOT NULL DEFAULT '0',
 `WWW` int NOT NULL DEFAULT '0',
 `GGGGGG` int NOT NULL DEFAULT '0',
 `FFFF` int NOT NULL DEFAULT '0',
 `ZZZZ` int NOT NULL DEFAULT '0',
 `MEL` int NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1

I changed the name of some of them. And yes, I know that’s a LOT of columns, they’re all needed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
wTechnoocommented, Jan 13, 2022

I’ll make a quick sample here on console and send it to you, one second.

0reactions
Mimetiscommented, Jan 17, 2022

let me know your investigations

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client reset issues - Working with Data
Objects disappearing as part of the initial client reset with recovery means that the object creations had been synchronized to the server, but ......
Read more >
sync database changes between server and multiple clients
I have a master SQL Server database (hosted online) which syncs and serves data to multiple clients (who in turn work on the...
Read more >
Server sends ACK in response to SYN causing a reset ...
1 Answer 1 · The network connection was down for a couple of minutes when the old connection was closed. · The client...
Read more >
Errors and warnings during Sync - AppSheet Help
If there are network errors between the client and the server, the Sync is retried a few times. If the failure persists, the...
Read more >
Troubleshoot sync health and errors in Azure File Sync
Sync sessions might fail for various reasons including the server being restarted or updated, VSS snapshots, etc. Although this error looks like ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found