From 51ab65408a39d7937f75ea08677f2ad29a0a2af0 Mon Sep 17 00:00:00 2001 From: shaurabh-tiwari Date: Fri, 2 Jan 2026 15:28:14 +0530 Subject: [PATCH 1/3] fix: custom label error message fix --- messages/migrate.json | 1 + src/migration/customLabels.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/messages/migrate.json b/messages/migrate.json index 3c23693d..9691f4cb 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": "Error during Custom Labels migration, check if everything is configured according to the documentation 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')], }, ]; } From d1135dfb8938328ea6acdbbff2f87599a7f17945 Mon Sep 17 00:00:00 2001 From: shaurabh-tiwari Date: Thu, 8 Jan 2026 14:31:58 +0530 Subject: [PATCH 2/3] fix: updated ui message --- messages/migrate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messages/migrate.json b/messages/migrate.json index 9691f4cb..b02d2db5 100644 --- a/messages/migrate.json +++ b/messages/migrate.json @@ -232,7 +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": "Error during Custom Labels migration, check if everything is configured according to the documentation here.", + "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", From c9ccae4c09046b8eb786fda07bf62aed57729051 Mon Sep 17 00:00:00 2001 From: shaurabh-tiwari Date: Thu, 8 Jan 2026 16:22:05 +0530 Subject: [PATCH 3/3] fix: added link to the validation test --- src/utils/constants/documentRegistry.ts | 2 ++ test/utils/constants/documentRegistry.test.ts | 2 ++ 2 files changed, 4 insertions(+) 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) => {