there's 2 record(s) in the globals table and there should be 1
In your opening script, go to the Globals table and count all the records:
Set Variable [$foundCount ; Get ( FoundCount ) ]
If ( $foundCount > 1
Exit Loop if ( Get ( FoundCount ) = 1
Go to record [Last]
You'll also want to check to make sure all the records aren't deleted:
Else If ( $foundCount ) = 0
If you have global values that need to persist and all the records have been deleted, you'll need to unhost the file, reset the globals, then re-host the file. Alternatively, you could set them in the opening script without unhosting the file.
If all the fields in the "globals" table are truly global, You might:
Show All Records
Delete All Records
Retrieving data ...