# MESSAGE and ERROR

##### Tags:

- C/AL

##### Categories:

- Best Practice

Always end MESSAGE or ERROR with a period.

Bad code

    CustIsBlockedErr@1025 : TextConst 'ENU=You cannot %1 this type of document when Customer %2 is blocked with type %3';
    ...
    ERROR(CustIsBlockedErr,...);

Good code

    CustIsBlockedErr@1025 : TextConst 'ENU=You cannot %1 this type of document when Customer %2 is blocked with type %3.';
    ...
    ERROR(CustIsBlockedErr,...);

Last modified February 24, 2022: Added tags & categories + cleanup (5ee04366) by waldo1001