Google Sheets add-on with custom functions not running - google-sheets

I have written an add-on for Google Sheets that contains some custom functions. This has been working fine for months, but suddenly today it started have problems for some spreadsheets. The problem we're seeing is that the custom functions are not running at all, they just show Loading... forever.
I've done a lot of we searching, but none of the suggestions have helped in this case. I've also tried a lot of investigation and the most notable point I've found is that it seems these functions are not running at all. I'm determining that by looking at the Apps Script Execution Logs. For the cases when the functions works I see these custom functions in the log as Completed, but for the cases when it does not there is no log entry at all (no error or anything).
I should clarify that the problem seems to be spreadsheet related. That is, the functions work fine in some spreadsheet, but don't work in others. Also, my add on exposes multiple custom functions, and when this problem is happening it happens for all of the functions.
Furthermore, I've seen that this problem sometimes happens in a freshly created empty spreadsheet, but other times it is fine.
As I mentioned above, everything has been working fine for months, so I don't think it is a bug with my functions.
Is anyone else seeing problems like this? Does anyone have suggestions on how to investigate further? Any other ideas?

You may want to star issue 222342097 in the issue tracker. Click the star icon ☆ in the top left-hand corner to vote for fixing the issue and get notified of status changes. Please do not post a "me too" or "+1" reply, but just click the star icon. Google prioritizes issues with the most stars.

Related

Google Sheet IMPORTRANGE Error "Import Range internal error" When Range is just a column

In Google Sheet IMPORTRANGE function for single column in rage
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:B")
I get
"Import Range internal error."
But for
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C"), it works.
Is it a bug? up to now, it was the third time that I had to change them many times? Is there any consistent solution for it?
I use this solution as temporary
=Query(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C") , "Select Col1")
Finally:
I didn't get error for 5 day right now
And in this link https://issuetracker.google.com/issues/204097721 has now been marked as fixed in the issue tracker.
These errors are usually temporary and go away in a few hours. To expedite that, modify your import formula slightly by replacing "Sheet1!B1:B" with "Sheet1!B:b" — the small letter case change is enough to let the call duck Google's cache and get fresh results, which should let you work around the issue.
To automate that to an extent, use this pattern:
=iferror( importrange("...", "Sheet1!B1:B"), importrange("...", "Sheet1!B:b") )
Also see https://support.google.com/docs/thread/131278661.
I try this solution, it works
Before IMPORTRANGE("id", "a:b")
Now IMPORTRANGE("id", "A:b")
There is a dirty solution that could be used temporarily. It does not shield you completely from that issue, it might still occur.
This:
IMPORTRANGE("id", "A:A")
Could be replaced with that (notice lower different case in the same range being imported 2nd time):
IFERROR(IMPORTRANGE("id", "A:A"), IMPORTRANGE("id", "A:a"))
I've seen this solution posted here by Vitaly, he got it from here.
This could not be the solution to the problem.
I have built a whole data integration platform up on sheets and rely heavily on importrange functionality to shield off access to datasources from users.
Now lately the #REF started to haunt my tables all over the place and it renders everything more or less unusable.
Definately this is a bug or lack of resources.
I think the best solution here is to use
=Query(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C") , "Select Col1")
I don't believe ducking Google's cache is a fix or even a workaround.
We've maintained a sheet with the importrange function across multiple tabs for years, and only within the last week has there been a problem.
We first noticed it on Friday then it came back again today. In both instances, I don't think I did anything to fix the issue, especially today. I moved the formula around on the sheet, which had the effect of refreshing the importrange function, but it still resulted in the "Import Range internal error." The importrange function went down for a time (I don't know how long today, but I think it was at least 15 minutes) and then resolved itself on all tabs without a modification.
I think this definitely a bug or Google messing with stuff on the back-end. Maybe we need to find a way to do everything without using importrange?
I Tried using following and solve my problem since last 2 days...
IFERROR(IMPORTRANGE("id", "A1:B20"),iferror(IMPORTRANGE("id", "A1:b20"),iferror(IMPORTRANGE("id", "a1:B20"),IMPORTRANGE("id", "a1:b20"))))
Means, Recall same fuctions 4x times using CAPS/Non CAPS in Range names.
I just came across this same situation, but found a solution that worked for us.
We had 1 sheet that was importing ranges from 2 separate sheets (call A & B).
A was importing correctly.
B was showing the Internal Import Error.
I also noticed that on Sheet B, I was unable to view Version Histories.
However, Sheet A I was able to view Version Histories.
--Makes sense that this is where the issue would be, because ImportRange pulls from the most recent Version saved.
THE FIX -- I cleared my Chrome's Cache from the last 7 days (experiencing the issue for 3 days)
Then had to re-sign into my account and the ranges were importing successfully!
Hopefully this helps someone else.
Side note -- A coworker traveled to Canada from the US 3 days ago at the same time the Internal Error showed up. Possibly could be from international server errors?? That is a very weird theory, but who knows...

Quickchart Wordcloud API is returning spread and small text

I am trying to get the Quickchart Wordcloud API to work, however, I get very spread apart and small text.
This used to work fine (I tested it a few weeks ago), but something seems to have changed to cause the issue you can test below.
Example
Apart from the text, you can see the querystring below:
rotation=0&format=png&height=176px&width=506px&font-family=sans-serif&removeStopwords=true&text=
Any insight into how I can get this to work would be appreciated.
I maintain this API and want to apologize for the trouble you encountered over the last few weeks. This should be fixed now with no action required on your end.
Some background on the trouble: the underlying library, d3-cloud, is a bit finicky and under certain conditions it will not show top words if they are too large. We attempt to resolve this by sizing the words explicitly, but this can be imprecise because we do not have full rendering information. In the long term, I'd like to move to a more robust rendering library but for now we're tuning the workaround.
Related issues in the d3-cloud repo:
https://github.com/jasondavies/d3-cloud/issues/166
https://github.com/jasondavies/d3-cloud/issues/159
https://github.com/jasondavies/d3-cloud/issues/36

implementing Facebook login onto Xcode

I'm really new to programming started the end of December.
I'm have a problem trying to implementing Facebook login onto Xcode. I've tried using the Facebook method but i came across a problem because was written 'object C', i came across a youtube turoiral but turns out its old, i came across another tutorial that lend me down a path using 'Cocoapods'.ive looked through a number of questions on here and took what i understand and still to no avail, so far the only thing I've managed to correct every time is download the relevant SDKs and put the right info onto the info.plist.
can someone please point me in the right direction as to how write the code from the App delegates point because thats where i seem to just crash n burn.
your help would be much appreciated.
free strength and conditioning advice is the only thing i have to offer in return at this moment in time because I'm new to using programming.

Data cannot be presented on tableview(iOS Dev), what's wrong?

I'm an iOS developer from scratch. Currently, I'm learning something about a tableview and getting stuck here. Granted, it's a quite rudimentary issue. But I cannot work it out!
The ideal situation should be a table with the first line of a label and a checkmark. I swear I have followed the tutorial with every step but the table in the simulator was somehow blank. There must be some subtle mistakes. I'm really confused. Now, my operation is fully captured and is enabled in the link. If someone could analyze my operation and point out my mistake I would be gratitude.
hit this link to see my operation from YouTube
hit this link to see my operation from my Google Photos
I noticed in your video you named your custom class as ChecklistViewController, but the Module is none. I don't know why it becomes none because in my project it is Current - Checklists aka your current target. Would you try to click the blue arrow on the left and then, choose the right module. This question may be also helpful.

emailing contents of text fields advice needed xcode

when trying to email contents from text fields im having exceptions thrown. I think im wiring them up wrong.
Im creating outlets for my text fields in .h, setting up my email button as an action.
In .m im implementing usual code for sending email. Ui message frame kit has been imported.
Now I need some help as thats not working for me.
To summarise: How do i email whats in my text boxes?
Im using xcode 4.3 with storyboards
Thanks
There are no tricks to emailing the contents of text boxes. You need help with some exception, you need to provide us the precise error and show us the relevant code. If you want to try to solve it on your own, you should debug the code, single stepping through the method that attempts to email the contents of your text boxes (see Xcode 4 User Guide: Debugging and Analyzing Your Code; see the section about adding breakpoints and then the section about controlling execution).
Exceptions are generally the result of memory management problems (e.g. your code is trying to use some object that has already been released) so you might want to enable zombies if you haven't already. I also think that people do not sufficiently appreciate the value of Xcode's Analyze command on the Product menu (described in the aforementioned Analyzing Your Code section). This Analyze command will identify not only dangling pointers, but also some memory leaks. It's not perfect, but it's a good start.
People really shouldn't be posting questions here if they haven't first resolved the problems raised by Analyze (unless, of course, you need help fixing issues that Analyze raises). Personally, when I went through this Analyze exercise on my first big project, it was painful to clean up all the issues that it identified, but, more importantly, I suddenly "got it". I've been an IT professional for decades, have programmed in dozens (literally) of programming languages, but only after going through this painful exercise did I finally get the subtleties of Objective C memory management. Suddenly, rereading Apple's Advanced Memory Management Programming Guide, it all made perfect sense.
So, if you're still stymied, and the Analyze command did not identify any issues, and you ran the code through the debugger you were not able to identify why the exception was generated, then just provide us a detailed error message and show us the relevant code and I'm sure we'd be happy to help.

Resources