Forum Discussion
Hidden Expression Error in Paginated Report Builder
This is related to .Net configuration
Can be as follows resolved, see screenshot:
1. Navigate to C:\Program Files\Power BI Report Builder\RSPreviewPolicy.config
2. Create a back up of the file copying it to another location
3. Open the file with Notepad and add the following script after line </PermissionSet>
<PermissionSet
class="NamedPermissionSet"
version="1"
Name="ExecutionAndInfrastructure">
<IPermission
class="SecurityPermission"
version="1"
Flags="Execution,Infrastructure"
/>
</PermissionSet>
4. In the section with UnionCodeGroup replace “Execution” with “ExecutionAndInfrastructure”
5. Save and reopen Power BI Report Builder
Official documentation: SecurityPermissionFlag Enum (System.Security.Permissions) | Microsoft Docs