ExpressionCompilerException: The compilation of an expression has failed.

Modified on Thu, 01 Feb 2024 at 10:54 AM

STACK TRACE
ExpressionCompilerException: The compilation of an expression has failed.
at MailAndDeploy.Server.Compilers.ExpressionCompiler.EvaluateExpression(Expression pExpression, Boolean pPerformSyntaxValidation, String pModulesCode, ExpressionParameterValue[] pParameters)
at MailAndDeploy.Server.Persistency.Entities.SendEMailAction.ExecuteAction()
at MailAndDeploy.Server.Persistency.Entities.Action.Execute()
at MailAndDeploy.Server.Persistency.Entities.Task.Execute(IEnumerable`1 pParameterValues)
Exception: 'Text Text' is not declared. It may be inaccessible due to its protection level.
End of statement expected.


Whenever you see the plus and expand icons in the Web interface after a text box or

the icon with three dots in the Designer

 it means that M&D is expecting an expression in this text box.


Examples of valid expressions:

"This is a text"

"Sales report - " & Date.Today.ToString("dd.MM.yyyy")

2024

[Datasource].[Executive Dashboard].[Expression].[sum(Sales)]

"Sum of sales: "  & [Datasource].[Executive Dashboard].[Expression].[sum(Sales)]

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article