There is no translation available for this article. Il n'y a pas de traduction pour cet article

When trying to run a report in Microsoft Dynamics AX you encounter the following error: 

The DefaultValue expression for the report parameter 'AX_CompanyName' contains an error: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (rsRuntimeErrorInExpression)


On the second run of the same report, everything is Ok.


This issue may occur after a database restore, for example in the case you copied data from production to another instance for development or testing.
In AX, fo to System Administration / Setup / System / System service accounts

 Under the Business connector proxy setting:

  • Clear the value of the Alias and try to click OK
  • You'll have an error
    The alias/network domain entered for the Business Connector proxy is not valid.
  • Now fill the use Alias back in (here AX_BCP_MIG) and click OK again

This operation has the effect to clear some cached account settings in the system and will resolve your issue. 

Source: Microsoft MSDN Blog

blog comments powered by Disqus