Most sitemap errors fall into a few fixable groups: the file can't be fetched (404, 5xx, blocked by robots.txt), the XML is invalid (bad encoding, unescaped characters, wrong namespace), or it lists URLs Google shouldn't index (redirects, 404s, noindex or non-canonical pages). To fix them, open the Sitemaps report in Google Search Console, read the exact error, correct the file or the URLs it lists, validate it, and resubmit. Only include live, canonical pages that return 200. Never include error pages.
This guide covers every common Search Console sitemap error, what causes it, and how to fix it. It then explains how to validate, resubmit, and keep the sitemap clean over time.
Quick reference: common sitemap errors and fixes
| Error or status in Search Console | Typical cause | Fix |
|---|---|---|
| Couldn't fetch | Wrong URL, 404/5xx on the sitemap, server timeout, or a newly submitted file Google hasn't processed yet | Open the sitemap URL in a browser and confirm it returns HTTP 200. Check firewall or CDN bot rules. Wait 24–48 hours for new submissions. |
| Sitemap is HTML | The URL serves an HTML page, a login screen, or a soft 404 instead of XML | Serve the file with an XML content type and submit the real sitemap path. |
| Sitemap can be read, but has errors | Some entries or tags are invalid even though the file parses | Expand the report to see each issue (invalid URL, invalid date, missing tag) and correct those specific entries. |
| Invalid XML / parsing error | Unescaped &, a BOM or whitespace before <?xml, or a non-UTF-8 encoding | Escape entities (&), strip leading whitespace, and save the file as UTF-8. |
| Invalid URL / URL not allowed | Relative URLs, a different protocol or host (http vs https, www vs non-www), or URLs outside the sitemap's directory | Use absolute URLs on the exact verified property and host. |
| Invalid date | <lastmod> not in W3C Datetime format | Use YYYY-MM-DD or a full ISO 8601 timestamp, such as 2026-01-15T09:30:00+00:00. |
| Too many URLs / file too large | More than 50,000 URLs, or more than 50 MB uncompressed | Split the file into multiple sitemaps under a sitemap index. |
| Blocked by robots.txt | A Disallow rule covers the sitemap or the URLs it lists | Update robots.txt and test it before resubmitting. |
| Incorrect pages found in sitemap | The sitemap lists redirects, 404s, noindex pages, or non-canonical URLs | Regenerate the sitemap so it includes only indexable, canonical 200 URLs. |
Preparing for the Fix: Tools and Access You Need
Have the right tools and access in place before you start. It makes the process much faster.
Required Tools for Efficient Error Detection
Google Search Console: Free, and the authoritative source for how Google reads your sitemap. Use the Sitemaps report for file-level errors and the Pages (indexing) report for URL-level problems.
XML Sitemap Generators: Your CMS or plugin (for example, WordPress core sitemaps, Yoast, or Rank Math) should generate the sitemap automatically. If it doesn't, a standalone XML sitemap generator produces a standards-compliant file.
Validation Tools: An XML sitemap validator confirms the file is well-formed, uses the correct namespace, and stays within size limits before Google sees it.
Crawlers: Screaming Frog, Sitebulb, or a broken link checker can fetch every URL listed in the sitemap and report status codes.
Access Rights: Your Gateway to Fixing Errors
You need admin access to your CMS (or server and FTP access for static files), plus Owner or Full user permissions on the Search Console property. If you lack either, ask your web administrator before you begin. Otherwise you can diagnose problems but not fix them.
Initial Configuration: Setting Up for Success
To configure Google Search Console:
- Sign in and select the correct property. A Domain property covers all protocols and subdomains.
- Open Indexing → Sitemaps.
- Enter your sitemap URL (usually
/sitemap.xmlor/sitemap_index.xml) and submit it. - Add a
Sitemap: https://example.com/sitemap.xmlline to robots.txt so other search engines can find it too.
Locating Errors in Your Sitemap: The First Step to Recovery
Using Google Search Console to Identify Errors
- Open Indexing → Sitemaps and check the status column: Success, Has errors, or Couldn't fetch.
- Click the sitemap to see the specific errors and the number of discovered URLs.
- Open Indexing → Pages and filter by your sitemap. This shows which submitted URLs are not indexed and why, for example "Page with redirect," "Not found (404)," or "Excluded by noindex tag."
Note that the old "Coverage" report has been renamed the Pages report. Some older guides still use the former name.
Common Error Types: What to Look For
404 and soft 404 URLs: Pages listed in the sitemap that no longer exist. They waste crawl budget and make Google trust the sitemap less.
Redirecting URLs: Old URLs that 301 to new ones. List the final destination instead.
Noindex or non-canonical URLs: These send Google conflicting signals. Your sitemap says "index this" while the page itself says "don't."
Unsupported formats: Relative URLs, mixed protocols, unescaped characters, or a gzip file served with the wrong headers.
Duplicate URLs: The same page listed more than once, or listed under several parameter variants.
Manual Checks: The Human Touch
- Open the sitemap in a browser and confirm it renders as XML, not as an error or HTML page.
- Check that every
<loc>uses the same protocol and host as your canonical site. - Spot-check a sample of URLs to confirm they return 200 and contain a self-referencing canonical tag. A canonical tag checker speeds this up.
Correcting Broken or Incorrect URLs: The Heart of the Fix
Identifying Broken Links: The Detective Work
To check a sitemap for broken links, crawl the URLs it lists directly. In Screaming Frog, use List mode and upload the sitemap. Ahrefs Site Audit can also read it. Then export every URL that does not return 200: 3xx redirects, 4xx client errors, and 5xx server errors.
Updating Links: The Fixing Process
- Remove any URL that returns 404 or 410 and has no replacement.
- Replace redirected URLs with their final destination.
- Remove noindex, parameterized, paginated-duplicate, and non-canonical URLs.
- If the sitemap is generated dynamically, fix the source rather than editing the output. Exclude the page type in your plugin settings, or correct the canonical or noindex setting on the page itself.
Redirecting URLs: The Safety Net
When a page has moved, add a 301 redirect from the old URL to the new one. You can do this in .htaccess, in your server config, or with your CMS redirect feature. Link equity and visitors then reach the right page. The sitemap itself should list only the new URL.
Should you include error pages in your sitemap?
No. A sitemap should list only URLs you want indexed: pages that return 200, are canonical, and are not set to noindex. Leave out custom 404 pages, error templates, redirects, login pages, and thank-you pages. Including them triggers "incorrect pages" warnings and makes Google rely less on your sitemap.
Ensuring Your Sitemap is Error-Free: Validation and Confirmation
Using Sitemap Validators: Your Safety Check
- Run the sitemap URL through a validator.
- Confirm it uses the
http://www.sitemaps.org/schemas/sitemap/0.9namespace, is UTF-8, and is under 50,000 URLs and 50 MB. - Fix any remaining warnings, then re-crawl to confirm every listed URL returns 200.
Resubmitting Your Sitemap: The Final Step
In Search Console, go to Indexing → Sitemaps, enter the URL, and click Submit. Resubmitting the same URL prompts Google to re-fetch it. The status usually updates within a few days.
Monitoring for Future Errors: Staying Proactive
- Keep Search Console email notifications enabled.
- Recheck the Sitemaps and Pages reports monthly, and always after migrations, redesigns, or plugin updates.
- Make sure
<lastmod>reflects real content changes. Google ignores lastmod values that look unreliable.
Enhancing Your Sitemap for Better Performance: Advanced Techniques
Structuring Your Sitemap: Best Practices
Organize URLs: Split sitemaps by content type, such as posts, products, and categories. This lets you see indexing rates for each section.
Limit URL Count: Stay under 50,000 URLs and 50 MB uncompressed per file.
Utilize Sitemap Indexing: Use a sitemap index file to group multiple sitemaps on large sites.
Skip priority and changefreq: Google ignores <priority> and <changefreq>. An accurate <lastmod> is what matters.
Including Additional URLs: Expanding Your Reach
Images and Videos: Image and video sitemap extensions help media get discovered, especially when it loads through JavaScript.
Blog Posts: Include every indexable post. News publishers can add a separate news sitemap for articles from the last 48 hours.
Implementing Sitemap Indexing: For Large Sites
- Create an XML index file that lists each child sitemap in a
<sitemap><loc>entry. - Submit only the index file to Search Console. Google discovers the child sitemaps from it.
Resolving Common Issues Post-Fix: Navigating the Roadblocks
Diagnosing Persistent Errors: The Detective Work Continues
- Check whether a cache or CDN is still serving an old version of the sitemap.
- Look for plugins conflicting with each other, for example two SEO plugins each generating a sitemap.
- Test robots.txt with a robots.txt validator to confirm nothing blocks the sitemap or its URLs.
- Review recent structural changes that may have broken URLs.
Common Pitfalls: Mistakes to Avoid
Ignoring Validation: Skipping validation after changes leaves errors unnoticed.
Neglecting Regular Reviews: Without a review schedule, new errors pile up after every site change.
Treating submission as indexing: "Submitted" does not mean "indexed." Thin or duplicate pages may be crawled and still excluded.
When to Seek Help: Knowing Your Limits
Bring in an SEO specialist or developer in two situations:
- Errors persist after you have corrected the file.
- Your site is going through a migration, a domain change, or a large restructure.
Tracking Your Sitemap Improvements: Measuring Success
Key Metrics to Monitor: Your Success Indicators
Sitemap status: Should read Success, with no errors.
Indexed vs. submitted ratio: Filter the Pages report by sitemap. A healthy site typically indexes most of the URLs it submits, so investigate large gaps.
Impressions: Track impressions for affected sections in the Search Console Performance report.
Performance Benchmarks: Setting Realistic Goals
- Aim for zero sitemap errors and zero non-200 URLs in the sitemap.
- Set goals for increasing the indexed share of submitted URLs over time.
Using Analytics Tools: The Continuous Improvement Cycle
- Use Google Analytics or a website traffic monitoring tool to track organic traffic trends.
- Set alerts for sudden drops in indexed pages or organic sessions.
Frequently asked questions
What does "sitemap can be read, but has errors" mean?
Google fetched and parsed your sitemap, but some entries or tags are invalid. Common causes include relative or off-domain URLs, badly formatted lastmod dates, and missing required tags. Valid URLs are still processed. Open the sitemap in the Search Console Sitemaps report, expand the error details to find each problem entry, and correct it at the source. The quick reference table above lists the fix for each error type.
Should I include error pages in my sitemap?
No. Include only URLs that return 200, are canonical, and are indexable. Custom 404 pages, error templates, redirects, and noindex pages should never appear. Listing them causes "incorrect pages" warnings and weakens Google's trust in your sitemap. See the section on error pages above for what to exclude.
How do I check my sitemap for broken links?
Crawl the URLs listed in the sitemap, not just your navigation. Load the sitemap into Screaming Frog's List mode or a broken link checker and export every URL that doesn't return 200. Remove 404s, replace redirects with their final URLs, then validate and resubmit the sitemap in Search Console.
How long does Google take to process a fixed sitemap?
Google usually re-fetches a resubmitted sitemap within a few hours to a few days, and the Sitemaps report status updates accordingly. Indexing the listed URLs takes longer and depends on crawl demand and page quality. That can mean days to weeks on smaller sites. To speed up discovery of important pages, use URL Inspection to request indexing.
Summary and Next Steps: Your Roadmap to Sitemap Success
Fixing sitemap errors follows a repeatable process:
- Read the exact error in Search Console.
- Fix the file format or the URLs it lists.
- Keep only indexable, canonical 200 pages.
- Validate the sitemap and resubmit it.
- Monitor the indexed-to-submitted ratio over time.
Explore additional SEO strategies for comprehensive site optimization. You can also use Sight AI to automate sitemap monitoring and indexing, so new and updated pages are discovered quickly. Get started by starting your free trial today.



