Nintex Workflow Report Presents an Error when Opening

  • 26 March 2021
  • 0 replies
  • 232 views

Userlevel 2
Badge +9

Issue

 

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

 

Error Code

 

Code blocks are not allowed in this file

 

Resolution


Option 1:

Reset the "customized" page to the site definition using SharePoint Designer
 

9920i61A7B10CF79B9D3E.png

 

Option 2:

Update the web.config associated to the site and IIS Reset.
However, take note on how to define the virtual path and try different variations to define the path of the page on the site.

 

Example:

 

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

 

OR

 

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

 

OR

 

<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />

 

Related Links

https://docs.microsoft.com/en-us/archive/blogs/kaevans/code-blocks-are-not-allowed-in-this-file-using-server-side-code-with-sharepoint

 


0 replies

Be the first to reply!

Reply