Sorzio
PricingDocs
Sign inStart free
Start free

Enrich, verify, qualify, and write outbound inside Claude, ChatGPT, Cursor, and Google Sheets. Pay only for rows that succeed.

Start free · $20 credit

Product

  • Enrich
  • Verify
  • AI & Models
  • Flows
  • Prospect Pages
  • Tools
  • Pricing
  • Compare
  • Install

Connect

  • Documentation
  • MCP Developer Hub
  • Platform API
  • Claude
  • ChatGPT
  • Cursor

Resources

  • Use cases
  • Case studies
  • Guides & Blog
  • Glossary
  • Help Center
  • Contact Support

Company

  • About
  • Security
  • Sorzio vs Clay
  • Sorzio vs Apollo

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie list
  • Subprocessors

Empra Consultancy LTD
hello@sorzio.com

Sorzio (formerly ReplyLabs) is built and operated by Empra Consultancy LTD (https://www.sorzio.com) and is an independent product and company not affiliated with Reply.io (Reply, Inc.).

Sorzio|PrivacyTermsCookiesSubprocessors

© 2026 Empra Consultancy LTD. All rights reserved.

Home/Guides/IMPORTXML Exceeded Maximum Size: How to Fix This Error
GUIDE · URL ENRICHMENT

IMPORTXML Exceeded Maximum Size: How to Fix This Error

Learn why Google Sheets IMPORTXML fails with 'Resource at url contents exceeded maximum size' and discover reliable methods to pull data from large pages.

UPDATED NOV 11, 2026 · 7 MIN READ
GUIDEURL enrichment
Hugo Dupont
Founder at Sorzio

Builds outbound data pipelines across Google Sheets, Claude MCP, and ChatGPT.

CONTENTS
  1. 1. What causes the "importxml exceeded maximum size" error in Google Sheets?
  2. 2. How do I check if a page is too large for IMPORTXML?
  3. 3. Can I work around this error without changing my data source?
  4. 4. Why does IMPORTXML have size limits in the first place?
  5. 5. What is a better approach for enriching data from large web pages?
  6. 6. How do I switch from IMPORTXML to enrichment for my workflow?
  7. 7. What if I only need IMPORTXML for a few URLs?
  8. 8. How does enrichment pricing compare to free IMPORTXML?
  9. 9. Common questions
  10. 10. FAQ
SHARE
CONTENTS
  1. 1. What causes the "importxml exceeded maximum size" error in Google Sheets?
  2. 2. How do I check if a page is too large for IMPORTXML?
  3. 3. Can I work around this error without changing my data source?
  4. 4. Why does IMPORTXML have size limits in the first place?
  5. 5. What is a better approach for enriching data from large web pages?
  6. 6. How do I switch from IMPORTXML to enrichment for my workflow?
  7. 7. What if I only need IMPORTXML for a few URLs?
  8. 8. How does enrichment pricing compare to free IMPORTXML?
  9. 9. Common questions
  10. 10. FAQ
Quick summary & key takeaways

Learn why Google Sheets IMPORTXML fails with 'Resource at url contents exceeded maximum size' and discover reliable methods to pull data from large pages.

  • 01What causes the "importxml exceeded maximum size" error in Google Sheets?
  • 02How do I check if a page is too large for IMPORTXML?
  • 03Can I work around this error without changing my data source?
  • 04Why does IMPORTXML have size limits in the first place?

Google Sheets IMPORTXML fails with the "Resource at url contents exceeded maximum size" error when the target web page exceeds the built-in size limit for imported content. This hard cap exists because Google Sheets restricts how much data a single cell formula can fetch and process. To pull data from large web pages reliably, you need to either target smaller, paginated endpoints or use an external enrichment tool that bypasses these constraints entirely.

What causes the "importxml exceeded maximum size" error in Google Sheets?

The IMPORTXML function has an undocumented but strict ceiling on how large a fetched resource can be. When a web page contains extensive HTML, embedded scripts, inline images encoded as base64, or sprawling DOM structures, the total payload can blow past that limit before Google Sheets even attempts to parse your XPath query.

Several factors push pages over the threshold:

  • Heavy JavaScript frameworks that inject thousands of lines of code into the HTML source
  • Embedded data tables with hundreds or thousands of rows rendered inline
  • Single-page applications that load entire datasets on initial render
  • Marketing sites with multiple tracking pixels, analytics scripts, and chat widgets
  • E-commerce product pages with extensive reviews, specifications, and related items

The frustrating part is that you might only want a single data point from that page, yet the entire page must download before any parsing happens. IMPORTXML does not offer partial fetches or streaming. It is all or nothing, and when the page is too large, you get nothing.

This differs from the "could not fetch URL" error, which typically signals network issues or authentication problems. The "exceeded maximum size" error specifically means the page loaded but was rejected for being too heavy.

How do I check if a page is too large for IMPORTXML?

Before troubleshooting your formula, verify that the page size is the actual problem. Open the URL in your browser, then:

  • Right-click and select "View Page Source" (not Inspect Element, which shows the rendered DOM)
  • Select all the source code and paste it into a plain text editor
  • Check the file size or character count

If the raw HTML source exceeds a few megabytes, IMPORTXML will likely reject it. Pages with dynamic content loaded via JavaScript may show a small initial source but expand dramatically after scripts execute. However, IMPORTXML does not run JavaScript, so it only sees that initial payload.

You can also use browser developer tools to check the Network tab. Reload the page and look at the size of the initial document request. If it shows several megabytes, you have identified your problem.

Can I work around this error without changing my data source?

Some workarounds exist, though none are ideal:

Target a different URL on the same site. If you are scraping a company directory and each listing page is massive, check whether the site offers a lighter mobile version, print-friendly page, or API endpoint. Adding parameters like ?format=simple or accessing m.example.com sometimes yields smaller pages.

Use Google Apps Script with UrlFetchApp. Apps Script allows you to fetch content programmatically, then parse it with XmlService or regex. This approach gives you more control but introduces its own constraints, including the six-minute execution limit that caps how many large pages you can process per run.

Break the job into smaller pieces. If you are pulling data from paginated content, fetch individual pages rather than a combined view. Instead of grabbing all search results at once, query page 1, page 2, and so on separately.

These workarounds help in some scenarios but fail when the target site simply serves large pages with no alternatives. That is where the fundamental approach needs to change.

Why does IMPORTXML have size limits in the first place?

Google Sheets runs in a shared cloud environment with strict resource quotas. Allowing any formula to fetch and process arbitrarily large web content would create performance and abuse risks. The limits that stop big jobs in Google Sheets exist to keep the platform stable for all users.

IMPORTXML competes for resources with every other function in your spreadsheet. When you multiply that by millions of active sheets, Google has strong incentives to cap how much data any single cell can request.

These limits are not just about size. You also face rate limiting on how frequently IMPORTXML can fetch from external URLs, which compounds problems when you need to process hundreds of rows.

What is a better approach for enriching data from large web pages?

The IMPORTXML vs. dedicated enrichment tools comparison reveals a fundamental mismatch. IMPORTXML was designed for occasional, lightweight data pulls, not systematic enrichment of prospect lists. When you need to extract company information, employee counts, technology stacks, or other business data from websites at scale, purpose-built enrichment is more reliable.

URL enrichment services fetch web pages on dedicated infrastructure without Google Sheets' constraints. They parse content server-side and return only the structured data you need, eliminating the size problem entirely.

Sorzio offers URL enrichment directly within Google Sheets through its sidebar add-on. Instead of formula-based fetching, enrichment requests run asynchronously through external servers. Large pages that would choke IMPORTXML process normally because the heavy lifting happens outside your spreadsheet.

This approach also solves related IMPORTXML failures like "imported content is empty" (often caused by JavaScript-rendered content) and blocked by robots.txt issues. Enrichment services can handle both scenarios that break native formulas.

How do I switch from IMPORTXML to enrichment for my workflow?

Moving from formula-based scraping to enrichment requires rethinking your data flow:

  • Identify what data you actually need. IMPORTXML forces you to write XPath queries that often pull raw HTML. With enrichment, you specify the data type (company name, industry, employee range) and receive clean, structured values.
  • Prepare your URL list. Gather the web pages you want to process in a single column. This replaces scattered IMPORTXML formulas with a batch operation.
  • Run enrichment on the batch. Using Sorzio's Google Sheets sidebar, you select your URL column and choose which data points to extract. The tool processes your list and writes results to adjacent columns.
  • Handle the output. Unlike IMPORTXML, which recalculates and can break if a page changes, enriched data is static. You have a reliable snapshot that will not throw errors when you reopen the sheet.

For teams already using AI in Google Sheets, enrichment fits naturally alongside AI-powered analysis. You can chain URL enrichment with bulk AI prompts to extract data and then summarize or categorize it.

What if I only need IMPORTXML for a few URLs?

For occasional, one-off data pulls where the target page is small enough, IMPORTXML remains useful. The function works well for:

  • XML feeds (RSS, sitemaps) that are inherently lightweight
  • Simple HTML pages with minimal JavaScript
  • Structured data endpoints that return clean markup
  • Internal tools or dashboards with predictable page sizes

When IMPORTXML works, it offers zero-cost, real-time data without setup. The problem emerges at scale or with modern, JavaScript-heavy websites that generate massive HTML payloads.

If you regularly hit size limits, the pattern suggests your data needs have outgrown what built-in formulas can handle. That is the signal to evaluate enrichment as an alternative to manual IMPORTXML workflows.

How does enrichment pricing compare to free IMPORTXML?

IMPORTXML costs nothing, which makes any paid alternative feel like an added expense. But consider the hidden costs:

  • Time spent debugging XPath queries that break when sites update their markup
  • Lost data when pages exceed size limits or block automated requests
  • Manual workarounds for JavaScript-rendered content that IMPORTXML cannot see
  • Inconsistent results that require constant monitoring and correction

Sorzio's enrichment pricing starts at $0.001 per operation for basic lookups. If you are processing 1,000 URLs, that totals $1.00. Compare that to hours spent wrestling with IMPORTXML errors and the math shifts.

For teams managing larger lists, the cost per thousand enriched leads framework helps calculate whether enrichment delivers value relative to time saved.

Common questions

Does clearing cache fix the IMPORTXML maximum size error?

No. The error reflects the page's actual size, not cached data in your browser or Google Sheets. The page itself must become smaller, or you need a different fetching method.

Can Google Apps Script handle larger pages than IMPORTXML?

Yes, to a degree. UrlFetchApp in Apps Script has a higher size tolerance, but it introduces execution time limits. Very large pages may still timeout or exhaust quotas during processing.

Will Google increase IMPORTXML size limits in the future?

Google has not announced plans to change these limits. The constraints have remained consistent for years, suggesting they reflect intentional architectural decisions rather than temporary restrictions.

Is the size limit based on the HTML or the extracted data?

The limit applies to the entire fetched resource, not just the portion your XPath query extracts. A small query against a large page will still fail.

PREVIEW BEFORE YOU RUN

Try it on ten rows first

See the enriched columns, the verdicts, and the exact cost before you run the whole list.

Start free · $20 credit

FAQ

No. The error reflects the page's actual size, not cached data in your browser or Google Sheets. The page itself must become smaller, or you need a different fetching method.

Yes, to a degree. UrlFetchApp in Apps Script has a higher size tolerance, but it introduces execution time limits. Very large pages may still timeout or exhaust quotas during processing.

Google has not announced plans to change these limits. The constraints have remained consistent for years, suggesting they reflect intentional architectural decisions rather than temporary restrictions.

The limit applies to the entire fetched resource, not just the portion your XPath query extracts. A small query against a large page will still fail.

Run this on your list

$20 free credit. Works in Google Sheets, Claude, and ChatGPT. Pay only for rows that succeed.

Start free
Hugo Dupont
Founder at Sorzio
SHARE
Keep reading · URL enrichment
Read the full guide: Enrich URLs in Google Sheets
  • Enrich website data into a spreadsheet
  • Enrich LinkedIn company pages safely
Key terms
URL enrichmentRate limiting
Run this in Sorzio · Sheets, Claude, ChatGPT & Cursor
Sorzio Enrich Multi-Step Flows Sorzio vs Clay Clay Cost Calculator

More guides.

All guides →
GUIDE
GUIDE · 4 MIN READ

B2B enrichment API: live 6-page company websites, LinkedIn, and verification over /v1 REST

Replace brittle scrapers and defunct LinkedIn APIs with Sorzio's /v1 REST enrichment API: $0.006 6-page websites, LinkedIn, $0.01 verification, and verbatim evidence.

Read guide →
GUIDE
GUIDE · 4 MIN READ

Clearbit alternative: live 6-page domain enrichment without HubSpot Breeze lock-in

Why teams replacing discontinued standalone Clearbit choose Sorzio for live $0.006 6-page domain enrichment, Decision Mode scoring, and /v1 API or Sheets execution.

Read guide →
GUIDE
GUIDE · 5 MIN READ

Scrape, Summarise, Score: Multi-Step Enrichment in Sheets

Running enrichment one step at a time wastes money on rows that already failed. How to chain steps in a spreadsheet so each one only sees rows that qualify.

Read guide →

READY TO RUN THIS WORKFLOW?

You bring the list. Sorzio does the rest.

Start with $20 of free credit across Google Sheets, Claude, and ChatGPT. Pay only for rows that succeed.

Start free · $20 creditSee pricing