-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIKIDATASEARCH broken when wrapped in with ARRAYFORMULA #41
Comments
Hey @tomayac ! Thank you for such a quick reply, and thank you for your suggested solution! I did some Googling of "google app scripts arrayformula", and there's documentation on how to write custom formulas that accept arrays as input and output arrays. Looking at your source code for WIKIDATASEARCH, I think you just need to see if Array.isArray(search), and if true, do search.map(invokeFunction). Then I can just do For background, the main reason why I prefer Cheers, and thanks in advance Thomas! |
Thanks for the pointer to the docs. Would you have the time for a PR that adds this to all functions? |
Hey Thomas! Ha, I should've figured that'd be the outcome :) I can certainly try, although I basically have never done JS development [or open source development] haha. But based on the Google App Script docs, it should be very straight-forward. I believe these would be the AIs:
Cheers! |
Yeah, I'm sorry. I have stopped developing this library myself since it turned into a huge time sink, but I'm happy to merge PRs and review code.
Yeah, if there's no test, it's probably just an oversight. Sorry for that.
My flow always was to execute the test file in the code editor. I am not sure if there's a better flow now. I didn't really look into it for too long.
I think https://issuetracker.google.com/issues/36763437?pli=1 is still not fixed. I have just copied and pasted my functions into a new sheet, as unsatisfactory as it was.
Thank you <3
Perfect, just granted you editing rights.
Yes, some of them do. I have no clue what the output would look like in such cases and if it would even be possible. We'll see… |
Not a problem! They should be super easy to write!
Yup, that's fine too.
FYI, inserting a new column caused a data re-load of all existing columns, and not all columns were re-populated with data 😰. The no-results formulas say "Loading..." for a while before showing no results, which implies a timeout issue. |
This is a super annoying bug, tracked as https://issuetracker.google.com/issues/36759198. It might also be a quota issue. In case an error returns, I return the empty string, which isn't great, but better than returning an error string that might be misinterpreted. I'm not sure if there is a better way to make this fail gracefully. |
I have been using these functions for years. Very grateful for them and any improvement in their performance. In the spreadsheet with the examples, I have detected a problem. Cell S2 [=WIKIDATAFACTS("en:Berlin")] returns a #REF! error because there is a function in S9 [=WIKIDATAFACTS("de:Berlin")] 'Array result was not expanded because it would overwrite data in S9' |
Thanks Ernesto for the information! I think that was leftover text when I
was trying to debug why no values were showing up. In fact, I don't see the
ERR cell b/c they're still not working for me. Anyway, I've fixed the
problem I caused and removed the text from that cell. Thank you!
…On Wed, Sep 1, 2021, 00:24 Ernesto Barrera ***@***.***> wrote:
I have been using these functions for years. Very grateful for them and
any improvement in their performance. In the spreadsheet with the examples,
I have detected a problem. Cell S2 [=WIKIDATAFACTS("en:Berlin")] returns a *#REF!
error* because there is a function in S9 [=WIKIDATAFACTS("de:Berlin")]
'Array result was not expanded because it would overwrite data in S9'
[image: QJMFsX4rXl]
<https://user-images.githubusercontent.com/44771579/131520165-e82c2a78-6ec0-496b-b42a-775357ab401d.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI5OV3SU3SYMILSZWQWEUATT7TQ3DANCNFSM5CY7PP5A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hello!
I am a new volunteer for my local library helping with large-scale data processing. In order to hand off an easy-to-use Google Sheet template for them, I have been relying on ARRAYFORMULA for auto-population of rows. However, it seems like WIKIDATASEARCH breaks when wrapped in ARRAYFORMULA.
Problematic formula where nothing loads: =ARRAYFORMULA(WIKIDATASEARCH(A3:A7))
Similar formula that works: =ARRAYFORMULA("Length of string: " & LEN(A3:A7))
Simplified, reproducible Spreadsheet: https://docs.google.com/spreadsheets/d/1gW_NZp6nd2HsZlO9FaVDAbQOT7F0unmSYNNX1kemjYU/edit#gid=0
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: