Blue Prism Product

Expand all | Collapse all

Compile Error on line 0 --Invalid Expression term public

  • 1.  Compile Error on line 0 --Invalid Expression term public

    Posted 12-06-2019 13:33
    I need some help from BP side.Have a C# code inside a code stage and is throwing this error on line 0 :D

    What should I do, cos is not an error within my code stage is I think inside assembly of BP.

    My function is a try and catch function.

    Please advise!

    ------------------------------
    Cohen
    RPA Developer

    Romania
    ------------------------------


  • 2.  RE: Compile Error on line 0 --Invalid Expression term public

    Posted 01-06-2020 23:55
    Hello Ionut, 

    I have not see this error before within any of our support areas however found the following when searching online. https://stackoverflow.com/questions/37092468/invalid-expression-term-public

    Without reviewing your code and it will be difficult to help your situation. Feel free to send me you .bprelease and i will do my best to assist or provide guidance.

    ------------------------------
    Regards,

    David Flores
    Sr. Product Consultant
    blue prism
    ------------------------------



  • 3.  RE: Compile Error on line 0 --Invalid Expression term public

    Posted 01-07-2020 08:47
    Thank you! I changed the code. Do you think that BP has a documentation material on how to write code in C# within a code stage? I think it will enhance more the productivity. My lesson with the code stage is that somehow you have to write the code within Main.

    ------------------------------
    Cohen
    RPA Developer

    Romania
    ------------------------------



  • 4.  RE: Compile Error on line 0 --Invalid Expression term public

    Posted 01-07-2020 14:39
    Hello Ionut, 

    Here is a link to one of our Knowledge Base article from our BP Portal: https://portal.blueprism.com/customer-support/support-center#/path/Automation-Design/Studio/Code-Stages/1140176592/How-do-I-use-a-custom-C-code-in-Blue-Prism.htm

    If you need more details than what is provided, then I would recommend that you create a post with our Ideas community https://community.blueprism.com/ideas/ideas with your suggestion and reach out to your Blue Prism account manager to help find more ways we can assist you. 


    ------------------------------
    Regards,

    David Flores
    Sr. Product Consultant
    blue prism
    ------------------------------



  • 5.  RE: Compile Error on line 0 --Invalid Expression term public

    Posted 01-07-2020 15:10
    Thank you David! Really appreciate it! Unfortunately the link for c# guidelines is too simple for all the situations we confront in real life while using your product.
    Nevertheless thanks for your answer!

    ------------------------------
    Cohen
    RPA Developer

    Romania
    ------------------------------