forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
940 stars 397 forks source link

Unable to Update CustomField Metadata. SFDX: Deploy Providing False Success Message #5612

Closed achalon-salesforce closed 1 week ago

achalon-salesforce commented 1 month ago

Summary

Unable to modify field metadata. When using Salesforce CLI GUI provided by the extension pack and I click "SFDX: Deploy this source to org" either from within a modified and saved CustomField xml file or the package.xml (With custom fields included) a successful deployment will go through but none of the changes will be displayed in Salesforce.

Steps To Reproduce:

  1. Create a package.xml which includes a CustomField (Standard field or custom field, not a system field).
  2. Retrieve this field by right-clicking the file and selecting "SFDX: Retrieve this source from org"
  3. Go to the CustomField file, modify it (change the value between or something), and save changes
  4. Go to the package.xml (or stay on the CustomField file), right-click and select "SFDX: Deploy this source to org"
  5. Login to Salesforce Org to validate field metadata changes

Expected result

The changes will be reflected from the Object Manager in setup.

Actual result

The changes are not reflected from the Object Manager in setup.

Additional information

Salesforce Extension Version in VS Code: v60.13.0

Salesforce CLI Version: 2.42.6

OS and version: Sonoma 14.5

VS Code version: 1.85.1

Most recent version of the extensions where this was working: no idea

achalon-salesforce commented 1 month ago

Feel free to ping me on slack for more info as well!

CristiCanizales commented 1 month ago

Hi @achalon-salesforce, thanks for creating the new issue. I tried to reproduce it but it's working for me. Would you mind sending me a recording of what you see? It can be through slack if you prefer. Thanks in advance!

github-actions[bot] commented 1 month ago

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.

achalon-salesforce commented 1 month ago

Slacking you now :)

github-actions[bot] commented 1 month ago

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.

sahilgoyal28799 commented 3 weeks ago

Hello @CristiCanizales @achalon-salesforce ,

We are able to reproduce the issue with the below, We are unable to deploy a label change to a custom field via the latest vs code extension - v60.15.0

The label is changing on the first deploy attempt but not being changed on subsequent deploy attempts, Please reopen the issue and let me know If there is anything needed from my end,

Below is XML for the field:

<?xml version="1.0" encoding="UTF-8"?>

NumberofLocations__c false 16 false 2 Number false image

Thank you

diyer commented 1 week ago

@achalon-salesforce @sahilgoyal28799 Can you please verify if this issue has been fixed for you by using our latest version of Salesforce extensions?

diyer commented 1 week ago

Fix has been released in version 61.2.1