Mod: Better Logging of Validation Errors

Help, Tips, and Tricks for deploying GoZync: our "sync" engine for FileMaker Go.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Mar 10, 2014 9:24 am
Validation errors can stop a record's changes from committing during a sync, and while GoZync logs this and reverts the record (rolling back the sync), the error logged isn't very verbose.

This change will make the log grab a more specific error and record the primary key of the offending record as well. This is a pretty easy change to make in your file.

Open GoZyncMobile.fmp12 and edit the script "Zengine...". Find the comment "[ END LOOP RELATED RECORDS ]" and add the lines shown in blue below (those "Fix" comments are optional).

The calc you can't read in that screenshot goes like this:

Code: Select all
gz_Timer_Split(
    "Error: "  & $error & "The record couldn't be saved. Primary ID was " & $PrimaryID
 )


That's it!

Image
John Sindelar
SeedCode

Return to GoZync

Who is online

Users browsing this forum: No registered users and 3 guests

cron
(855) SEEDCODE
[email protected]
Follow us: