Giter VIP home page Giter VIP logo

Comments (9)

bplmp avatar bplmp commented on May 30, 2024

Google sheets has a limit of 5 million cells. If you are limiting rows on Metabase, but still getting this error, it might be that the script is interpreting the results of the query differently from what you see on Metabase.

Maybe you have special characters or linebreaks in your data that are breaking the csv, outputted by Metabase?

I would suggest:

  • go to your metabase query, on metabase
  • download the file as a csv
  • try importing it manually in Google Sheets or another program, to check if the csv formatting looks OK

from metabase-google-sheets-add-on.

natea avatar natea commented on May 30, 2024

I tried to do the import again and today the report imported with no problem, doing about 6200 rows (not sure about the number of cells).

But thanks for the tip on how to troubleshoot if I get that error again.

Do you know of any way to automate the fetching of data on a schedule (perhaps daily, weekly, monthly)? I'd like to try to avoid having to click the "Import question" button in the Metabase menu.

from metabase-google-sheets-add-on.

bplmp avatar bplmp commented on May 30, 2024

from metabase-google-sheets-add-on.

natea avatar natea commented on May 30, 2024

I'm getting this error again, and I haven't been able to troubleshoot why it's giving the error. "Question 3 failed to import. Exception: This action would increase the number of cells in the workbook above the limit of 5000000 cells."

I'll try your suggestion of downloading the CSV to see if there are any special characters that are breaking the CSV.

from metabase-google-sheets-add-on.

natea avatar natea commented on May 30, 2024

The only thing I noticed that could potentially cause problems for the import script were some rows in the CSV that have Japanese characters.
Screen Shot 2021-05-02 at 10 18 27 AM

Do you know if your script can handle these character sets?

from metabase-google-sheets-add-on.

natea avatar natea commented on May 30, 2024

That seemed to solve the problem When I created a filter on the Metabase report to exclude those rows that have content with Japanese characters, then the import worked correctly. Any chance you can make the script support non-ascii characters?

from metabase-google-sheets-add-on.

bplmp avatar bplmp commented on May 30, 2024

@natea I don't think this is something related to the script... Every part involved seems to support UTF-8 encoding (Metabase, Google Apps Script, etc.).

Again, have you checked if you have line breaks in your data?

from metabase-google-sheets-add-on.

bplmp avatar bplmp commented on May 30, 2024

jptxt

This confirms it works

from metabase-google-sheets-add-on.

natea avatar natea commented on May 30, 2024

from metabase-google-sheets-add-on.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.