SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've an external list. I've to add a new item to the list (insert a record in the db) based on some conditions. Failing to meet those condition I must not allow the creation of object.

I've thrown an exception from the CreateNewItem method. Could you please suggest me a mechanism through which I can display a friendly error message and avoid the not so attractive exception message on the screen.

share|improve this question

You could possibly edit the form and add some validation on the form itself using SPD or InfoPath, I have not managed to get rid of those 'beautiful' error messages screens myself.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.