You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a Optimizely CMS 12.1.0 project with 1 host set up as below:
Go To set up Seo Sitemaps, choose Standard site map, click Update/save
Run the Scheduled job to generate sitemaps
Error: Job successfully executed. Generated sitemaps: Error creating sitemap for "sitemap.xml" appear in History of the Scheduled job, with an exception in Backend: fail: Geta.Optimizely.Sitemaps.XML.SitemapXmlGenerator[0] Error on generating xml sitemap System.ArgumentNullException: Value cannot be null. (Parameter 'uriString') at System.Uri..ctor(String uriString) at Geta.Optimizely.Sitemaps.XML.SitemapXmlGenerator.Generate(SitemapData sitemapData, Boolean persistData, Int32& entryCount)
Sitemap is not generated and it's not accessible
Workaround:
Have a website with multiple hosts, that way when we go to Seo Sitemaps admin, there's a dropdown to choose hosts, then click Update, the SiteUrl is not null anymore. After this, Generating sitemaps work as normal and things work fine.
I think this is a bug because when there is no dropdown to choose the Host, the SiteUrl is not passed into the Api call, and thus the exception occurs.
The text was updated successfully, but these errors were encountered:
Steps:
Generated sitemaps:
Error creating sitemap for "sitemap.xml" appear in History of the Scheduled job, with an exception in Backend:
fail: Geta.Optimizely.Sitemaps.XML.SitemapXmlGenerator[0] Error on generating xml sitemap System.ArgumentNullException: Value cannot be null. (Parameter 'uriString') at System.Uri..ctor(String uriString) at Geta.Optimizely.Sitemaps.XML.SitemapXmlGenerator.Generate(SitemapData sitemapData, Boolean persistData, Int32& entryCount)
Workaround:
Have a website with multiple hosts, that way when we go to Seo Sitemaps admin, there's a dropdown to choose hosts, then click Update, the SiteUrl is not null anymore. After this, Generating sitemaps work as normal and things work fine.
I think this is a bug because when there is no dropdown to choose the Host, the SiteUrl is not passed into the Api call, and thus the exception occurs.
The text was updated successfully, but these errors were encountered: