How to Quick Fix:

Quick Fix: no QuickAction named NewTask found

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.

If you see this Salesforce error message:

QuickAction - no QuickAction named NewTask found

Try this quick fix:

  1. Create a global action named “NewTask” if it’s not included in your deployment items.
  2. For other component errors, Include the metadata for those global quick actions into your package.
  3. If you’re still getting the error, exclude all platform and quick actions out of the deployment list and add them later after you made your deployment.
  4. Enable Chatter if this is disabled in your org.

Other Solutions

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": "",
 "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.