Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve new Expression set version using CLI #2823

Open
svpsiva opened this issue Apr 12, 2024 · 6 comments
Open

Unable to retrieve new Expression set version using CLI #2823

svpsiva opened this issue Apr 12, 2024 · 6 comments
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated

Comments

@svpsiva
Copy link

svpsiva commented Apr 12, 2024

Note
Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

Steps To Reproduce

  1. Create a new Expression set in Scratch org, activate it
  2. Retrieve the ExpressionSetVersionDefinition to local project
  3. Create a new version of Expression set in the scratch org
  4. Preview the changes
    sf project retrieve preview -o MyScratchOrg

No conflicts found.
No files will be deleted.
Will Retrieve [3] files.
Type Fullname Path
─────────────────────────────── ────────────────────── ────
DecisionMatrixDefinitionVersion Fixed_deposit_rates_V1
ExpressionSetDefinitionVersion FD_calculator_V1
ExpressionSetDefinitionVersion FD_calculator_V1CLONE0

  1. Try to retrieve the latest changes:
    sf project retrieve start -o MyScratchOrg

Retrieving v59.0 metadata from test-sc0yaqj7y2ml@example.com using the v60.0 SOAP API
Preparing retrieve request... Succeeded
› Warning: Nothing retrieved

Expected result

SFDX cli should have retrieved the new version of expression set.

Actual result

Nothing was retrieved

@svpsiva svpsiva added the investigating We're actively investigating this issue label Apr 12, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

Copy link

Hello @svpsiva 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Apr 12, 2024
@svpsiva
Copy link
Author

svpsiva commented Apr 12, 2024

{
"architecture": "darwin-arm64",
"cliVersion": "@salesforce/cli/2.36.8",
"nodeVersion": "node-v20.11.1",
"osVersion": "Darwin 23.4.0",
"rootPath": "/Users/ssaripalli/.local/share/sf/client/2.36.8-fa01960",
"shell": "zsh",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.0.13 (core)",
"@oclif/plugin-commands 3.2.2 (core)",
"@oclif/plugin-help 6.0.20 (core)",
"@oclif/plugin-not-found 3.1.1 (core)",
"@oclif/plugin-plugins 5.0.5 (core)",
"@oclif/plugin-search 1.0.20 (core)",
"@oclif/plugin-update 4.2.3 (core)",
"@oclif/plugin-version 2.0.16 (core)",
"@oclif/plugin-warn-if-update-available 3.0.15 (core)",
"@oclif/plugin-which 3.1.7 (core)",
"@salesforce/cli 2.36.8 (core)",
"apex 3.1.3 (core)",
"auth 3.5.1 (core)",
"data 3.2.4 (core)",
"deploy-retrieve 3.5.3 (core)",
"info 3.1.2 (core)",
"limits 3.2.1 (core)",
"marketplace 1.1.0 (core)",
"org 3.6.3 (core)",
"packaging 2.3.0 (core)",
"schema 3.2.0 (core)",
"settings 2.1.2 (core)",
"signups 2.1.2 (user)",
"sobject 1.2.1 (core)",
"source 3.2.2 (core)",
"telemetry 3.1.17 (core)",
"templates 56.1.0 (core)",
"trust 3.5.1 (core)",
"user 3.4.3 (core)"
]
}

@github-actions github-actions bot added investigating We're actively investigating this issue validated Version information for this issue has been validated and removed more information required Issue requires more information or a response from the customer labels Apr 12, 2024
@WillieRuemmele
Copy link
Member

I was able to reproduce this
with project-scratch-def.json of

{
    "orgName": "Sample Org",
    "edition": "developer",
    "features": [
        "ADVANCEDDECISIONTABLE"
    ]
}

app launcher -> expression sets -> create -> save -> activate

 ➜  sf project retrieve start                 
Retrieving v60.0 metadata from test-vxlzforpe1qr@example.com using the v60.0 SOAP API
Preparing retrieve request... Succeeded

Retrieved Source
======================================================================================================================================================
| State   Name                            Type                    Path                                                                                 
| ─────── ─────────────────────────────── ─────────────────────── ──────────────────────────────────────────────────────────────────────────────────── 
| Created test                            ExpressionSetDefinition force-app/main/default/expressionSetDefinition/test.expressionSetDefinition-meta.xml 
| Created ExpressionSetConsole_UtilityBar FlexiPage               force-app/main/default/flexipages/ExpressionSetConsole_UtilityBar.flexipage-meta.xml 
---
Increment the version by 1 in the org
---
➜  dreamhouse-lwc git:(main) ✗  hub:(DevHub) scratch:(test-vxlzforpe1qr@example.com)
 ➜  sf project retrieve preview                   

No conflicts found.

No files will be deleted.

Will Retrieve [4] files.
 Type                           Fullname                  Path 
 ────────────────────────────── ───────────────────────── ──── 
 ExpressionSetDefinitionVersion test_V1                        
 ExpressionSetDefinitionVersion test_V1CLONE0                  
 ExpressionSetDefinitionVersion test_V1CLONE0CLONE0            
 ExpressionSetDefinitionVersion test_V1CLONE0CLONE0CLONE0      

No files were ignored. Update your .forceignore file if you want to ignore certain files.
➜  dreamhouse-lwc git:(main) ✗  hub:(DevHub) scratch:(test-vxlzforpe1qr@example.com)
 ➜  sf project retrieve start                 
Retrieving v60.0 metadata from test-vxlzforpe1qr@example.com using the v60.0 SOAP API
Preparing retrieve request... Succeeded
 ›   Warning: Nothing retrieved

@WillieRuemmele WillieRuemmele added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Apr 12, 2024
Copy link

git2gus bot commented Apr 12, 2024

This issue has been linked to a new work item: W-15489723

@tomekwardega
Copy link

tomekwardega commented Apr 30, 2024

This issue applies to ExpressionSetDefinitionVersion and DecisionMatrixDefinitionVersion, both for retrieve and deploy using Salesforce CLI - tested with the latest version 2.38.7. The following example manifest file does not retrieve from org, and does not deploy to org:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>DAWSON_Case_Type_Mapping_V5</members>
        <members>DAWSON_Matter_Queue_Assignment_V1</members>
        <members>DAWSON_Event_Code_Mapping_V3</members>
        <members>DAWSON_Trial_Location_City_Mapping_V2</members>
        <name>DecisionMatrixDefinitionVersion</name>
    </types>
    <types>
        <members>OCC_Dawson_Contact_ES_V1</members>
        <members>DAWSONApplicableStagingMatter_V1CLONE1</members>
        <members>OCC_Dawson_Matter_ES_V1CLONE0</members>
        <members>OCC_Dawson_Legal_File_ES_V1</members>
        <members>OCC_Dawson_Practitioner_ES_V1</members>
        <name>ExpressionSetDefinitionVersion</name>
    </types>
	<version>60.0</version>
</Package>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

3 participants