Skip to main content

Trying to run JS function in my AA360. 

function simpleTest() {
    return "Hello, this is a test!";
}

This is simple function, still not running. Error is 

There was an error while opening the JavaScript 'Test'.There was an error while opening the manually input JavaScript. Also tried by opening the function with .js function. 

I can’t replicate your error, even with your exact JavaScript.

It works fine here. What error are you getting? Can you screenshot your code?


Attaching the error screenshot. Please check.


I just re-entered this fresh into my CE version and still cannot replicate your error.

It appears you copied and pasted in your JavaScript. Maybe there is a hidden character somewhere because your indention looks different than mine. The editor corrects the indentation, so that is a little suspect.

Maybe try typing in the JavaScript code? Not sure at this point.


Now, I’m not even able to run Message Box in my CE. It is giving and error message that says, Could not initialize class sun.font.SunFontManager. Attaching my error screenshot. Please help. 

 

 


Yikes. Time to clean up your system.

  1. Uninstall the Bot Agent.
  2. Clear out these folders:
    c:\windows\system32\config\systemprofile\appdata\local\automationanywhere\
    C:\ProgramData\AutomationAnywhere
  3. Reinstall your Bot Agent and try again.

Note that the folders above may be hidden and/or need admin privileges to clean out.


Reply