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

  • 26 March 2021
  • 0 replies
  • 1005 views

Userlevel 3
Badge +8

Issue

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

 

Resolution

  • 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:

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


OR

<PageParserPaths>
<PageParserPath VirtualPath="/SiteURL/NintexWorkflowReportPages/home.aspx"CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
  • 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

 
 

 


0 replies

Be the first to reply!

Reply