InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format. - InfoPath Dev
in

InfoPath Dev

InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format.

Last post 06-18-2012 10:56 AM by Kishu11. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-15-2012 01:34 PM

    InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format.

    Hi,

    I have a published infopath form in a SharePoint Document library.  Users will submit entries per month basis. The form is published in a new doc library every beginning of each month. No changes in the code at all. It's been running fine  for everyone. But now the issue is, some of the users are not able to submit form anymore. They can open existing forms and retrieve data except submit a form.  They're always getting this error message when trying to submit or update the form: For other users it's working fine.

    InfoPath cannot submit the form.The OnSubmitRequest event handler did not work.Input string was not in a correct format.   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)   at System.Convert.ToInt32(String value)   at CanadianAuto.FormCode.FormEvents_Submit(Object sender, SubmitEventArgs e)   at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSubmit(DocReturnEvent pEvent)   at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSubmitRequest(DocReturnEvent pEvent)

    I'm not sure if this is permission error because the message talks about string format. I'm really worried and hoping to solve this problem because this is a live form in production.

    Can anyone please help?

    Thanks in advance!

     

  • 06-15-2012 02:30 PM In reply to

    Re: InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format.

    You are submitting via code? Or just with a regular submit connection?

    Hilary Stoupa

  • 06-16-2012 08:13 PM In reply to

    Re: InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format.

    I am submitting via code. I'm inserting or updating data in a database first and insert or update an item in a sharepoint list before the form submits.
  • 06-18-2012 09:09 AM In reply to

    Re: InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format.

    The error message indicates an issue converting a string to a number - what's your code?

    Hilary Stoupa

  • 06-18-2012 10:56 AM In reply to

    Re: InfoPath cannot submit the form. The OnSubmitRequest event handler did not work. Input string was not in a correct format.

    Hi Hilary,

    Thanks for responding to my post. I was able to solve the issue. No code changes. I just created a new document library and re-published the form there. The error is not showing anymore.

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.