nicky

Sitemap has errors, but why

by @nicky (303), 8 months ago

Hi! When uploading my sitemap in the Google Search Console, I get the errormessage - Sitemap can be read, but has errors, Unsupported file format.

Do you think, this is because of the header, the first line which contains:

xml version="1.0" encoding="UTF-8"

I used the sitemapchecker - and there I got: Invalid XML declaration

Here is the sitemap: partner.hepster.com/sitemap.xml

542 Views
0 Upvotes
7 Replies
5 Users
Sort replies:
binayjha
by @binayjha (5534), 8 months ago

Try to generate the sitemap again using the tool and then replace with the new one. Without checking the file it is hard to pin point the issue.

hcuseo
by @hcuseo (125), 8 months ago

Visually check over the sitemap.xml page yourself and don’t rely on a tool for this to locate the problem. I was adding to my sitemap and noticed a spelling check error only yesterday. Maybe you should show the actual sitemap page

Zinavopvtltd
by @Zinavopvtltd (-210), 8 months ago

Yes, the error might be due to the XML declaration line. Ensure it's formatted correctly: <?xml version="1.0" encoding="UTF-8"?> without any additional spaces or characters before it. This could resolve the issue.

nicky
by @nicky (303), 8 months ago

partner.hepster.com/sitemap.xml

binayjha
by @binayjha (5534), 8 months ago

Hi @nicky, One of the URLs needs to be corrected,

https://partner.hepster.com/en-us/insights/press/{categoryKey?}

Check the curly braces in the ending part of the URL and correct it somehow. It should resolve the issue you are facing.

nicky
by @nicky (303), 8 months ago

@binayjha - ok, I will try. Thank you very much!

tvasteconstructions
by @tvasteconstructions (-30), 8 months ago

The error "Unsupported file format" may be due to an invalid XML declaration in the sitemap, such as "xml version="1.0" encoding="UTF-8". Ensure the XML declaration is properly formatted, and consider using a sitemap validator to identify and fix any other XML errors.

Join the forum to unlock true power of SEO community

You're welcome to become part of SEO Forum community. Register for free, learn and contribute.

Log In Sign up
SEO Directory for agencies
Want to see your Ad here?

Do you have a product or service you'd like to promote on Seoforum? It's easy. Contact us.