Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
Note
The AL diagnostics topics are in preview. If you have input for this topic, we'd love to hear from you. Use our GitHub repo to create a PR and add content to this topic by going to here. To read about contributing, see Contribute to the Help. Thanks!
Expression expected. Provide a valid expression (variable, constant, calculation, or method call).
How to fix this diagnostic?
This error means the compiler expected an expression, such as a value, variable, or calculation, but the expression is missing or incomplete. It's often caused by a missing operand, empty parentheses, or a dangling operator.
To fix it, complete the expression. The following example causes the error because the condition is incomplete:
if Amount = then
exit;
Provide the missing value:
if Amount = 0 then
exit;