Solved

SharePoint 2007 Edit Form Error

Posted on 2013-01-07
2
742 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

831 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