New Tool Radar

AI for Data & Spreadsheets

How to Check the Limits of an AI-Written IMPORTDATA Import of a JSON File

Check the limits of an AI-written IMPORTDATA import of a JSON file, including size and refresh behaviour.

Schematic with three steps: Check the file type at the address; Test the import on a small sample; Check the size and refresh behaviour.

IMPORTDATA in Google Sheets fetches a CSV or TSV file from a web address and puts its rows into the sheet, and an AI assistant may suggest it for a JSON file too. IMPORTDATA does not parse JSON: it imports the raw text, often as a single column of broken pieces, and it has size and refresh limits that a large file will hit. Check the file type and size before relying on the import.

What you need

  • The AI-written IMPORTDATA formula and the file address it fetches
  • The file type and size of the source file
  • The rows the reader expects to see after import

Step 1: Check the file type at the address

Open the address in a browser and check whether the file is a CSV or TSV. A JSON file, which starts with { or [, is not a CSV and IMPORTDATA will not parse it into columns.

Step 2: Test the import on a small sample

Point the formula at a small sample of the file first and read what lands in the sheet. If the JSON arrives as one column of text, the import needs a different method, such as a script or a conversion to CSV.

Step 3: Check the size and refresh behaviour

For a CSV that does import, check the row count against the source and note that IMPORTDATA refreshes on its own schedule, not on demand. If the file grows past the import limits, split it or load it another way.

Worked example: synthetic JSON price list

The table below is a synthetic example. It shows the expected result of checking an AI-written IMPORTDATA formula; no formula was run.

Check Value Result
File at the address prices.json JSON, not CSV
IMPORTDATA result One column of text Raw JSON, unparsed
Rows expected 50 Fifty price records
Working method Convert to CSV first Then IMPORTDATA parses it

Expected result (UNTESTED). IMPORTDATA on the JSON file returns one column of raw text instead of fifty price records, because it does not parse JSON; converting the file to CSV first lets the same formula return the fifty rows. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • IMPORTDATA only fetches CSV and TSV files; JSON, XML and HTML arrive as unparsed text.
  • IMPORTDATA refreshes on Google’s schedule, so a changed source file does not update the sheet at once.
  • A file behind a login cannot be fetched, because IMPORTDATA sends no credentials.
  • Very large files can hit import limits; split the file or use a script that pages through it.

Sources

See all