An error or warning issued from FieldDefault PeopleCode causes
-
a runtime error
-
No error is displayed
-
a compile time error
-
Only warning message is displayed
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.
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.