I have a form which works perfectly. It previews on screen and on printer.

Then I change the name of a global condition to make it more meaningful. Press changes the name whereever it appears in the document.

When I preview now, I get
Compilation error: PTK0044: Unknown Boolean variable "condition2".

The only workaround I've found is to open every object that uses the condition and OK them.
I can send the form and detailed instructions.