20

I have generated a sitemap from online generators, it seems to be working and even i tested it on old google search console sitemap testor and it works. but when i submit it in both versions it just displays error message.

enter image description here

7 Answers7

14

This is a known bug. See this Google support answer.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
  • 2
    How much pain this "bug" has caused... Still like this 6 months later. – Kevin Parker Jan 18 '20 at 17:37
  • 2
    @KevinParker It is still not fixed. – Yashwardhan Pauranik Sep 21 '21 at 12:54
  • 1
    I FOUND A FIX ... change the line feed to Unix (LF)... this setting is in BBedit at the bottom of the window. The online generator created a sitemap with line feed as "Windows (CRLF)". Changed it to Unix (LF) and success. I am not able to post an answer here. – Randy Zeitman Jan 03 '22 at 20:20
  • 1
    @RandyZeitman I doubt that's the ONLY factor causing this issue. I develop code on Linux & I ensure all of my committed files has LF line endings (using `git`), yet I', still facing this issue. – Jarmos Aug 05 '22 at 10:26
  • Today is May 12 2023 and the same bug still exists.Sadly. – Goran_Ilic_Ilke May 12 '23 at 10:43
1

In my case, it's the sitemap that had a syntax error. You should open sitemaps in Firefox, it will tell you if you have a syntax error.

Samuel Dauzon
  • 10,744
  • 13
  • 61
  • 94
0

Your sitemap domain address might have changed. If it is wordpress use yoast plugin, where search console will automatically consider sitemap.xml

  • Its not wordpress, but i visit the address that i give to google and it returns my sitemap which is correct? everything is okay i don't know why this happens –  Dec 26 '18 at 08:12
  • Please send website domain – rakhavendhar Dec 26 '18 at 08:15
0

I had this issue and it was because I didn't set the content-type to application/xml

This sitemap validator notified me of the issue: https://www.xml-sitemaps.com/validate-xml-sitemap.html

Ahmet Emre Kilinc
  • 5,489
  • 12
  • 30
  • 42
sizzlecookie
  • 278
  • 3
  • 7
0

I had the same problem and the solution was very simple, just put the full path to your sitemap.

Where the console asks 'add new sitemap', instead of writing /sitemap.xml, write the full path, such as https://example.com/sitemap.xml.

That should fix the problem.

David Buck
  • 3,752
  • 35
  • 31
  • 35
Carlos
  • 9
  • 1
0

Using the yoast SEO plugin which built out 10 sitemaps, the index got red the first time and only one of the sub-sitemaps did. I manually visited the other sitemaps (likely they took to long to respond I thought) and deleted the sitemap on google search console and re-uploaded. All were read that time.

Kevin Danikowski
  • 4,620
  • 6
  • 41
  • 75
0

Enter the full URL of your sitemap, e.g., https://example.com/sitemap.xml. Also, ensure your sitemap name does not include numbers and symbols.

nixx
  • 167
  • 1
  • 8