All records being deleted from some tables on sync.
Posted: Fri Sep 06, 2013 10:21 am
On my hosted file, I flag all my records to sync (replace fields contents of gz_ModTimeStamp to 1), and running the 'Zync It - This Table' script on the mobile TO correctly pulls all data down.
Next time I run the 'Zync It - This Table' script on this TO--even when done immediately without doing any other changes--all records are deleted on the mobile device.
This is a manually upgraded version 4.052 from 4.03. Don't really know if this problem occurred earlier as I didn't have my solution finished enough until today to really start testing the Zync logic thoroughly as it related to my project.
My GTRR script checks out OK. In my GoZyncHosted file, I didn't set up any relationships in the 'Requires' fields, as it really isn't necessary. I did have relations set up initially, but removed them all from GoZyncHosted when I started to read more about them. In my situation, the mobile device needs to contain all of the data. From the user's point of view, the mobile device is the master copy; the hosted file just acts as a backup and a method for me to push out updates, so there should never be a reason that records get deleted from the mobile device.
This is also happening to 1.5 other tables: completely deleting all records from one, and deleting all but 113 records from the other, and I don't really know why.
The only filter I have set up is on a completely unrelated table, and that appears to be working OK. There are no filters in place in the 'Filter Records To Sync' script for the TOs affected with my problem.
9/6/2013 2:00:40 PM - Started
Split Total
---------------------------------------------------------
0:00:00 - 0:00:00 - Connecting to server...
0:00:04 - 0:00:04 - Getting settings from Host...
---------------------------------------------------------
0:00:00 - 0:00:05 - STARTING TREATMENT ROUND TRIP
0:00:00 - 0:00:05 - Starting Push
0:00:00 - 0:00:05 - Starting to Push "gzm_Treatment"
0:00:00 - 0:00:05 - FLM is OFF
0:00:00 - 0:00:05 - Found 0 records to push
0:00:00 - 0:00:05 - Done Pushing "gzm_Treatment"
0:00:00 - 0:00:05 - Push Complete
0:00:00 - 0:00:05 - Starting Pull
0:00:00 - 0:00:05 - Starting to Pull "gzh_Treatment"
0:00:00 - 0:00:05 - Last Time Zync: "9/6/2013 1:52:22 PM"
0:00:00 - 0:00:05 - FLM is OFF
0:00:00 - 0:00:05 - Starting TO Filter - "gzh_Treatment"
0:00:00 - 0:00:05 - Found 1128 Records in the filter
0:00:00 - 0:00:05 - Looking for record to Delete
0:00:00 - 0:00:05 - no records to delete in "gzm_Treatment"
0:00:00 - 0:00:05 - Deletion Complete
0:00:00 - 0:00:05 - Constraining filter records by last time zync
0:00:00 - 0:00:05 - Found 1128 records that have changed since last zync
0:00:00 - 0:00:05 - Starting sync on 1128 records.
0:00:27 - 0:00:32 - Sync complete!
0:00:00 - 0:00:32 - Done Pulling "gzh_Treatment"
0:00:00 - 0:00:32 - Pull Complete
0:00:00 - 0:00:32 - ENDING TREATMENT ROUND TRIP
---------------------------------------------------------
0:00:00 - 0:00:32 - All Done
Next time I run the 'Zync It - This Table' script on this TO--even when done immediately without doing any other changes--all records are deleted on the mobile device.
9/6/2013 2:03:23 PM - Started
Split Total
---------------------------------------------------------
0:00:00 - 0:00:00 - Connecting to server...
0:00:03 - 0:00:03 - Getting settings from Host...
---------------------------------------------------------
0:00:00 - 0:00:04 - STARTING TREATMENT ROUND TRIP
0:00:00 - 0:00:04 - Starting Push
0:00:00 - 0:00:04 - Starting to Push "gzm_Treatment"
0:00:00 - 0:00:04 - FLM is OFF
0:00:00 - 0:00:04 - Found 0 records to push
0:00:00 - 0:00:04 - Done Pushing "gzm_Treatment"
0:00:00 - 0:00:04 - Push Complete
0:00:00 - 0:00:04 - Starting Pull
0:00:00 - 0:00:04 - Starting to Pull "gzh_Treatment"
0:00:00 - 0:00:04 - Last Time Zync: "9/6/2013 2:01:12 PM"
0:00:00 - 0:00:04 - FLM is OFF
0:00:00 - 0:00:04 - Starting TO Filter - "gzh_Treatment"
0:00:00 - 0:00:04 - Found 1128 Records in the filter
0:00:00 - 0:00:04 - Looking for record to Delete
0:00:00 - 0:00:04 - Deleting 1128 records from "gzm_Treatment"
0:00:01 - 0:00:05 - Deletion Complete
0:00:00 - 0:00:05 - Constraining filter records by last time zync
0:00:00 - 0:00:05 - Found 0 records that have changed since last zync
0:00:00 - 0:00:05 - Done Pulling "gzh_Treatment"
0:00:00 - 0:00:05 - Pull Complete
0:00:00 - 0:00:05 - ENDING TREATMENT ROUND TRIP
---------------------------------------------------------
0:00:00 - 0:00:05 - All Done
This is a manually upgraded version 4.052 from 4.03. Don't really know if this problem occurred earlier as I didn't have my solution finished enough until today to really start testing the Zync logic thoroughly as it related to my project.
My GTRR script checks out OK. In my GoZyncHosted file, I didn't set up any relationships in the 'Requires' fields, as it really isn't necessary. I did have relations set up initially, but removed them all from GoZyncHosted when I started to read more about them. In my situation, the mobile device needs to contain all of the data. From the user's point of view, the mobile device is the master copy; the hosted file just acts as a backup and a method for me to push out updates, so there should never be a reason that records get deleted from the mobile device.
This is also happening to 1.5 other tables: completely deleting all records from one, and deleting all but 113 records from the other, and I don't really know why.
The only filter I have set up is on a completely unrelated table, and that appears to be working OK. There are no filters in place in the 'Filter Records To Sync' script for the TOs affected with my problem.