Timeline for Complete list of Standard Field Validation Error Messages
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 16, 2017 at 22:04 | comment | added | sfdcfox | @RobDavis I see what you mean now. I don't think there is a meaningful way to get those errors, as the strings have no master list, we don't have a convenient method for rendering these values. I think the best you can really do is simply document them as you run in to them. There's only like 10 or so that are incredibly common, the remainder you should rarely ever run in to. | |
| Mar 16, 2017 at 21:31 | comment | added | RD3 | So this was helpful in getting further down the rabbit hole. But how do I get from the Enum value in the StatusCode to the actual string populated on the page? I looked into the getDmlType() method to find an answer, but I think it demonstrated that these are not the correct errors. I created a contact, added a bogus email, tried to do an Insert and checked the message. I got back the correct status code, but the DML message was "Email Address: invalid email address: test" Also, we are getting these messages before we do a DML statement. These are field level Error messages in VF pages. | |
| Mar 16, 2017 at 20:11 | history | answered | sfdcfox | CC BY-SA 3.0 |