Custom application not found
Detection
- RegExp:
Error (.*) In field: application - no CustomApplication named (.*) found
Examples
Error Sales_User In field: application - no CustomApplication named Sales_Console found
Resolution
{1} gives access to the application {2}, which is not in the target org.
- Deploy {2}: retrieve it from your org with the Metadata Retriever of VS Code, commit it and save your User Story: sfdx-hardis adds it to manifest/package.xml. Applications are often missed by a pull: add CustomApplication to autoRetrieveWhenPull in .sfdx-hardis.yml (https://sfdx-hardis.cloudity.com/salesforce-devops-retrieve/)
- With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)
- Or remove the <applicationVisibilities> block of {2} from {1}