r/GoogleAppsScript • u/gorus5 • Oct 05 '25
Resolved Import JSON function stopped working
I have a spreadsheet that uses a custom ImportJSON function to periodically update the data.
It was working fine for a very long time until today. I don't know any reason that could have caused this.
I didn't make any changes recently, the usage/traffic were the same as always.
The weird thing is that the function itself still works fine.
If I run it from the script console manually it finishes successfully and I can see the data fetched and processed.
But when this same function is called from the spreadsheet it just loads indefinitely without actually failing or providing any informative error message.
I tried disconnecting GAS Script from the spreadsheet and connecting it back again.
I don't see any actual error from GAS, like hitting some limits or getting error response (also, it wouldn't work in GAS Console manually if that was the case).
I don't see any failed runs in the execution history also.
It all looks like a strange bug.
Any ideas how to debug or fix it?
1
u/gorus5 Oct 06 '25 edited Oct 06 '25
Solved by creating a copy of the spreadsheet.
This was some kind of annoying bug.
1
u/WicketTheQuerent Oct 05 '25
Is there any error in the execution logs? If so, please add the textual error message.
1
u/AdministrativeGift15 Oct 05 '25
You say there were no error messages, not even failed runs. do you have successfully completed runs? If you don't have any execution logs, the you need to check your trigger mechanism to make sure that the function is called.
1
u/DapperShoulder3019 Oct 05 '25
You can insert log messages to see what is happening when the function is executed. That's how you can troubleshoot the script.
1
u/WicketTheQuerent Oct 05 '25
Here is the official answer to this problem, taken from https://issuetracker.google.com/issues/36759198#comment139
Status: Won't Fix (Intended Behavior)