2

I am receiving the below errro while validating the components in staging

Validate deployment on sandbox ERROR running force:source:deploy: Unexpected child metadata [/home/circleci/ci_app/force-app/main/default/objectTranslations/Account-en_US/type_account.fieldTranslation-meta.xml] found for parent type [CustomObjectTranslation]

In case anyone has faced a similar issue, could you please share how could this be resolved

4
  • At a glance, it looks like you're including a translation for an Account field (type_account) without including the type_account custom field in your deployment
    – nbrown
    Commented Oct 13, 2022 at 17:25
  • I have exactly the same error on the same field, interested in the solution... Commented Oct 13, 2022 at 22:36
  • Same error for a custom field of a custom object, but intermittent.
    – markgarg
    Commented Oct 14, 2022 at 16:48
  • This happens when you want to deploy the field translation but are missing the metadata for the actual object. See the answer below for a solution.
    – Semmel
    Commented Oct 16 at 12:06

1 Answer 1

4

Doing the below resolved my issue:

The xxx.objectTransalation-meta.xml file was not present due to which it was throwing an error. Create a file give the exact name(Transalation Object Name) to it. This should resolve the error

Please refer to below snapshot

https://i.sstatic.net/At8VZ.png

1
  • I honestly have no idea how I could miss that but I was missing the actual object translation files, just a you described. Thanks!
    – Semmel
    Commented Oct 16 at 12:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .