Solved

SharePoint 2007 Edit Form Error

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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