You need to sign in to do that
Don't have an account?
dkorba2k5
Bad ID value on Page Load
In an attempt to make our application bulletproof I'm trying to figure out how to catch the error when a VF page is loaded and has a bad ID value (either missing or incorrect value for that standard controller). We're able to catch all other scenario's but haven't been able to figure out how to process that error.
How is this bad Id being passed over?
I have noticed that some times a user will access a VF page with a custom button that is a link and the id will come over as null. It is as if the merge field in the link isn't populating before the user selects the button.
Sounds exactly like what our users are encountering. I wonder if anyone from salesforce.com is aware of this issue. The obvious way to catch this is inspect the Page parameters in your contoller or extension and display an error if it is null.
Catching creative ids would probably be done with a try catch around the SOQL statement.