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.

In this article, we'll explain how to resolve the "no QuickAction named NewTask found" error message in Salesforce. We'll delve into the root cause of this issue and explore multiple solutions to rectify it, including creating a global action, adjusting your deployment items, and utilizing scratch orgs with namespaces.

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

Streamlining Salesforce Deployments with Blue Canvas

Navigating Salesforce API error messages can be challenging, but with the right knowledge and tools, you can overcome them effectively. To make your Salesforce experience smoother and more efficient, consider leveraging the capabilities of Blue Canvas. We offer an array of features designed to help you better manage your Salesforce deployments and avoid common pitfalls. 

Ready to learn more about how Blue Canvas can help your orgnaization? Get in touch with us today

FAQs

What does the Salesforce error "no QuickAction named NewTask found" mean?

  • This error occurs when the Salesforce API can't deploy metadata because it's looking for a specific global action named "NewTask" that isn't included in your deployment items.

How can I fix the "no QuickAction named NewTask found" error in Salesforce?

  • One quick fix is to create a global action named "NewTask" if it's not already included in your deployment items. You should also consider including the metadata for any other global quick actions into your package. If these solutions don't work, try excluding all platform and quick actions from your deployment list, deploy your changes, and then add them later.

What should I do if Chatter is disabled in my org and I'm encountering the "no QuickAction named NewTask found" error?

  • Enabling Chatter in your org can help resolve this issue.

What if I encounter this error when installing a 2GP package on a scratch org with no namespace or a different namespace?

  • Add the namespace of the Dev Hub org to your sfdx-project.json file. Then, create a scratch org using the provided command. This should result in a scratch org created with the namespace, and the 2GP package should install successfully.

What tools can help me better manage Salesforce deployments and avoid common errors?

  • Blue Canvas is a tool that can help you manage your Salesforce deployments more effectively and mitigate common errors. It offers features that streamline the deployment process and offer solutions to common Salesforce pitfalls.