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 .
: Ensure any internal or external functions are declared at the very top of your PeopleCode program, immediately after any Component or Global variable declarations.
: In the Application Designer PeopleCode editor, press CTRL + G and enter the statement number (usually the second number in the error string) to jump directly to the problematic line. Syntax Error Code Statement 2 42 Peoplecode
: Ensure "Word Wrap" is turned off under the View menu to ensure the statement numbers match what the compiler is reporting.
: An internal function definition is placed in the middle of other logic. In PeopleCode, functions must often be defined before they are called within the same event. Which you are using (e
: You are calling a function that has not been defined or declared at the top of your program.
: If you have added new logic to an existing event (like Page Activate ), try moving your new code or function definitions to the top of the event. Understanding the Error Format : Ensure any internal or external functions are
This error typically occurs when code is placed in the wrong order or is missing a mandatory declaration.
Use quick links to access pages faster.
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 .
: Ensure any internal or external functions are declared at the very top of your PeopleCode program, immediately after any Component or Global variable declarations.
: In the Application Designer PeopleCode editor, press CTRL + G and enter the statement number (usually the second number in the error string) to jump directly to the problematic line.
: Ensure "Word Wrap" is turned off under the View menu to ensure the statement numbers match what the compiler is reporting.
: An internal function definition is placed in the middle of other logic. In PeopleCode, functions must often be defined before they are called within the same event.
: You are calling a function that has not been defined or declared at the top of your program.
: If you have added new logic to an existing event (like Page Activate ), try moving your new code or function definitions to the top of the event. Understanding the Error Format
This error typically occurs when code is placed in the wrong order or is missing a mandatory declaration.