ImportJSON icon indicating copy to clipboard operation
ImportJSON copied to clipboard

Error - "Unknown function: ImportJSON"

Open andersjohansenn opened this issue 4 years ago • 2 comments

Hello.

I use ImportJSON to update my Facebook Catalog and Google Ads data feed, but from time to time (1-2 times a week) I get an "unknown function" error.

It is not a huge problem, as it gets solved by clearing the sheet and undoing the clearing.

But is there any way to stop this from happening?

Screenshot 2020-01-09 at 07 56 18

Please see attached SS for details.

andersjohansenn avatar Jan 09 '20 07:01 andersjohansenn

Hi Anders, from what I can find it's a problem of Google Sheets, not of the custom function. On Stackoverflow I found: -Clearing cookies seemed to do the trick. -Hard refresh + clearing cache fixed it. I have no clue how either of those solutions could be automated. Next time you bump into it, please file a bug with Google -> in sheets: Help->Report a problem. Cheers, Koen

krijnsent avatar Jan 26 '20 12:01 krijnsent

Hello @krijnsent, thank you for the tips.

Unfortunately I have already tried them earlier without any success. To me it seems like the issue is related to Sheets not being able to load the script properly, maybe due to the size of it.

The reason I suggest size being the issue is that I have removed all comments from the script, and found the script to be much more stable.

This can obviously be a coincidence, but if anyone else has similar issues I would suggest trying the same.

andersjohansenn avatar Jan 28 '20 06:01 andersjohansenn