Failed to retrieve metadata. Status: FAILED Message: SfError The specified metadata type is unsupported: [expressionsetobjectalias]
There seems to be an issue with retrieving https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_expressionsetobjectalias.htm
Failed to retrieve metadata. Status: FAILED Message: SfError The specified metadata type is unsupported: [expressionsetobjectalias]
Steps to reproduce:
- Sign up for a BRE Org with Samples -
https://trailhead.salesforce.com/content/learn/modules/advanced-rules-with-business-rules-engine/get-ready-to-create-advanced-business-rules#:~:text=public health portal.-,Sign Up for a Developer Edition Org with Business Rules Engine,-To complete this - Connect IC2 to this org and setup a sfdx project
-
Add to the metadata selection
- decisionMatrixDefinition
- decisionMatrixVersion
- expressionSetDefinition
- expressionSetObjectAlias
- expressionSetVersion
-
Retrieve
Result: error
Comments (9)
-
reporter -
repo owner - changed status to open
Thanks for filing, Tony. I'll have to set up an environment to reproduce this. Due to some conflicts late this week, it'll likely be early next week before I can do so. I'll let you know how that goes and whether I have any additional questions about how to reproduce it.
-
reporter No problem, IF I am going to need it, will not be until next year ;) but I am sure someone else out there will need it too
-
repo owner Tony, I’ve been following this set of examples to try to reproduce the issue you’re seeing:
https://help.salesforce.com/s/articleView?id=sf.task_clone_an_expression_set.htm&type=5
So far I’m able to create and retrieve
DecisionMatrixDefinition
andExpresssionSetDefinition
metadata (and their own subordinates) but I haven’t yet produced anExpressionSetObjectAlias
. Just for sake of getting to the problem, can you let me know what I need to do to have one of those in my org so I can try to retrieve it? -
reporter This is the link to get an org will full examples - https://trailhead.salesforce.com/promo/orgs/business-rules-engine-
I fully suspect it is actually coming from the sf cli, even though their API seems to indicate is should be supported.
-
repo owner Thanks. Yep, it’s an issue with the CLI. You can reproduce it directly via CLI commands (using the “old” syntax here):
$ sfdx force:source:retrieve -m ExpressionSetDefinition Warning: We plan to deprecate this command in the future. Try using the "project retrieve start" command instead. Retrieving v59.0 metadata from <username> using the v59.0 SOAP API Preparing retrieve request... done === Retrieved Source FULL NAME TYPE PROJECT PATH STATE ───────────────────────────── ─────────────────────── ───────────────────────────────────────────────────────────────────────────────────────────────────────────── ─────── Insurance_Payment ExpressionSetDefinition force-app\main\default\expressionSetDefinition\Insurance_Payment.expressionSetDefinition-meta.xml Created Insurance_Subsidy ExpressionSetDefinition force-app\main\default\expressionSetDefinition\Insurance_Subsidy.expressionSetDefinition-meta.xml Created Insurance_Subsidy_Calculation ExpressionSetDefinition force-app\main\default\expressionSetDefinition\Insurance_Subsidy_Calculation.expressionSetDefinition-meta.xml Created $ sfdx force:source:retrieve -m ExpressionSetObjectAlias Warning: We plan to deprecate this command in the future. Try using the "project retrieve start" command instead. Preparing retrieve request... Error Error (1): The specified metadata type is unsupported: [expressionsetobjectalias]
However, IC2 is able to retrieve all of that metadata without any issues in a metadata format project using the API directly instead of the CLI:
It looks like I do need to add those as XML file type extensions for metadata format projects (they’re fine in source format since they named
*-meta.xml
), but otherwise you can retrieve and work with those files until/unless the CLI is involved. I’d recommend you log this as an issue in the CLI public issue tracker. -
reporter Thanks Scott, raising bug for the Salesforce CLI team now.
-
repo owner - changed status to resolved
Resolving here as what seems to be a CLI-specific issue. Note that I did update IC2's XML metadata file type extensions to include those for the (known?) BRE types for inclusion in the next build.
-
reporter Issue raised on Salesforce CLI GitHub project - https://github.com/forcedotcom/cli/issues/2589
- Log in to comment
Here is the Meta retrieve logs