Loading

OmniStudio FlexCard Shows Custom Label Syntax After Deployment

Udgivelsesdato: Oct 14, 2026
Beskrivelse

Issue

You build a multilingual OmniStudio FlexCard and add custom label references to supported element fields (such as Field labels and placeholders, Text elements, and Action labels), using the syntax {Label.Custom_Label_Name}. In the source org (for example, a development org), the FlexCard preview shows the translated label values correctly.

After you deploy the same FlexCard to another org (for example, a test or production org), the FlexCard displays the custom label syntax instead of the translated values. This can happen even when the custom labels appear to exist in the target org.

Symptoms

  • The FlexCard displays text such as {Label.Custom_Label_Name} instead of the label value.
  • The FlexCard works as expected in the source org but not in the org you deployed it to.
  • When a referenced label is missing from the org, all label references on the FlexCard show their names, not only the missing one.
  • The issue can also appear in the same org after you edit a custom label's value or translation.

Root Cause

FlexCards cache custom label data. FlexCards, custom labels, and profile data load from the VlocityMetadata partition of the Platform Cache when the card is active and viewed from a record page or an Experience Cloud site page. The FlexCard displays the custom label names instead of their values in either of these cases:

  • A label is missing in the target org. If even one custom label that the FlexCard references does not exist in the org, the FlexCard displays the names of all its labels, not just the missing one.
  • The cached label data is stale. If you create, change, or edit a custom label (its value, translation, and so on) after the cache is built, the FlexCard can keep using the old cached data until you clear the cache.
Løsning

Work through these checks in order. After each fix, test the FlexCard again.

Step 1: Confirm that every custom label exists in the target org

  1. List every custom label that the FlexCard references in its {Label.…} syntax, including labels on actions and on every element.
  2. In the target org, from Setup, enter Custom Labels in the Quick Find box, and then select Custom Labels. Confirm that each custom label exists and that its name matches the reference on the FlexCard.
  3. If any label is missing, create or deploy it to the target org.
  4. If users need translated values, also confirm that the translations for each language exist in the target org.

If all labels exist, continue to Step 2.

Step 2: Clear the custom label cache

Use the option that matches your setup. If one option does not resolve the issue, try the next.

Option A — Clear the cache from Vlocity Cards

Note: This option is documented for OmniStudio for Managed Packages.

  1. Open the Vlocity Cards tab.
  2. Click Cache Settings.
  3. Under Platform Org Cache, select the Custom Labels checkbox. To also clear other cached card data, select one or more of the other Platform Org Cache checkboxes (Layouts, Cards, Templates).
  4. Click Clear.

Option B — Empty the browser cache

  1. On a page in OmniStudio, right-click and select Inspect to open the browser developer tools.
  2. Right Click the browser Refresh button next to the URL.
  3. Select Empty Cache and Hard Reload.

Option C — Clear the Platform Cache

  1. From Setup, in the Quick Find box, enter Platform Cache.
  2. Clear the cache from the Platform Cache page.

Step 3: Verify the fix

  1. Reload the page that contains the FlexCard.
  2. Confirm that the FlexCard shows the label values instead of the {Label.…} syntax.
  3. If the FlexCard supports multiple languages, view it as a user with a different language and confirm that it shows the translated values. Translated values require multi-language support to be enabled on the FlexCard.

If the FlexCard still shows the label names after you complete all steps, contact Salesforce Support. Include the FlexCard name, the list of custom labels it uses, and the steps you already tried. 

Vidensartikelnummer

000390659

 
Indlæser
Salesforce Help | Article