Tuesday, May 12, 2020

SFDX force:source:push returns error: no QuickAction named FeedItem.ContentNote found

I wanted to add a specific page layout from Production to my SFDX project. After retrieving the metadata from production, I got an error message when trying to push it into a scratch org:

Error
force-app\main\default\layouts\Opportunity-Opportunity Standard Layout.layout-meta.xml
In field: QuickAction - no QuickAction named FeedItem.ContentNote found
ERROR running force:source:push:  Push failed.

This error occurs because Enhanced Notes has not been enabled in the Scratch Org.

Remedy this by updating the project-scratch-def.json file to include the following settings:

{
    "settings": {
        "enhancedNotesSettings": {
            "enableEnhancedNotes": true
        }
    }
}

No comments:

Post a Comment