Support Article
Compilation error on saving data transform post migration
Summary
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
- 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
- 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.
Resolution
Apply HFix-50041.
Published April 5, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.