diff --git a/messages/migrate.json b/messages/migrate.json index 3c23693d..b02d2db5 100644 --- a/messages/migrate.json +++ b/messages/migrate.json @@ -232,6 +232,7 @@ "startingCustomLabelMigration": "Starting Custom Labels migration", "customLabelMigrationCompleted": "Custom Labels migration completed. %s labels processed out of %s total", "errorDuringCustomLabelMigration": "Error during Custom Labels migration: %s", + "customLabelMigrationErrorMessage": "We couldn’t complete the Custom Labels migration. Check your org configuration and confirm it meets the requirements outlined here.", "callingCloneCustomLabelsAPI": "Calling clone-custom-labels API for namespace: %s", "cloneCustomLabelsAPIResponse": "Clone custom labels API response summary: %s results", "errorCallingCloneCustomLabelsAPI": "Error calling clone-custom-labels API: %s", diff --git a/src/migration/customLabels.ts b/src/migration/customLabels.ts index 1a1816c2..840dad0e 100644 --- a/src/migration/customLabels.ts +++ b/src/migration/customLabels.ts @@ -166,7 +166,7 @@ export class CustomLabelsMigrationTool extends BaseMigrationTool implements Migr name: this.getName(), results: emptyMap, records: emptyMap, // Both point to the same empty map - errors: [String(error)], + errors: [this.messages.getMessage('customLabelMigrationErrorMessage')], }, ]; } diff --git a/src/utils/constants/documentRegistry.ts b/src/utils/constants/documentRegistry.ts index 69f93fbb..5f5353fd 100644 --- a/src/utils/constants/documentRegistry.ts +++ b/src/utils/constants/documentRegistry.ts @@ -29,4 +29,6 @@ export const documentRegistry = { 'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5', manualDeploymentSteps: 'https://help.salesforce.com/s/articleView?id=xcloud.os_standard_set_up_your_environment_for_customizing_omniscript_elements.htm&type=5', + customLabelMigrationErrorMessage: + 'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_oma_prereq.htm&type=5', }; diff --git a/test/utils/constants/documentRegistry.test.ts b/test/utils/constants/documentRegistry.test.ts index cdf67c6a..fa94b40f 100644 --- a/test/utils/constants/documentRegistry.test.ts +++ b/test/utils/constants/documentRegistry.test.ts @@ -41,6 +41,7 @@ const titles = { duplicateCardNameMessage: 'Clone a Flexcard', reservedKeysFoundInPropertySet: 'Omnistudio Naming Conventions', manualDeploymentSteps: 'Set Up Your Environment to Customize Omniscript Elements', + customLabelMigrationErrorMessage: 'Omnistudio Migration Prerequisites', }; describe('DocumentRegistry', () => { @@ -126,6 +127,7 @@ describe('DocumentRegistry', () => { 'duplicateCardNameMessage', 'reservedKeysFoundInPropertySet', 'manualDeploymentSteps', + 'customLabelMigrationErrorMessage', ]; expectedKeys.forEach((key) => {