Unable to delete QuickAction and Page Layout at the same time via MD API due to "Cannot delete action <action name>..."
Last updated 2020-06-01 ·Reference W-4513308 ·Reported By 20 users
Unable to delete QuickAction and Page Layout at the same time via MetaData API due to "Cannot delete action <action name>. The following layout is referencing this. : <layout name>."
In any org:
1. Create a custom object.
2. Create a QuickAction.
2-1. New Action
Action Type: Create a Record
Target Object: Note
Standard Label Type: Log a Call
3. Create a Page layout
Page Layout Name: testLayout
4. Add the QuickAction to PageLayout: testLayout of created the custom object.
5. Delete QuickAction and PageLayout. Sample destructiveChanges.xml file:
*********** DEPLOYMENT FAILED ***********
All Component Failures:
1. quickActions/c.testAction.quickAction (obj__c.testAction) -- Error: Cannot delete action testAction. The following layout is referencing this. : testLayout.
Please delete QuickAction and PageLayout separately.
Reported By (20)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.