Wiki Link: [discussion:1967]
Bug Report - Error when editing the secure field in a customized list edit form 

Jul 1 2009 at 2:17 PM

I installed the VS2005 version of the setup package on WSS 3.0 web site. It works well with normal list. But I have problem to "edit" the secure field if it is on a customized edit form.

Here is the scenario:

I have a SP list based on a content type. I modified DispForm.aspx, EditForm.aspx and NewForm.aspx using SP Designer (by deleting the ListFormWebPart, and inserting a custome list form control). Then I added the secure field to the list and edit all three forms in order to "see" the newly added field. Everthing works great - I can create a new list item with the secure field filled, I can view secure field as I have permission to access the field. But when I tried to edit any item, it worked the first time. On the second time, when the secure field has value, I always got a warning message (see attached below), even though it saved it. I have tried to add the secure field using different ways: created it as a site column and added it to the underneath content type; directly added to the list. No luck, I always had the message on editing a "filled" secure field. (BTW, I'm the site administrator, I don't think it is security related)

Could anyone shed a light on this? Thanks so much!

DataFormWebPartException: Data Source Conflict: Your changes conflict with those made concurrently by another user. Refresh the form and submit your changes again.
Microsoft.SharePoint.WebPartPages.DataFormWebPart.UpdateCallback(Int32 affectedRecords, Exception ex) +220
System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +83
Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +455
Microsoft.SharePoint.WebPartPages.DataFormWebPart.PerformCommit() +63
Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +43
Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +1390
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

May 20 2010 at 4:32 AM

Page view tracker