The scenario: MOSS 2007 Enterprise, custom list with customized
New/View/Edit forms.
Everything was working fine. We made some changes to the underlying fields
(added some, changed a few values) and now there's a weird problem. When I
update and save an existing item from about a week ago, I get an
ASP.NETerror: "
*Value does not fall within the expected range."* This is in the Test
environment.
If I create a new item and then save it, the update proceeds correctly. I
thought that perhaps the old list items had some obsolete data that was no
longer in a Choice field, but the weird thing is that on the dev box, with
all the same changes, I can update and save any old item I like.
In case it matters, the full stack trace is below. I have found almost
nothing by searching on "DateTimeFieldNeedsFixing", but this seems to be the
crux of the matter from my ignorant perspective.
*Stack Trace:*
[ArgumentException: Value does not fall within the expected range.]
Microsoft.SharePoint.SPFieldCollection.GetField(String strName,
Boolean bThrowException) +471
Microsoft.SharePoint.SPFieldCollection.GetField(String strName) +54
Microsoft.SharePoint.WebPartPages.DataFormWebPart.DateTimeFieldNeedsFixup(String
fieldname, Object fieldValue) +240
Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatInsertCore() +657
Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatInsert() +87
Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatUpdate() +463
Microsoft.SharePoint.WebPartPages.DataFormWebPart.PerformUpdate() +78
Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object
sender, EventArgs e) +51
Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object
source, EventArgs e) +1906
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+2981
Do you know someone who can help? Share a link to this thread on twitter, or facebook.