Describe the bug
When a field translation is done and that a Managed Packaged with Report Types is installed, pulled metadata includes Report Type name without namespace, leading to failing deployment
To Reproduce
Steps to reproduce the behavior:
- Clone the repo here:
https://github.com/FabienTaillon/issue-prompt-translation
- Create a Scratch Org
- Push the metadata from the project to the Scratch Org
- Install a Managed Package with a Report Type, for instance Squivr (
sf package install -p 04t8V000000ksxyQAA -w 60)
- Go to
Setup/Translation Language Settings
- Add French to your own user
- Go to
Setup/Translate
- Look for
French/Custom Field/Account/Field Label
- Translate the field to
Mon Champ
- Pull everything
- Recreate a new Scratch Org
- Push the metadata from the project to the new Scratch Org
- Push fails with a prompt error:
In field: name - no ReportType named Contacts_with_Relationships found
This is because in the translation metadata (force-app/main/default/translations/fr.translation-meta.xml), the metadata name retrieved is Contacts_with_Relationships instead of squivr__Contacts_with_Relationships. The name used is not including the namespace, which makes the deployment fail. Changing the name in the metadata manually fixes the issues (but comes back everytime we update a translation and pull changes).
Expected behavior
Translation metadata (force-app/main/default/translations/fr.translation-meta.xml) should be retrieved with the ReportType including the namespace.
Describe the bug
When a field translation is done and that a Managed Packaged with Report Types is installed, pulled metadata includes Report Type name without namespace, leading to failing deployment
To Reproduce
Steps to reproduce the behavior:
https://github.com/FabienTaillon/issue-prompt-translationsf package install -p 04t8V000000ksxyQAA -w 60)Setup/Translation Language SettingsSetup/TranslateFrench/Custom Field/Account/Field LabelMon ChampIn field: name - no ReportType named Contacts_with_Relationships foundThis is because in the translation metadata (
force-app/main/default/translations/fr.translation-meta.xml), the metadata name retrieved isContacts_with_Relationshipsinstead ofsquivr__Contacts_with_Relationships. The name used is not including the namespace, which makes the deployment fail. Changing the name in the metadata manually fixes the issues (but comes back everytime we update a translation and pull changes).Expected behavior
Translation metadata (
force-app/main/default/translations/fr.translation-meta.xml) should be retrieved with the ReportType including the namespace.