-
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
Error when trying to retrieve CustomObjectTranslation metadata: "Metadata API request failed: Component conversion failed: Unexpected child metadata ..." #1262
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. |
That sounds like the same issue as this and is fixed in |
Sounds good. I'll take a look once it's in GA and verify that the issue is in fact fixed. When I encounter what seems to be a bug with CLI-based deployment/retrieval/etc.--and of course I've verified that it occurs in the latest-and-greatest--I always try to file issues here accordingly. Otherwise these things come back to haunt me when some IC2 user hits the same bug and, because IC2 provides a façade atop the CLI, I end up taking front-line support. |
This issue is still happening for me today while on sfdx-cli/7.125.0. Cannot Retrieve, and for some reason cannot deploy (even when not deploying Custom Object Translations). I just tried to deploy a package.xml that contains only apex, with no references to translations, and it fails with Unexpected child metadata [\force-app\main\default\objectTranslations\managedNamespace__Account_Tag_Segment_Trigger__c-en_US\managedNamespace__Account__c.fieldTranslation-meta.xml] found for parent type [CustomObjectTranslation] I had to delete my entire objectTranslations folder in my local repo to get around this and deploy anything today. |
@MorganMarchese are you able to reproduce the issue with this repo on your machine? Also, can you run |
@cristiand391 - I get the same error below is the requested detail. I updated to latest cli too, still no luck. { |
WORKAROUND: Just create a OBJECT_NAME.objectTranslation-meta.xml in the folder that is causing problem. Example: The current folder structure: A desired folder structure: After creating the main obj Translation file, SFDX behaves as expected. Hope somebody will benefit from this. |
I am not able to reproduce this. Here are the steps I'm using.
Result: CustomFieldTranslation retrieved to force-app/main/default/objectTranslations/Opportunity-es/advent__c.fieldTranslation-meta.xml Also tried: @SCWells72 - are you able to reproduce this anymore? |
@shetzel I´m still having the same issue today:
I´m using a package.xml with all the CustomObject included and using the wildcard * in the CustomObjectTranslation component (I need to retrieve all the components in the org). And it is my system configuration: EDIT: this issue is just with one managed-package component (component efl__EFL_Child_Objects_List__c from the managed package Enhanced Files List). If I remove the component of the list of CustomObject elements, no issue is raised. If the object is in the list, a CustomObjectTranslation file is created during the retrieve and the error raises. The main problem is that I can´t remove the object name because we have to retrieve all the custom objects in the org using the wildcard (*) and, in that case, the error always raises |
The fix is in the latest CLI release published today. sfdx version 7.133.0 |
I have updated from 7.92.0-88320113e7 to 7.133.0-cddd46d and I'm still getting this error. I have an item name "Contract-pt_BR.objectTranslation" in objectTranslations folder and I can upload/deploy it to ORG. But when I insert this code in package XML and try to retrive it....
it says: Unexpected child metadata [/force-app/main/default/objectTranslations/Contract-pt_BR/contract_contact_role.fieldTranslation-meta.xml] found for parent type [CustomObjectTranslation] and if I open "Contract-pt_BR.objectTranslation" and try to retrieve directly...it removes from the XML file all fields that I had defined before |
@oalexandrino - what's the exact command are you using to retrieve? Do you have a repo that we can use to reproduce this? What are your plugins? (sfdx plugins --core) |
Having the same issue in sfdx-cli/7.134.0 Unexpected child metadata [/force-app/main/default/objectTranslations/CampaignMember-de/et4ae5__Activity__c.fieldTranslation-meta.xml] found for parent type [CustomObjectTranslation] |
Hello guys, I was having the same issue: Unexpected child metadata [\force-app\main\default\objectTranslations\OpportunityLineItem-pt_BR\sales_price_opportunitylineitem.fieldTranslation-meta.xml] found for parent type [CustomObjectTranslation] But i've found a work around here: Now I just add a .xml like this: \force-app\main\default\objectTranslations\OpportunityLineItem-pt_BR\OpportunityLineItem-pt_BR.objectTranslation-meta.xml Whenever the retrieve fails, I create this file whichever the branch I'm working on and I'm able to retrieve again. I hope it helps. |
Same issue here using 7.138 on node12.22.5 EDIT: This is ran against a Japanese Org with quite a bit of metadata if that helps and loads of translations to english EDIT2: Deleting Custom Object Translations folder at least lets me download the Custom Objects, but there is no way to get the translations out of the org using sfdx |
Do any of you who are using CLI versions later than 7.133.0 have a repo we can use and reproducible steps? What is the exact command you're using to retrieve? What are your plugins? The test we have for this exact usecase is passing so we'd love to know how it differs from what you're doing. |
Starting SFDX: Retrieve Source from Org Metadata API request failed: Component conversion failed: FILE_ENDED sfdx plugins --core |
@SurDevOps that looks like a different error, could you please open a new issue with repro steps? Thanks! |
Hi, folks. I ran into this today while doing some testing against NPSP. Basically after successfully pushing the latest NPSP metadata into a scratch org, I tried to retrieve the org metadata for comparison in IC2. That action actually creates a temp dir into which the retrieved files should be placed, and a
package.xml
file that frames the metadata requested for retrieval, then runssfdx force:source:retrieve -x /path/to/package.xml
with the temp dir as the CLI process' working directory. That's only important because after some troubleshooting to characterize the issue, it seems that this problem specifically occurs when trying to retrieveCustomObjectTranslation
metadata for a translation that includes childCustomFieldTranslation
metadata when there's no existing local copy of the same. I was then able to reproduce this behavior without needing a temp directory by just removing the local copies of the files being retrieved.Here's the command being executed and the specific error for reference:
and the
package.xml
file being used for this retrieval is just:My guess is that you could reproduce this pretty easily against any org populated with
CustomObjectTranslation
/CustomFieldTranslation
metadata without having to set up NPSP locally.Oh, and this is all against the latest-and-greatest at the time I'm submitting this bug,
sfdx-cli/7.124.0 win32-x64 node-v14.18.1
.Let me know if you need any other info to help reproduce this.
The text was updated successfully, but these errors were encountered: