Most sitemap mistakes are small. A date typed the way you would write it on a form. The same page listed twice because two plugins both generated a file. A URL pasted in a shortened form instead of the full address. None of these look serious in a text editor, yet each one is exactly the kind of thing that makes a search engine reject an entry or ignore the file.
This guide walks through the three mistakes a validation check catches most often, using the free Sitemap Validator on Ovatly. It also explains the difference between errors and warnings, because the fix order matters: errors first, warnings second.
Contents
- Quick answer
- Errors and warnings: fix them in that order
- Mistake 1: dates in the wrong format
- Mistake 2: duplicate entries
- Mistake 3: URLs that are not complete absolute addresses
- How to validate a sitemap, step by step
- Worked example: a European-format date, caught
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
The common sitemap validation mistakes are: lastmod dates written day-month-year instead of the W3C year-first format, duplicate entries for the same page, and loc values that are not complete absolute URLs. The first and third are errors, which can make engines ignore entries or the whole file. Duplicates are a warning, which engines usually tolerate but you should still fix. Paste your file into the Sitemap Validator, fix the errors first, then review the warnings, and re-paste the corrected file to confirm it is clean.
Errors and warnings: fix them in that order
The validator sorts what it finds into two levels. Errors break the format or the protocol: malformed XML, a missing or invalid URL in an entry, lastmod dates in the wrong format, and breaches of the protocol limits, which allow up to 50,000 URLs and 50 MB uncompressed per file. Errors can make engines ignore entries or the whole file, so they are never cosmetic.
Warnings are softer problems: duplicate entries, or a priority value outside the 0.0 to 1.0 range. Engines usually tolerate warnings, but they are worth fixing anyway, because they signal a file nobody is maintaining carefully. The working order is the one the tool itself suggests: fix the errors first, then review the warnings.
Mistake 1: dates in the wrong format
Sitemap dates must use the W3C format, year first: 2026-01-31. Many people write dates the way their region writes them, day first, so 31-01-2026 lands in the lastmod element. The validator treats that as an error, and it is one of the most common errors the check catches.
The fix is mechanical: rewrite every lastmod value year, month, day. If your CMS or plugin generates the file, the setting to change is its date format, not each line by hand. Dates are optional in a sitemap, so if a tool keeps producing the wrong format and you cannot change it, leaving lastmod out entirely is better than publishing dates in a format the protocol does not accept.
Mistake 2: duplicate entries
A duplicate is the same URL listed more than once in the file. It happens easily: a migration merges two generated files, a plugin and a manual list overlap, or a sitemap index and a urlset both end up covering the same pages. The validator reports duplicates as a warning rather than an error.
Engines usually tolerate duplicates, so this mistake rarely breaks anything on its own. Fix it anyway. Each duplicate is a wasted line in a file capped at 50,000 URLs, and a file with duplicates is usually a file with other drift in it too: pages that moved, pages that no longer exist. Removing the duplicates is the prompt to check the rest of the list with fresh eyes.
Mistake 3: URLs that are not complete absolute addresses
Every entry's loc element must hold an absolute URL: the complete address of the page. A missing or invalid URL in an entry is an error. The failures here are usually about form rather than typing: an address written without its opening protocol, a relative path such as /about instead of the full address, or a shortened http-style entry copied from a browser bar that was not the page's full address.
The rule to apply is simple. If you could not paste the loc value into a browser and land on exactly that page, it is not the absolute URL the protocol asks for. Write each entry as the full address, protocol included, and let the validation check confirm that every entry parses as one. This applies to sitemap index files as well: each child sitemap entry's loc is checked the same way.
How to validate a sitemap, step by step
- Paste the full sitemap.xml content into the box in the Sitemap Validator.
- Read the summary: file type, entry count, size and error count.
- Fix the errors first, then review the warnings.
- Re-paste the corrected file to confirm it is clean.
- If the file is a sitemap index, run each child sitemap it lists through the same check.
Worked example: a European-format date, caught
Take a sitemap whose first entry has <lastmod>31-01-2026</lastmod>. Pasting it into the validator fails with the error: URL entry 1 has an invalid <lastmod> value "31-01-2026". The date is a perfectly readable date; it is simply in the wrong order for the protocol. Rewriting it as 2026-01-31, year first, clears the error.
The same file carrying a priority of 1.5 would add a warning on top, because priority must stay between 0.0 and 1.0. That pairing is typical of real files: one error that matters, one warning that does not break anything but takes ten seconds to fix while you are there.
Limitations
The validator checks the text you paste, not the file live on your server. After fixing errors, upload the corrected file and paste its contents once more to confirm the published copy is clean; a fixed local copy proves nothing about the copy engines will fetch.
A clean validation also has a boundary. It means the file is well-formed and consistent; it cannot tell you whether the listed pages themselves are indexable or worth crawling. A valid sitemap full of pages that robots rules block, or that canonicalise to other addresses, will still not get those pages indexed. Validation is the file check, not the indexing guarantee. Whether your file follows the protocol in the first place, including its encoding, is covered in the companion guide on checking your sitemap's protocol and encoding.
Common mistakes
- Fixing warnings while an error stands. Errors can make engines ignore entries or the whole file; clear them first.
- Rewriting dates by hand in a generated file. The next regeneration restores the wrong format. Fix the generator's date setting.
- Validating a local copy and uploading a different one. Paste the published file's contents for the final check.
- Stopping at the index file. A clean sitemap index says nothing about its children; run each child through the same check.
- Treating a pass as an indexing promise. The file can be perfect while the pages are blocked or canonicalised elsewhere.
FAQs
What is the difference between an error and a warning here? Errors break the format or the protocol (malformed XML, missing loc, invalid dates, oversized files) and can make engines ignore entries or the whole file. Warnings are problems like duplicates or out-of-range priorities that engines usually tolerate but you should still fix.
Why does a date like 31-01-2026 fail validation? Sitemap dates must be in W3C format, year first: 2026-01-31. Regional orders like day-month-year are one of the most common errors this check catches.
Are duplicate entries in a sitemap an error? No, duplicates are reported as a warning. Engines usually tolerate them, but warnings are worth fixing: a duplicate entry is a wasted line in a file that has a size limit.
What makes a URL in a sitemap entry invalid?
Every entry's loc element must hold an absolute URL. A missing or invalid URL in an entry is an error, so addresses written without their full absolute form do not pass.
My sitemap passes but pages are not indexed. Why? Validation only covers the file. Indexing also depends on the pages being crawlable, canonical, and valuable enough to include; check robots rules and page quality next.
Conclusion
Dates year first, each page listed once, every address complete and absolute: three habits cover most of what validation catches. Run the Sitemap Validator after generating a new file, after a migration, or whenever pages stop being crawled as expected, and re-check the published copy rather than a local draft. More guides like this one live in the SEO Tools guides archive.