I have a number of global variables employed in a series of custom calculations attached to various fields. I have placed the field calculations order to the correct sequence. The calculations work as intended, no delays due to incorrect ordering of calculations. However, when I open the document, and only when I open the document, I get a console message referencing some of the global variables as "not defined."
This first occurred when the variables were defined in a document level script that did nothing more than define all of the variables. Since some of the variables were employed in a document function, I thought perhaps I should have defined the variables in the function rather than a separate script, so I moved the variable definitions into the function and deleted the separate script defining the global variables. After doing this, I get the same result: all of the forumlas calculate correctly, but when I open the document, the console message reappears, referencing global variables as not defined even though formulas in which they are used are functioning properly.
Help, please. Thank you.