It's been a few years since I've done database stuff but I suggest that instead of just displaying a generic error message like "New Record FAILED. Please contact your systems administrator."
you display the actual error message returned in the exception. It should be one of the properties of the variable ex
. It will likely give you more details.
And, if I may, I'd like to say again that these kind of questions do not belong in the community forum so I moved it to a more appropriate location.