Skip to main content

Syntax Error Code Statement 2 42 Peoplecode Online

This error typically occurs when code is placed in the wrong order or is missing a mandatory declaration.

Example: Declare Function MyFunction PeopleCode RECORD_NAME.FIELD_NAME FieldFormula; . Syntax Error Code Statement 2 42 Peoplecode

Which you are using (e.g., SaveEdit, FieldChange). The exact line of code where the error is occurring. If you are trying to call a function or declare a variable . This error typically occurs when code is placed