When Google Sheets displays Resource at url not found, Google Sheets import functions (IMPORTXML, IMPORTHTML, IMPORTDATA, IMPORTFEED) execute from Google proxy servers. "Resource at url not found" happens when the URL returns HTTP 404/403/5xx, blocks automated crawler user-agents, requires login cookies, or lacks https://.
Step-by-Step Resolution
- Open the target URL in an Incognito browser window: if it redirects to a login screen or returns 404, Sheets servers cannot fetch it.
- Ensure the URL parameter includes the full scheme (https://...) wrapped cleanly in double quotes, with properly encoded query parameters.
- If the website blocks default crawler user-agents (Cloudflare bot challenge or 403), switch to a public JSON/CSV endpoint via Google Apps Script UrlFetchApp instead of IMPORTXML.
- Remember IMPORTXML only parses static server-rendered HTML/XML; pages rendered exclusively in client-side React/JavaScript often return empty elements or errors.
Common Edge Cases
Large CSV feeds over ~5MB–10MB or slow endpoints taking more than 30 seconds cause Google import workers to abort and display "Resource at url not found" or "Could not fetch url".
When This Doesn't Work
When scraping third-party sites gated by Cloudflare or login sessions, IMPORTXML cannot solve anti-bot gates. Connect an official REST API using Apps Script UrlFetchApp with API keys stored in Script Properties.
Prevention Tips
Consolidate external web pulls into cached staging tabs fetched once per hour via Apps Script rather than hundreds of volatile IMPORTXML formulas.
Relevant Tools & Guides
- URL Encoder / Decoder — Encode special characters into URL-safe UTF-8 percent-encoding and decode back.
- JSON Formatter & Validator — Format, beautify, inspect syntax errors, and minify JSON payloads.
- Read Optimizing Slow Google Sheets: Architectural Guide for Large Datasets & Heavy Calculations →
- Read Google Apps Script Automation Guide: Connect Workspace Services with Code →
Related Errors
Frequently Asked Questions
Why does a URL open in my Chrome browser but fail in IMPORTXML?
Sites behind logins, geo-blocks, or anti-bot firewalls allow interactive Chrome browsers but return HTTP 403 to headless Google Sheets fetcher IPs.
Can IMPORTXML read JavaScript-rendered single-page apps?
No. IMPORTXML only sees the initial server HTML response without executing client JavaScript.
Does URL encoding fix broken IMPORTXML query strings?
Yes. Spaces and special query characters in dynamic URLs should be escaped with ENCODEURL() before passing to IMPORTXML.
How often does Google Sheets refresh IMPORTXML caches?
Approximately every 1 to 2 hours automatically while the spreadsheet is active.