Column · @searchsignaljournal
How to Find XML Sitemap Errors That Keep Pages Out of Google
After checking crawl rules, the next place to look is the sitemap itself. A sitemap can be valid XML and still point Google toward the wrong pages, stale URLs, or sections that were never meant to rank. That is why XML sitemap errors often show up as missing pages, soft traffic losses, or strange index coverage reports rather than a single obvious failure.
Start with the file Google is actually using. Search teams often maintain several sitemaps: one for posts, one for products, one for images, and older files left behind after a redesign. The URL submitted in Search Console may not be the one your content team updates. Confirm which sitemap is referenced in robots.txt, which one is submitted in Search Console, and which one is generated by the content system. If those signals disagree, crawling can look healthy while important pages stay invisible.
Confirm the file can be fetched and read
Open the sitemap as a search engine would fetch it. It should load without a login, return a successful response, and display as XML rather than an HTML page or a soft error page. Watch for redirects that send the sitemap to a different host, protocol, or path. A redirect may work for browsers but still create confusion when search engines expect a stable file location.
Check the response status and content type. A sitemap that returns a server error, a 404, or a login page cannot help discovery. A file served as HTML may be ignored even when the text looks like XML. If the sitemap is generated dynamically, look at whether it changes by user agent, location, cookie, or query string. Search engines need a consistent version that represents the canonical site structure.
Size matters too. Very large sitemaps can become slow, incomplete, or hard to diagnose. Splitting by content type or section usually makes problems easier to isolate. If posts, categories, products, and media files all sit in one huge file, one broken block can obscure the rest. A clean split also helps when comparing index coverage by page type after a migration.
Compare sitemap URLs with the pages that should rank
The most common sitemap problem is not syntax. It is inclusion. Export the sitemap URLs and compare them with the pages that should be discoverable, especially high value pages added recently, pages that lost rankings, and pages created during a redesign. Missing URLs can point to a template change, a publishing workflow issue, or a filter that accidentally excludes certain content types.
Watch for pages included in the sitemap that no longer exist. Old campaign pages, deleted products, seasonal landing pages, and renamed articles can linger for months. Search engines may keep requesting them, which wastes crawl budget and clutters reports. If these URLs return 404 errors or redirect to unrelated pages, remove them from the sitemap once the redirect and content decisions are clear.
Also look for URLs that are present but blocked by crawl rules. A sitemap is a discovery hint, not an override. If a path is disallowed, Google may see the URL in the file but still refuse to crawl it. This is where robots.txt indexing issues can make a sitemap look healthy while index coverage tells a different story. The fix is not to stuff more URLs into the sitemap, but to align access rules, internal links, and sitemap entries.
Check canonical signals before blaming the sitemap
A page can be listed perfectly and still fail to appear as its own result if canonical signals point elsewhere. Look at the canonical URL declared on each important page, then compare it with the sitemap URL. Mismatches caused by HTTP and HTTPS, trailing slashes, uppercase letters, tracking parameters, or alternate hostnames are common after platform changes. Consistency reduces mixed signals.
A canonical tag audit helps reveal pages that compete with each other, resolve to the wrong version, or point to URLs that redirect. That matters because a sitemap filled with noncanonical variants can dilute attention and make reporting noisy. If two versions of the same page both appear in the file, decide which one should be indexed and keep the sitemap aligned with that choice.
Duplicate content can also make sitemap data misleading. Faceted navigation, printer pages, archive pages, and tagged views may be included by default. These URLs can outnumber the pages that matter and give search engines a weak map of the site. In those cases, the sitemap should act as a curated list of preferred URLs, not a complete dump of every address the system can generate.
Look for directives that contradict inclusion
Another common cause is a page that appears in the sitemap but carries instructions that prevent indexing. A noindex directive, a password wall, a redirect chain, or a server response other than 200 can all stop a URL from becoming visible. The sitemap says the page exists, while the page itself says something different.
Use a noindex directive audit on important URLs that are missing from the index, especially after staging changes or template updates. A directive can sit in the page head, in server headers, or in a sitewide rule added for a temporary project. When it remains live, sitemap submission will not solve the problem.
Pay attention to pages that were noindexed during development and then launched without the directive being removed. Also watch for pages that were intentionally removed from indexing but were later given new value through internal links or content updates. These contradictions are easy to miss when sitemap reports are reviewed in isolation.
Inspect Search Console sitemap reports line by line
Search Console sitemap reports separate discovered URLs from indexed URLs, which makes them useful for narrowing the issue. If a URL is discovered but not indexed, check whether it was crawled, whether it was excluded, and what reason appears. Treat reasons as clues rather than final verdicts. A page marked as duplicate may need canonical cleanup, while a page marked as blocked may need crawl rule changes.
Do not stop at the total error count. A small number of broken image URLs may be harmless, while one malformed section can hide a whole category. Sort by affected URL pattern. If every failure comes from one directory, one CMS content type, or one date range, the cause is likely a template or export rule rather than random site decay.
Building internal links to buried pages can improve discovery, but links cannot repair a bad sitemap entry. The two signals should support each other. Important pages need strong internal paths, clean server responses, and inclusion in the sitemap. When one is missing, diagnosis becomes slower and recovery less predictable.
Fix the source, then resubmit and recheck
Once the pattern is clear, fix the system that generated the problem. If URLs are missing, update the template, plugin settings, publishing rules, or export query. If stale URLs remain, remove them at the source so they do not return on the next rebuild. If indexing conflicts are present, correct the page directive, canonical target, redirect, or crawl rule before resubmitting.
After resubmission, allow time for recrawling and compare the same URLs rather than the whole site at once. Pick a small set of pages that should recover and track their status. This keeps the diagnosis focused and prevents unrelated changes from clouding the result. In forensic SEO recovery work, that controlled comparison is often what separates a real fix from a temporary reporting change.
Finally, keep sitemap review tied to site changes. Redesigns, migrations, category restructures, domain moves, and large content deletions all create conditions for XML sitemap errors. A short review after each change can catch missing sections, wrong canonical targets, stale URLs, and robots.txt indexing issues before they turn into a wider indexing problem.