We have a script which updates a sync after comparing the current date and the business date. It was working fine till last week, but it stopped working/updating the sync now. It is included as part of a workflow. Tried it outside of the work flow and it still wouldn't update.
Would like to know how to trouble shoot the issue, as I don't have any errors nor I am aware of any debug mode for AE scripting like in Linux (set -x). Attaching the script which updates the sync and the sync object itself
The &SYNCH# value is always N even when the difference is 0
:SET &BIZDAY# = GET_VAR ('VARA.BATCH_BUSINESS_DATE','BATCH_BUSINESS_DATE',1)
:SET &CURDAY# = &$PHYS_DATE_YYYY_MM_DD_d#
:SET &DIFF# = DIFF_DATE("YYYY-MM-DD:&BIZDAY#", "YYYY-MM-DD:&CURDAY#")
:PRINT Date Difference is &DIFF#
:IF &DIFF# = 0
: P "Bizday matches current date. OK!"
: SET &SYNCH# = SET_SYNC ("SYNC.CCB_PROCEED_W_DAYTIME_PROCESS", "FREE_EXCL")
: P &SYNCH#
: IF &SYNCH# = "Y"
: PRINT "Sync condition EXCLUSIVE was set!"
: PRINT "Sync condition EXCLUSIVE was not set!"