Records synched, then deleted from mobile. **RESOLVED**
Posted: Tue Nov 14, 2017 6:14 pm
I am experiencing a problem with records being deleted on the Mobile side of my solution.
I have a table for Jobs, a related table for WorkHistory, and a join table linking Parts fitted to a WorkHistory record.
The JT_Parts_WorkHistory is setup in GZH as a related table and 'requires' gzh_WorkHistory.
I create a new Job, (no related JT or WorkHistory records).
If I run 'Zync It-Everything' from the solution, it works as expected.
I then enter a WorkHistory, and use some parts, and run 'Zync It-Everything' from the solution, it works as expected.
I create a new Job, enter a WorkHistory, and use some parts.
If I sync a Job record using the Zync Now button in GZM, followed by syncing WorkHistory from GZM, it works as expected - the JT is synced along with Job and WorkHistory records.
However....
If I run 'Zync It-Everything' from the solution, all records are correctly pushed to the server, but then the JT and WorkHistory entries relating the the Job, are deleted!
I would really appreciate guidance on where I should be looking for the problem - from what I have been able to determine, it seems that $IDSWeKeep is missing the the records that end up being deleted (no surprise there!) I am unsure how $IDSWeKeep is created/determined.
Frostie.
I have a table for Jobs, a related table for WorkHistory, and a join table linking Parts fitted to a WorkHistory record.
The JT_Parts_WorkHistory is setup in GZH as a related table and 'requires' gzh_WorkHistory.
I create a new Job, (no related JT or WorkHistory records).
If I run 'Zync It-Everything' from the solution, it works as expected.
I then enter a WorkHistory, and use some parts, and run 'Zync It-Everything' from the solution, it works as expected.
I create a new Job, enter a WorkHistory, and use some parts.
If I sync a Job record using the Zync Now button in GZM, followed by syncing WorkHistory from GZM, it works as expected - the JT is synced along with Job and WorkHistory records.
However....
If I run 'Zync It-Everything' from the solution, all records are correctly pushed to the server, but then the JT and WorkHistory entries relating the the Job, are deleted!
I would really appreciate guidance on where I should be looking for the problem - from what I have been able to determine, it seems that $IDSWeKeep is missing the the records that end up being deleted (no surprise there!) I am unsure how $IDSWeKeep is created/determined.
Frostie.