Compiler Warning (Future Error) AL0775

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!

Try methods should not specify an explicit return value, because the value will be discarded. The actual return value depends on whether the method returns an error or not.

Important

This warning will become an error with Business Central 2024 release wave 2.

Getting Started with AL
Developing Extensions