+ Reply to Thread
Results 1 to 6 of 6

System.FormatException: Input string was not in a correct format

  1. #1
    Registered User
    Join Date
    04-01-2012
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    6

    System.FormatException: Input string was not in a correct format

    Hello

    I have a problem with this script. Whats is wrong with it?

    Please Login or Register  to view this content.
    The error message is

    {returnCode=200;sessionId=61388600-3ed8-42f6-b502-d59efe08aabd;exception=System.FormatException: 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 dotNETWebActions_RunScript.RunScriptFromFile.Execute(ActionRequest req, ISession s, IActionRegistry reg)
    at com.iconclude.agent.ActionProxy.Execute(ActionRequest cmd, ISession s, IActionRegistry reg);}
    Why not in correct format ? everything looks fine.

    Best regards
    L
    Last edited by Leonidars; 04-06-2012 at 05:26 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: System.FormatException: Input string was not in a correct format

    This could be the problem.
    Change to
    Please Login or Register  to view this content.
    Why do you have it as a function?

  3. #3
    Registered User
    Join Date
    04-01-2012
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: System.FormatException: Input string was not in a correct format

    I'm using software to run a script on a Windows Remote Server. I wan to run this script there. And my soft needs this to run this as function.

    I've changed this as you mentioned but it failed with the same error

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: System.FormatException: Input string was not in a correct format

    You might have to attach a sample with the offending code

  5. #5
    Registered User
    Join Date
    04-01-2012
    Location
    Europe
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: System.FormatException: Input string was not in a correct format

    Sample.zip Done.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: System.FormatException: Input string was not in a correct format

    It looks like you are looking for the text "ok" & deleting the rows containing it. This should not be a Function, but maybe this will work

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1