-
Notifications
You must be signed in to change notification settings - Fork 82
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
Retrieving CustomFields causes empty CustomObject to be retrieved #2865
Comments
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. |
Hello @mdonnalley 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
This issue has been linked to a new work item: W-15727064 |
latest-rc (2.41.8) has been patched to include the fix for this |
This issue is fixed in version 2.41.8 -- enjoy! |
This issue still exists in 2.42.6 |
@shabu74, disclaimer, I'm not a maintainer and not an employee of Salesforce. Just another person who depends on these tools for their daily work. Your words come across hurtful. If that wasn't your intention I hope you can appreciate how I see them. I can personally attest to the level of care that this team has for their product. If you feel this isn't going well enough for you then please get involved and find a way to contribute. Testing, code fixes, whatever you think would help get a solution delivered faster. It is wonderful that this is an open source project and is very special that we have such direct access to the developers and team. Please be respectful, I would be very sad if this team became less available due to poor public interactions. Please remember that your words are read by humans and can have a real impact, positive or negative. |
I can confirm that it does however work correctly in version 2.35.6 on my setup |
Extremely sorry for my words @aheber. I was that much frustrated with the nightmares related to this CLI release changes. When release note says that 'fixed one', something always started to break. That led to the wastage of lot of time during our deployment. Again, I apologize for my words. I assure it won't happen again. Highly appreciated your patient and sensible reply! |
Summary
(NOTE: created from internal slack thread)
With 2.36.8 or later, I am observing that even though I am trying to retrieve a customField, the CLI fetches the Object-meta.xml file as well and its overwriting the existing Object-meta.xml file by removing all the content of it and making it blank(and even though the file exists the state of the file is always fetched as created for object-meta.xml)
Expected result
Expected
force-app/main/default/objects/Account_Plan__c/Account_Plan__c.object-meta.xml
to not be emptyActual result
force-app/main/default/objects/Account_Plan__c/Account_Plan__c.object-meta.xml
is emptySystem Information
Additional Information
Last working version was 2.35.6
Workaround: retrieve the object at the same time you're retrieving the field, or just retrieve the whole object instead of a single field
The text was updated successfully, but these errors were encountered: