User cannot upload the results of an application as the user is getting the error Failed to fetch company with id='XXXX' during the upload process.
Analysis stage completed.
Failed to fetch company with id='XXXX'
com.castsoftware.highlight.RTExceptionWithStatus: Failed to fetch company with id='xxxx'
- Check whether there are any typos in the command line.
[ERR5] HighlightAutomation --workingDir . --sourceDir xxx --ignoreDirectories test,.git,ide_settings,g --login email@example.com xxx--applicationId xxxx --companyId xxx --serverUrl https://rpa.castlight.com failed with code 5
So the --serverUrl value need to be corrected to complete the upload process.
- Check whether the CLI machine is behind a proxy. If it is check if the proxy parameters is passed in the CLI. A sample command to use the proxy configuration in the command line for a Jenkins configuration Build is
Please check the README file of Highlight-Automation-Command.tar for more samples such as proxy with no password and password. Also please refer CAST HIGHLIGHT - Results Upload - CLI - Scan is failing with error code 5
java -Dhttps.proxyHost=your proxy host -Dhttps.proxyPort=your proxy port -Dhttps.proxyUser=user -Dhttps.proxyPassword=password -jar HighlightAutomation.jar --workC
- Check the status of the application. Is it Active or archived? If there is nothing to Analyze and no results to upload then error will be generated.
- 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.
CAST HIGHLIGHT - Results Upload - CLI - Failed to upload submission for application result id='XXXXXX' with company [name='XXX',id='XXXX'] and application [name='XXX',id=XXXXX] message: 400 highlight.server.client.campaignApplication.update.NoAnalysis
27675, 30328, 37307