Input string not in the correct format

  • 1 October 2013
  • 2 replies
  • 10 views

Badge +2

Hi,


I receive this message when trying to submit a very basic SmartForm. Where do I start my search as the error message does not point one into any specific direction?


Input string was not in a correct format.




  • Type:
    System.FormatException


  • Source:
    mscorlib


  • Method Base

    • Member Type:
      Method


    • Name:
      StringToNumber


    • Module

      • Scope Name:
        CommonLanguageRuntimeLibrary




    • Declaring Type

      • Full Name:
        System.Number






  • Stack Trace:

    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.String.System.IConvertible.ToInt32(IFormatProvider provider)

    at System.Convert.ToInt32(Object value)

    at SourceCode.Workflow.Client.DataField.set_Value(Object val)

    at SourceCode.Forms.AppFramework.FormRuntime.ReturnValueAsDataFieldAccordingToType(DataField thisField, String value)

    at SourceCode.Forms.AppFramework.FormRuntime.StartProcess(String processXml)

    at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)




2 replies

Badge +4

Are you passing data from the form to the workflow?


If so, check the data type that you are transfering from the form and what type of data the workflow is expecting.


Badge +2

Thank you for your reply I appreciate your help! I managed to resolve it. I changed the data field in K2 studio from an integer to a string value. ''


 

Reply