Setting a table field mandatory doesn’t allow zero to enter

In Dynamics AX if you set any integer or real type field of a table mandatory, then it would not allow 0 to enter in that field. Whenever a user enters 0 and move to the next field the following infolog message appears.

Field ‘fieldname’ must be filled in.

But if you don’t like this error message and need something else to display then provide a check in the code. For example by overriding the validateField() method.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

%d bloggers like this: