Blue Prism Product

last person joined: yesterday 

Chat about Blue Prism products
Expand all | Collapse all

Method arguments must be enclosed in parentheses.

Jump to Best Answer
  • 1.  Method arguments must be enclosed in parentheses.

    Posted 24 days ago
      |   view attached
    Hello,

    I have completed the SAP scripting but when I am trying to run the code in Object level above error is showing. Did I miss anything.
    I have attached the screenshots of my code.
    Page: Click on Spreadsheet
    Stage: Code1
    Type: Error
    Action: Validate
    Description: Compiler error at line 12: Method arguments must be enclosed in parentheses.
    Repairable: No
    Please help ASAP. I need to submit it to leadership team.

    BR/Deb


    ------------------------------
    Asitabha Deb
    ------------------------------


  • 2.  RE: Method arguments must be enclosed in parentheses.

    Posted 24 days ago
    Try changing line 12 to this:
    session.findById("wnd[0]/usr/cntrlRESULT_LIST/shellcont/shell").pressToolbarContextButton("&MB_EXPORT")​
    I think it doesn't like that you don't have the parameters enclosed in parenthesis. The old VBA / VBS / VB6 style doesn't require them, but vb.net does.

    ------------------------------
    Nicholas Zejdlik
    RPA Developer
    ------------------------------



  • 3.  RE: Method arguments must be enclosed in parentheses.
    Best Answer

    Posted 23 days ago
    Hey Asitabha,

    A quick glance makes me believe the errors you are seeing are a result of the arguments you are passing in rows 12 & 13. I'll suggest placing them in parenthesis and trying again.

    I hope this helps.

    Regards.

    ------------------------------
    Madhur Chopra
    Sr. Product Consultant
    Blue Prism - Professional Services
    America/Los_Angeles
    ------------------------------