Asked by:
"Input string was not in a correct format." in MOSS 2007

Question
-
Hi All,
What was working yesterday has stopped working today. Indeed SharePoint is full of surprises. While Editing an Item in a List we are getting below error. Event viewer is filled with: Pls help this is urgent
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 12/19/2011 2:50:48 PM
Event time (UTC): 12/19/2011 7:50:48 PM
Event ID: 4b384729cf384dd2aaeae671e71e9349
Event sequence: 37626
Event occurrence: 14
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1471770201/ROOT-2-129687648979126131
Trust level: Full
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\<folder>\
Machine name: server_name
Process information:
Process ID: 2344
Process name: w3wp.exe
Account name: <<domain\uname>>
Exception information:
Exception type: FormatException
Exception message: Input string was not in a correct format.
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) +10159299 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +207 System.Convert.ToInt32(String value, IFormatProvider provider) +55 Microsoft.SharePoint.WebControls.ItemHiddenVersion.OnLoad(EventArgs e) +439 System.Web.UI.Control.LoadRecursive() +66 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Control.LoadRecursive() +191 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3601
Server Error in '/' Application.
Input string was not in a correct format.
Naveed.DG SharePoint Administrator- Edited by Naveed DG Thursday, June 14, 2012 11:19 AM
Monday, December 19, 2011 8:55 PM
All replies
-
Hi,
Please make sure that you are entering correct kind of values in your list item.
Thanks, Rahul RashuTuesday, December 20, 2011 5:00 AM -
Thanks Rahul for your reply.
We are sure that input being provided is in proper format. Basically we are trying to update Title field (which i beleive is type of String).
For testing purpose I also tried entering numeric values but all the times error is same.
If i make a fresh entry to the list and also for other entries in the list update is possible.
Pls advice :)
Naveed.DG SharePoint AdministratorTuesday, December 20, 2011 1:37 PM -
From the stacktrace it seems that you are trying to convert a string value to number ??
If so, ensure that string contains an expected string, i.e. something which gets converted to number without exception.
Priyanka- Edited by priyanka8275 Monday, January 2, 2012 11:04 AM
Tuesday, December 20, 2011 2:11 PM -
I agree with you Priyanka, indeed stacktrace tells "String is being converted to number" and I really wonder why it has been coded this way.
In the entry only, Title is Required field and by all means it has to be string only. I removed all other entries and tried with only Title filed at no avail.
I am not a developer and hence wondering around this issue. Can you please advice a little more on this ? Which file do i need to rig up to find why it is converting String to Number etc...? or what is the acceptable string value (sample example)
Thanks
Naveed.DG SharePoint AdministratorTuesday, December 20, 2011 2:24 PM -
I assume that you are using the OOB sharepoint Edit page to edit the item.
Based on this assumption:
1) Are you using any special character in the title's value?
2) Did you tried creating a new custom list (with only title column) and tried updating the value for the same ?
3) Are there any event handlers associated with the List. You can check the same using sharepoint Event manager available on codeplex.
- Proposed as answer by star.warsModerator Friday, December 30, 2011 7:50 AM
- Unproposed as answer by Mike Walsh FIN Monday, January 2, 2012 10:45 AM
- Edited by Mike Walsh FIN Monday, January 2, 2012 10:45 AM sig asking people to mark the post removed
- Edited by priyanka8275 Monday, January 2, 2012 11:05 AM sig removed
Wednesday, December 21, 2011 10:25 AM -
Thank you so much priyanka....
I will discuss above points with my development team and will post back. Request to keep this thread unanswered untill then.
Naveed.DG SharePoint AdministratorThursday, December 22, 2011 8:38 PM