Hi AhmedSaeed,
This issue occurred because RDL sandboxing was made mandatory on the TIER 2 environments’ reporting services in D365FO. RDL sandboxing lets you restrict the usage of specific types of resources.
You can enable this feature to achieve the following objectives:
1.Regulate external resource sizes that include images, .xslt files and map data.
2.When publishing a report, limit types and members that are used in expression text.
3.When processing a report, limit the length of the text and the size of the return value for expressions.
When RDL Sandboxing is enabled, the following features are disabled:
1.Custom code in the <Code> element of a report definition.
2.RDL backward compatibility mode for SSRS (SQL Server 2005 Reporting Services) custom report items.
3.Named parameters in expressions.
Refer to:
docs.microsoft.com/.../enable-and-disable-rdl-sandboxing