The Sitemaps report in Google Search Console uses a handful of short statuses, and none of them says much on its own. "Has errors" could mean one bad date in a file of ten thousand URLs, or a sitemap Google cannot use at all. "Temporary processing error" sounds like Google's problem, and sometimes it is. This guide goes through what each status and each detailed error means, how to find the cause quickly, and which ones are worth your time.
The short answer: click the sitemap in the report to see the detailed errors, then open the sitemap URL yourself in a private browser window. Most problems are visible straight away: an HTML page instead of XML, a PHP warning above the XML declaration, URLs on the wrong domain, or dates in the wrong format. Fix the file, run it through a sitemap validator, and resubmit.
First, how much does a sitemap error matter?
A sitemap is a hint, not a requirement. Google still finds pages through links, so a broken sitemap on an established site with good internal linking rarely causes a disaster. It matters most in three situations: a new site with few links pointing in, a large site where deep pages are only reachable through pagination, and a site that publishes often and wants new pages crawled quickly. If you are in one of those, fix sitemap errors promptly.
The statuses in the Sitemaps report
- Success. Google read the file and found no problems. Check the "Discovered pages" number anyway. If it is far below the number of pages you expected, the file is valid but incomplete, usually because a plugin excludes a post type or the sitemap index is missing a child sitemap.
- Has errors. Google opened the file but some or all of it could not be used. Click the sitemap to see the individual errors. A few invalid entries do not stop Google from using the rest.
- Couldn't fetch. Google could not download the file at all, or has not tried yet. This one has enough causes to need its own guide: Search Console "Couldn't fetch" sitemap.
- Pending. Submitted and waiting. New sitemaps can sit here for a day or two.
- Temporary processing error. Covered in its own section below, because it is the most misunderstood.
The detailed errors, and what causes each
"Sitemap is HTML"
The URL returned a web page instead of XML. The usual causes: the file does not exist and your server shows a "page not found" page with a 200 status; a plugin's human-readable HTML sitemap was submitted instead of the XML one; or the URL redirects to a login or cookie-consent page. Open the URL in a private window and look at what comes back.
"Sitemap could not be read" and "General HTTP error"
Google reached your server but got an error, a timeout or an unreadable response. Check the HTTP status code the sitemap returns. Firewalls and security plugins that challenge unfamiliar visitors are a common cause, because they challenge Googlebot too. Sitemaps generated on the fly by a slow database query can also time out on large sites.
Parsing errors and "Invalid XML"
The XML itself is broken. Three causes account for most of these:
- Something printed before the XML declaration. A blank line, a byte-order mark, or a PHP notice from a plugin. The declaration
<?xml version="1.0" encoding="UTF-8"?>must be the very first thing in the file. - Unescaped characters in URLs. An ampersand in a URL must be written as
&inside XML. A raw&breaks the whole file. - A truncated file. The generator crashed half way, so the closing
</urlset>tag is missing.
"Invalid URL" and "URL not allowed"
Every URL in a sitemap must be absolute (including https://) and on the same host and protocol as the sitemap itself. A sitemap at https://www.example.com/sitemap.xml cannot list http://example.com/page. Mixed www and non-www URLs, an old http domain hard-coded in a setting, or relative paths like /blog/post all trigger this.
"Invalid date"
The <lastmod> value is not in W3C Datetime format. 2026-11-27 and 2026-11-27T09:30:00+00:00 are valid; 27/11/2026 and Nov 27, 2026 are not. While you are there, make sure lastmod changes only when the content really changes. Google has said it uses lastmod when it is consistently accurate, and ignores it on sites where every page claims to have been updated today.
"Missing XML tag"
A required tag is absent, almost always <loc> inside a <url> entry, or the <urlset> wrapper with its namespace.
Size errors
One sitemap can hold at most 50,000 URLs and 50 MB uncompressed. Above that, split it into several files and list them in a sitemap index. A sitemap index can only point to sitemaps, not to other indexes, so nesting indexes inside indexes produces an error too.
Compression errors
A .xml.gz file that is not valid gzip, or that the server compresses a second time on the way out. Download it and try to open it; if your computer cannot decompress it, neither can Google.
"Temporary processing error"
This status means Google fetched the file but could not finish processing it at that moment. Often it really is temporary and clears by itself within a day or two. If it does not:
- Resubmit the sitemap once. Do not resubmit it every hour; that does not speed anything up.
- Check how long the file takes to load. A sitemap that takes many seconds to generate is a likely cause. Cache it or generate it as a static file.
- Check its size. Very large files close to the limits are more likely to hit this. Splitting them into smaller sitemaps under an index helps.
- Run it through a validator. Sometimes the "temporary" error is a real format problem that Google reports badly.
A five-minute diagnosis routine
- Open the sitemap URL in a private window. You should see XML, not a page, a login screen or a cookie banner.
- View the source and look at the first line. It must start with
<?xml, with nothing above it. - Run it through the Sitemap Validator. It checks the structure, the URLs and the dates, and follows a sitemap index into its children.
- Check robots.txt. Make sure the sitemap is not blocked, and that it does not list URLs your robots.txt forbids, which Search Console reports separately. Our Robots.txt Checker shows both. For that conflict, see sitemap contains URLs blocked by robots.txt.
- Resubmit in Search Console once the file is clean.
A worked example
A WordPress site's sitemap shows "Has errors", and the detail says the XML could not be parsed on line 1. Opening the sitemap in a browser shows an error page from the browser's XML viewer. Viewing the source reveals this at the top:
Deprecated: Function create_function() is deprecated in /wp-content/plugins/old-gallery/gallery.php on line 41
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
An outdated plugin prints a PHP warning on every request, and on normal pages nobody notices because it sits invisibly above the HTML. In XML, the declaration is no longer the first thing in the file, so the whole sitemap is invalid. Turning off on-screen error display in the site's PHP settings fixes the sitemap immediately; updating or removing the plugin fixes the cause. After resubmitting, the status changed to Success within a day.
The lesson generalises: when a sitemap breaks on line 1, something is being printed before it. Look at the very top of the source.
What you can safely ignore
<priority>and<changefreq>. Google has said it ignores both. Invalid values in them are not worth worrying about.- A small gap between "Discovered pages" and your page count, if the missing pages are ones you deliberately exclude.
- Old sitemaps you no longer use showing errors. Remove them from the report so they stop confusing things.
Frequently asked questions
How long after fixing does the status change?
Usually within a day or two after you resubmit. Google rechecks sitemaps on its own schedule too, so it will clear eventually even if you do nothing, but resubmitting is quicker.
Do sitemap errors hurt my rankings?
Not directly. They can slow down the discovery of new pages, which matters for new and large sites. Pages that are already indexed are not penalised because the sitemap had an error.
Should I delete the sitemap and submit it again?
There is no need. Fix the file at the same URL and resubmit it. Deleting it from the report does not remove any pages from Google.
Does a small site need a sitemap at all?
A small site where every page is linked from the navigation can do without one. It still costs nothing to have, and it gives you the Sitemaps report as a quick way to spot indexing problems.
Short version
Click into the sitemap for the detailed error, then look at the file yourself. "Sitemap is HTML" means a page came back instead of XML; parse errors usually mean something printed above the declaration or an unescaped ampersand; "Invalid URL" means the wrong host, protocol or a relative path; "Invalid date" means the wrong lastmod format. Validate, resubmit once, and give it a day.