I have a script attached to a spreadsheet that is handled by a time trigger. The script is pretty simple; it reads some values from the spreadsheet, then sends them by email.
If a run the script manually when the spreadsheet is open, it works properly, but if the trigger runs the script, it does not. I have done some testing, and when the trigger runs it, the function reads the spreadsheet with some cells empty when they should contain values calculated by complex formulas and queries. The cells that are not calculated by formulas are read fine.
Is there any reason why the spreadsheet does not correctly store the values calculated by the complex formulas when it is not open?
The trigger had been working for about two years, but for some reason, it stopped working some weeks ago.
Any ideas?