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

Compilation error on saving data transform post migration



Compilation error occurs on saving a data transform. This occurs after migration of data transform from Pega 7.1.7 to Pega 7.4.

Error Messages


Test compilation failed: ----------

The method interpretBoolean(String) in the type PublicAPI is not applicable for the arguments (boolean)
1 problem (1 error)
Compile failed.

Steps to Reproduce

  1. Create a data transform with the below specifications:

    Action: Set

    Target: pyWorkPage.Channel

    Relation: equal to

    Source:  @java("tools.findPage(\"TempInputAccelPage\").getProperty(\"Channel\").getMessageCount()>0") ? "" : pyWorkPage.Channel

  2. Save the data transform 

Root Cause

The expression language and the interpreted language indicate a conversion from Text to Boolean. Hence, the generated code invokes tools.interpretBoolean(). However, the call is invalid since the parameter going into interpretBoolean is a Boolean and not a string. In the expression language code generation, it is treated as a special case and call to interpretBoolean() must not be generated.


Apply HFix-50041.


Published April 5, 2019 - Updated December 2, 2021

Was this useful?

0% 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