Solved

SharePoint 2007 Edit Form Error

Posted on 2013-01-07
2
737 Views
Last Modified: 2013-01-14
I have two heavily customized lists in a SharePoint 2007 MOSS Standard environment. Both lists were working fine for awhile then some users started to report an error when they tried to edit an existing list item. (I'll paste the error received below). The error is very much intermittent, sometime it happens and sometimes it won't. I've notice that the error most frequently occurs when either one of the list is first opened. I can open an item, put it in edit mode, click "OK" (with or without actually making a change to the item) and it may or may not throw the error below. Sometimes, if the error is thrown, if I go back to the All Items list view, open the SAME list item in edit mode, click ok, the action goes through and returns me to the All Items list view.
Also, I've disabled any workflows associated with the lists and removed the javascript I added to the Editform for more form validation.

I can't find any information about this on the internet and its had me stumped for some time now as its been difficult to troubleshoot what needs to be changed since sometimes the error happens and sometime it doesn't.
Please Help!!

This is the Error Received:

Server Error in '/' Application.

Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7471479
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Convert.ToInt32(String value, IFormatProvider provider) +48
   Microsoft.SharePoint.WebControls.ItemHiddenVersion.OnLoad(EventArgs e) +293
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
0
Comment
Question by:FineticSpeller
2 Comments
 
LVL 11

Accepted Solution

by:
Guru Ji earned 500 total points
ID: 38752284
When you edit your list in Sharepoint Designer, you have to removing the "<SharePoint:ItemHiddenVersion runat="server" ControlMode="Edit"/> from your EditForm.aspx and save your list and that should fix your problem.

Windows SharePoint Services 3.0 uses the owshiddenversion Field (in the Microsoft.SharePoint.SPBuiltInFieldId Class) to detect conflicts. If this field value is not supplied during the update process, the server will overwrite all changes. A client must always supply this field value during the update process, in order to prevent data loss. The field value is the number that the server returned most recently.

so above fix will help you the intermittent error you getting.
0
 

Author Closing Comment

by:FineticSpeller
ID: 38774786
Thanks so much!!! That solved the issue!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
InfoPath 2010 signature from external agent 4 60
DataTabe not rendering correctly... 2 43
SharePoint Online Adding A People Picker to Search 14 46
Sharepoint 2010 Audit Logs 11 81
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now