Page 1 of 1

Mod: Better Logging of Validation Errors

PostPosted: Mon Mar 10, 2014 9:24 am
by John Sindelar
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
    "Error: "  & $error & "The record couldn't be saved. Primary ID was " & $PrimaryID

That's it!