Showing results for 
Search instead for 
Did you mean: 

Error "Code blocks are not allowed in this file." when opening Nintex Workflow Reports


When opening a Nintex Workflow Reports, the following error may occur:
Code blocks are not allowed in this file.



  • Update the web.config associated with the site. However, take note of how you define the virtual path and try different variations to define the path of the page on the site.
For example:

<PageParserPath VirtualPath="/NintexWorkflowReportPages/home.aspx" CompilationMode="Always" AllowServerSideScript="true" />


<PageParserPath VirtualPath="/SiteURL/NintexWorkflowReportPages/home.aspx"CompilationMode="Always" AllowServerSideScript="true" />
  • IIS Reset.


Additional Information

MS had released a CU update for Sharepoint in September 2020, which has caused this behavior and requires the above changes to be implemented.


In situations where there are hundreds or thousands of site, and it's not manageable to add the above declarations for each individual site, we recommend using an alternative product such as Nintex Hawkeye, or the Nintex Report Viewer Web part:


Related Links



Version history
Revision #:
23 of 23
Last update:
‎02-26-2021 03:55 AM
Updated by: