-
Notifications
You must be signed in to change notification settings - Fork 78
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
sfdx force:source:retrieve is adding fields with the same name as the object at the top level of the object folder. #638
Comments
This should be fixed with the patch release this Thursday. If you provide example contents of the manifest I can verify the fixes. I created a CustomObject, field, and record type of "MyFoo" and retrieved using a manifest that only contained the field (usecase 1) and just the custom object (usecase 2) and it worked as expected. |
Hi @shetzel! I've just experienced this error. I've create a reproduction on github: Hope this helps! |
Hi @shetzel As you can see on the second run, the MyFoo__c.field-meta.xml is created in the objects folder not the fields folder. SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.80.0-b979aae708 darwin-x64 node-v12.18.3 SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core) @oclif/plugin-autocomplete 0.1.5 (core) OS and version: |
@HamishBuckley @the-last-byte - Yes, I'm seeing now too. Someone is actively working on the fix. Thanks for the extra info! |
This issue has been linked to a new work item: W-9300223 |
Summary
sfdx force:source:retrieve using manifest is changing the structure when components (eg. fields or record types) have the same name as the object.
Steps To Reproduce:
sfdx force:source:retrieve --targetusername <org-alias> --manifest manifest/package.xml
Expected result
Objects should have
fields
andrecordTypes
folders with the component in the appropriate folderActual result
Components that have the same name as the object are added to the top level of the object folder.
Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
OS and version:
The text was updated successfully, but these errors were encountered: