CAST HIGHLIGHT - Results Upload - CLI - Scan is failing with error code 5

When trying to run the command from Linux machine scan is failing with error code 5.

Action Plan

  1. The error code 5  - Command-Line result upload error" is usually seen with the permission issues with User ID / Password.
      1.  Check whether  --login , --password and –-serverUrl are entered correctly.
      2.  Check whether the user has changed the password for the login to HL whether the user was able to login and upload results previously.
      3. Check whether the account is locked.
  2. Check whether there is any proxy involved. If proxy is there user needs to pass the proxy parameters to the command line so that it can reach RPA through the proxy. An example can be found in the Command Line readme. Below is the sample command line with proxy 

    Special configuration for proxy server
    Using a proxy server for upload.

    Proxy with no password :
    -Dhttps.proxyHost=<your proxy host>
    -Dhttps.proxyPort=<your proxy port>

    If a password is requested for proxy add the following additional parameter

    java -Dhttps.proxyHost=your proxy host -Dhttps.proxyPort=your proxy port -Dhttps.proxyUser=user -Dhttps.proxyPassword=password -jar HighlightAutomation.jar --workingDir "C:\highlight-myproject" --sourceDir "C:\myproject\src" --login xxx --password xxxx


  3. Use the latest version of the CLI. As the platform evolves (new features, new api endpoints, etc.), the command line also uses some of these functionalities so it needs to be updated frequently. 



Related Articles


CAST HIGHLIGHT - CLI - Scan fails for an application with an error Failed to fetch company with id XXX

CAST HIGHLIGHT - CLI - Upload failed with error Failed to fetch company with id='XXXX'

CAST HIGHLIGHT - CLI - ERROR: Failed to fetch company with id when using  --basicAuth

Highlight Automated Code Scan (Command Line)



29229, 37307

Have more questions? Submit a request


Powered by Zendesk