Multiple choice technology packaged enterprise solutions

An error or warning issued from FieldDefault PeopleCode causes

  1. a runtime error

  2. No error is displayed

  3. a compile time error

  4. Only warning message is displayed

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

FieldDefault PeopleCode executes during runtime processing, not during compilation. If an error occurs in FieldDefault logic, it manifests as a runtime error when the code executes. Compile-time errors occur when PeopleCode is saved/compiled, not when FieldDefault logic runs.

AI explanation

Correct answer: a runtime error. FieldDefault PeopleCode runs at the moment a field's default value is being resolved during data entry (a runtime event tied to the row/field), not during the compile step. Any Error or Warning function invoked in that program executes and displays at that point in the running application, so it surfaces as a runtime error rather than being caught at compile time. 'No error is displayed' and 'only a warning is displayed' are wrong because the question specifies an Error OR Warning was issued — either message type does get shown at runtime; 'compile time error' is wrong because FieldDefault code only runs when the record is processed, not when the program is compiled/saved.