Navigation

    OpenIAP

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Problem running workflows with Task Schedule in Windows Server 2008 R2 Standard

    General Discussion
    openrpa workflow
    2
    4
    83
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vlopez last edited by

      Hi everyone,
      I installed OpenRPA in a PC with Windows Server 2008 R2 Standard. Then I create a new task in Task Schedule to run one of my workflows every day. Task Schedule open OpenRPA but don't run the workflow and shows this message in logging box:
      [Error] System.Exception: 360, 143, 1200, 750 is not a valid value for Int32. ---> 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 System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo)
      at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
      --- End of inner exception stack trace ---
      at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
      at System.Drawing.RectangleConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
      at OpenRPA.Config.GetProperty[T](String pluginname, T mydefault, String propertyName)
      [09:04:00.718][Error] System.InvalidOperationException: Failed to enable child session. Are you using Windows Server 2012/Windows 8 or newer? ---> System.EntryPointNotFoundException: Unable to find an entry point named 'WTSIsChildSessionsEnabled' in DLL 'Wtsapi32.dll'.
      at OpenRPA.Interfaces.win32.ChildSession.WTSIsChildSessionsEnabled(Boolean& isEnabled)
      at OpenRPA.Interfaces.win32.ChildSession.IsChildSessionsEnabled()
      --- End of inner exception stack trace ---
      at OpenRPA.Interfaces.win32.ChildSession.IsChildSessionsEnabled()
      at OpenRPA.RobotInstance.<RobotInstance_WebSocketClient_OnOpen>d__66.MoveNext()

      If I execute the command in cmd, powershell or in a .bat file, I have the same error.

      Also I try to Enable Child Sessions, but the RPA throw me this message:ce68ea7a-f37a-4500-9c2f-165fc9c6f800-image.png

      If I run the workflow pressing the run button, the workflow runs correctly

      Thank you in advance

      Allan Zimmermann 1 Reply Last reply Reply Quote 0
      • Allan Zimmermann
        Allan Zimmermann @vlopez last edited by Allan Zimmermann

        No, you cannot do RPA from a service or a scheduled task that is not running in the users context. That is what HD robots are for ( or child sessions, but you cannot use those )
        https://www.youtube.com/watch?v=VMQtr0fK3Rw&t=457s

        Did you even read the message ? it clearly states your windows version is not supported for child session. Only Windows 8/server 12 and above is supported.

        V 1 Reply Last reply Reply Quote 1
        • V
          vlopez @Allan Zimmermann last edited by

          @allan-zimmermann thanks for the answer, the problems with Child Session are solved.

          Now my unique problem is when I open and run one workflow with powershell, I tried with administrador mode too, the command open the program but don't run the workflow.

          If I run the workflow pressing the run button, the workflow runs correctly.

          Allan Zimmermann 1 Reply Last reply Reply Quote 0
          • Allan Zimmermann
            Allan Zimmermann @vlopez last edited by Allan Zimmermann

            Run it how ? show the command you used.
            If you don't share what you did, you a basicly just saying "it does not work" and all I can reply is, "yes it does" ... Not helping either of us ...

            NEVER run the robot as administrator ( or powershell for that matter ) if something requires you to run something as admin, be spectical.

            1 Reply Last reply Reply Quote 0
            • Locked by  A az 
            • First post
              Last post