"Illegal recursion detected: GetModel" error on the first request to SXA website

  • SXA website might fail to load for the first time with an unhandled exception. The website is normally displayed after you refresh the page once or twice. The following message can be found in the log:
    Exception: System.InvalidOperationException
    Message: Illegal recursion detected: GetModel
    Source: Sitecore.Mvc
    at Sitecore.Mvc.Common.RecursionPreventer..ctor(String title, Flag flag)
    at Sitecore.Mvc.Presentation.Rendering.GetModel()
    at Sitecore.Mvc.Presentation.Rendering.get_Model()
    at Sitecore.XA.Foundation.Mvc.Wrappers.Rendering.get_Item()
  • To resolve the issue, consider one of the following options:
    • Upgrade to the SXA 10.0 Initial release.
    • Download and install the hotfix compatible with the affected product version found on these pages:

      For SXA 1.9.0: SC Hotfix 430453-1 SXA 1.9.0 rev. 190528.zip.

      Be aware that the hotfix was built for a specific SXA version, and must not be installed on other SXA versions. In case any other hotfixes have already been installed, send a request for a compatibility check to Sitecore Support.

      Note that the ZIP file contents need to be extracted to locate installation instructions and related files inside. The hotfixes must be installed on a CM instance and then synced with other instances using standard development practices.

Applies to:

SXA 1.9 Initial Release

SXA 10.0.0

January 18, 2021
January 18, 2021

Reference number:



  • SXA