Solved

SharePoint 2007 Edit Form Error

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

21 Experts available now in Live!

Get 1:1 Help Now