The Salesforce Enhanced Domains feature was able to be rolled out to Sandboxes on August 26th 2022 and will be generally available on September 9th for all environments.
If your CodeScan Cloud Salesforce project was linked to a Sandbox or Org that this feature is enabled in, you may be experiencing the error:
Salesforce retured an unexpected result
In this case, you will need to reattach your project analysis.
CodeScan Cloud allows you to do this without erasing the historical data present in your project.
To fix the above errors, first you need to delete the Analysis Project, to delete follow the steps below:
- Go to your Project and navigate to the Project Settings > Project Analysis page.
Click on Delete Analysis.
Make sure you do not have the "Delete this project also?" box checked. This will delete your history and is not reversible. Click Delete Analysis.
Now use the Attach Analysis Project button at the top right of the screen to re-add the link.
Configure the project and run the analysis.