4

I'm trying to create a new package version for my SFDX project. As usual, I'm executing the following command:

sfdx force:package:version:create --package MyPackage --installationkey abcdefg123456 --path force-app --definitionfile config/project-package-def.json --targetdevhubusername my-prod-org --wait 100

However, I'm getting the following errors:

ERROR running force:package:version:create:  These entities are not supported: [ActionFieldUpdate, WorkflowRule, ActionEmail, PathAssistant]

I'm using Salesforce API version 46 in my sfdx-project.json file and this is the CLI version information:

sfdx-cli/7.27.0 darwin-x64 node-v10.15.2

This is not the first time I create and deploy an 2G unlocked package to production but I've never seen this before.

The message is self explanatory and as per this other post I know that the error can be avoided by adding the metadata to the .forceignore file. The real issue for me is that how is it possible that we are not allowed to package such essential features as workflow rules and actions? Does someone have any information regarding this issue? Maybe a downgrade of the SFDX CLI?

Thanks in advance!

1 Answer 1

6

The gaps can be irritating, but it is all spelled out in the Metadata Coverage Report here:

https://developer.salesforce.com/docs/metadata-coverage/47

Metadata coverage for WFs

So, you might have to live with keeping them unpackaged. Or you might not be able to adopt 2nd Generation Packaging yet.

Personally, where I've used unlocked packaging to manage big orgs, I've always had a certain amount of unpackaged metadata. Either because it's not supported, or because it doesn't fit the model (e.g. page layouts are too global).

2
  • Thanks for your comments Aidan. Can you please point me in the right direction on how to deploy from a SFDX project in other way than creating a 2g unlocked package? Commented Oct 10, 2019 at 12:44
  • 1
    You can use sfdx force:mdapi:deploy, developer.salesforce.com/docs/…
    – Aidan
    Commented Oct 10, 2019 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .