cancel
Showing results for 
Search instead for 
Did you mean: 

Nintex Workflow Report Presents an Error when Opening

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

nicksha_2-1611249713122.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-usin...

 

Version history
Revision #:
2 of 2
Last update:
‎01-21-2021 09:22 AM
Updated by:
 
Contributors