Skip to content
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

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 #16

Open
FabienTaillon opened this issue Aug 9, 2023 · 2 comments

Comments

@FabienTaillon
Copy link
Member

FabienTaillon commented Aug 9, 2023

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:

  1. Clone the repo here: https://github.com/FabienTaillon/issue-prompt-translation
  2. Create a Scratch Org
  3. Push the metadata from the project to the Scratch Org
  4. Install a Managed Package with a Report Type, for instance Squivr (sf package install -p 04t8V000000ksxyQAA -w 60)
  5. Go to Setup/Translation Language Settings
  6. Add French to your own user
  7. Go to Setup/Translate
  8. Look for French/Custom Field/Account/Field Label
  9. Translate the field to Mon Champ
  10. Pull everything
  11. Recreate a new Scratch Org
  12. Push the metadata from the project to the new Scratch Org
  13. 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.

@FabienTaillon
Copy link
Member Author

Case #45113705 created.

@FabienTaillon
Copy link
Member Author

Related Known Issue: https://issues.salesforce.com/issue/a028c00000gAwb8AAC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant