Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

getLocalizedText does not work properly



Configure an activity to Perform concatenation of getLocalizedText() of two field values. It does not work when running the activity standalone or through the agents. 

@(Pega-RULES:Utilities).getLocalizedText(Value1, pyCaption, tools) + @(Pega-RULES:Utilities).getLocalizedText(Value2, pyCaption, tools)

Error Messages

The localized values for the field value are not invoked. Instead the field value name gets printed in the log message. 

Steps to Reproduce

Configure an activity in which concatenation of getlocalizedText for two field values is done and run the activity to print the result.

Root Cause

The step page like SomePage.PageList(<LAST>) do not work with the getlocalizedtext() because the field value is checked in the dictionary with step page class.


Perform the following local-change: 

Local.FV1 = getLocalizedText(1st field value);
Local.FV2 = getLocalizedText(2nd filed value);

TempVar = Local.FV1 + Local.FV2.

Give the step page as the page in which the field values are defined and declare it in Pages & classes. 

Above local change works for single page but it does not work for Page List page.

Using the step page like SomePage.PageList(<LAST>) is not supported in PRPC 6.3 SP1 and the issue is fixed in Pega 7.2. 

Published April 13, 2016 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us