uniquecolumnpolicy throws error for customized new form.

Apr 9, 2008 at 7:58 PM
I have customized newform.aspx for a list.
Uniquecolumn policy works fine for default newform.aspx. but for the customized one , throws an error.

"The data source control failed to execute the insert command.

Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. "

Apr 14, 2008 at 11:55 AM
Check the ULS log. The feature does extensive logging, so you should see exactly what error occurred.
Apr 14, 2008 at 9:32 PM
Log has

04/14/2008 10:23:16.26 ItemAdding (0x0D0C) 0x069C UniqueColumnEventHandler Unique Column Policy UCEH Information Attempting to add value 'a' to list 'akeymain' 98d64b10-db72-48ee-9279-6e9791841dab
04/14/2008 10:23:16.26 Validate (0x0D0C) 0x069C UniqueColumnEventHandler Unique Column Policy UCEH Information Unique Column: Title;Title a07c3df8-45ed-406e-a3c1-b9a00efdabb4
04/14/2008 10:23:16.27 Validate (0x0D0C) 0x069C UniqueColumnEventHandler Unique Column Policy UCEH Information Unique Column: Title;Title c475934b-fc21-4b74-b60a-98dd0c3419cd
04/14/2008 10:23:16.27 Validate (0x0D0C) 0x069C UniqueColumnEventHandler Unique Column Policy UCEH Information Unique Column: Title;Title e5b956e6-126c-42d2-9c60-687dee42d472
04/14/2008 10:23:16.27 Validate (0x0D0C) 0x069C UniqueColumnEventHandler Unique Column Policy UCEH Information Validation query: <Where><Eq><FieldRef Name="Title" /><Value Type="Text">a</Value></Eq></Where> 708413bf-306e-4599-a4d0-60889a095497
04/14/2008 10:23:16.31 w3wp.exe (0x0D0C) 0x069C Windows SharePoint Services General 8kh7 High Column 'Title' must have a unique value within the list.

Thanks
Anil
Apr 24, 2008 at 1:43 AM
I don't immediately see a problem based on theses entries.
Jun 24, 2008 at 7:37 PM

I'm having the same problem. The unique column policy works fine with all default pages but with a cusomized page I get this error

The data source control failed to execute the insert command

Any ideas?
Thanks