The Salesforce API returns error messages when it can’t deploy metadata. Learn more about the error, what the cause is and how you can fix the problem.
QuickAction - no QuickAction named NewTask found
For this known issue If you’re installing a 2GP package on a scratch org with no namespace or different namespace:
1. Add namespace of Dev Hub org to sfdx-project.json file like this :
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "2GPTesting123",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT"
}
],
"namespace": "sfdxtest",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "46.0",
"packageAliases": {
"2GPTesting123": "0Ho7F0000008OTrSAM",
"2GPTesting123@0.1.0-1": "04t7F000005Z*******"
}
}
2. Then create a scratch org using below command :
sfdx force:org:create -f project-scratch-def.json
3. Now the scratch org created will be created with namespace so now if you will install the same 2GP package it will be successful.