Articles

The one-word fix that removes your safety net

Load Bearing, 30 November 2026

A Maximo automation script fails with a validation or access error. Someone adds one word to the setValue call. The error goes away.

That word is usually a flag, and it is worth a second look before go-live.

What the flags do

setValue takes an optional third argument. IBM's automation script documentation lists the MBO constants you can pass there:

  • NOVALIDATION (1): skips the field validation for this value.
  • NOACCESSCHECK (2): skips the check that the user is allowed to change this field.
  • NOACTION (8): skips the follow-on actions that normally run when the field changes.
  • NOVALIDATION_AND_NOACTION (9): both of the above.

In Python (Jython) it looks like this:

from psdi.mbo import MboConstants

mbo.setValue("STATUS", "APPR", MboConstants.NOACCESSCHECK)

Each flag has a real use. Data loads, integrations and system updates sometimes need to set a value the current user could not set by hand.

Why it matters in a migration

When a Java customization is converted into an automation script for Maximo Application Suite, or a script is drafted with AI, it's tempting to reach for a flag the moment an error appears. The script then passes the test. But the error was telling you something:

  • An access error may mean the script runs for users who should not make this change.
  • A validation error may mean the value is wrong for this record.
  • Skipping actions may mean a field that depends on this one never updates.

None of these show up as a failure. They show up later as data that doesn't add up.

What to check

  1. Find out why the flag is there. If nobody knows, remove it and run the test again.
  2. If the flag is needed, put a one-line comment above the call that says why.
  3. Prefer the narrowest flag. If only access is the issue, don't also skip validation.
  4. Check what the skipped actions would have done, and make sure the script does it another way if it matters.

A flag with a clear reason next to it is a decision. A flag with no reason is a guess that happened to pass a test.

A free check

Script Check, our free local checker for Maximo automation scripts, flags setValue calls that use these constants (rule LB005). It treats a flag with an explaining comment as low severity and one without a comment as medium. It runs on your machine and never sends code anywhere.

Sources

  • IBM Maximo automation script documentation, "MBO constants" (ibm-maximo-dev.github.io/maximo-autoscript-documentation)
  • IBM Maximo MboConstants API reference

Load Bearing is independent and not affiliated with IBM. Maximo is a trademark of IBM.