: You are calling a function that has not been defined or declared at the top of your program.
This error typically occurs when code is placed in the wrong order or is missing a mandatory declaration. Syntax Error Code Statement 2 42 Peoplecode
: Placing logic that requires a specific context (like a Function definition) inside an event like Page Activate without proper header declarations. How to Fix the Error : You are calling a function that has
: 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 Syntax Error Code Statement 2 42 Peoplecode