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

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.

Uploading...

Failed to fetch company with id='XXXX'

com.castsoftware.highlight.RTExceptionWithStatus: Failed to fetch company with id='xxxx'

 

Details

  1. Check whether there are any typos in the command line.

    For eg 

    [ERR5] HighlightAutomation --workingDir . --sourceDir xxx --ignoreDirectories test,.git,ide_settings,g --login xx@xx.xxx--password xxx--applicationId xxxx --companyId xxx --serverUrl https://rpa.castlight.com failed with code 5

    There is a typo in the serverUrl . It is https://rpa.casthighlight.com, and not https://rpa.castlight.com

    So the  --serverUrl value need to be corrected to complete the upload process.

  2. 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

    java -Dhttps.proxyHost=your proxy host -Dhttps.proxyPort=your proxy port -Dhttps.proxyUser=user -Dhttps.proxyPassword=password -jar HighlightAutomation.jar --workC
    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
        1. If using a proxy, and if the proxy name is similar to (http://something) check whether using  the proxy name without http;//  solves the issue. Ensure that the format of the command is followed. For eg proxy name need not be given in quotes.
  3. If using Basic Auth and if you are getting this error please refer CAST HIGHLIGHT - Results Upload - CLI - ERROR: Failed to fetch company with id when using  --basicAuth
  4. Check whether the user is using the appropriate ID in the command line depending upon whether user is using --basic auth or Oauth. Please refer CAST HIGHLIGHT - Result Upload - CLI - Failed to fetch company with id='XXXXX' "status":"401","decoded-status":"Unauthorized"
  5. 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.
  6. Check whether multiple domains are setup.  If so, confirm whether the proper company id is used for this upload.
  7. Check whether concurrent uploads are done.
  8. Check whether the user has proper permissions to upload. Check whether the user is the  Application owner for the app or the Domain contributor.
  9. Depending upon whether the user is a domain contributor or application contributor use the appropriate company ID.
    • If the user is a domain contributor, user has to use as company ID, the domain ID (the one you are a contributor of) not the global portfolio ID
    • If the user is an application contributor, user has to use as companyId the domain ID (the one your application belongs to) not the global portfolio ID. In Highlight portal use Application Scans > CLI Assistant to get basic command line configuration including application ID and company ID.
  10. Check whether the server url passed in the Command Line is correct.  For eg If the account is associated with the url  https://app.casthighlight.com  the --serverUrl should not be  https://rpa.casthighlight.com
  11. 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. 

 

Ticket

27675, 30328, 37307, 42891, 45115, 42213, 45779

 

Related Articles

CAST HIGHLIGHT - CLI - Error Codes

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

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

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

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

CAST HIGHLIGHT - Results Upload - CLI - UTF-8 "\xE7" does not map to Unicode at perl/FileList.pm line xx

Highlight Automated Code Scan (Command Line) 

CAST HIGHLIGHT - Portfolio Management - How to retrieve Company ID / Domain ID, Application ID, Result ID and Campaign ID

CAST HIGHLIGHT - Portfolio Management - How to find the root level Domain ID

How to retrieve your CAST Highlight company identifier (companyId)

.

 

Have more questions? Submit a request

Comments

Powered by Zendesk