Question

Cap Gemini
DE
Last activity: 30 Apr 2025 4:00 EDT
Data Transform throws a Runtime exception when checked-in, works when checked-out
Hi,
I have an Activity ACT1 on Work class, which calls a Data Transform DT1, on the same context. This DT works on design time, but throws a runtime exception when running.
At some point, I realised that, when I check it out, DT1 work0, but fails when checked in. It throws a runtime exception, this is what I see in the tracer:
Failed to compile generated Java com.pegarules.generated.model.ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b: ---------- 1. ERROR in /com/pegarules/generated/model/ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b.java (at line 81) actionProlog(pz_CurrentTraceInfo,"4", "For Each Page In", null, pz_2); ^^^^ pz_2 cannot be resolved to a variable ---------- 2. ERROR in /com/pegarules/generated/model/ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b.java (at line 118) actionEpilog(pz_CurrentTraceInfo,"4", "For Each Page In", null, pz_2); ^^^^ pz_2 cannot be resolved to a variable ---------- 2 problems (2 errors) Compile failed.
This is what I see in the logs:
Hi,
I have an Activity ACT1 on Work class, which calls a Data Transform DT1, on the same context. This DT works on design time, but throws a runtime exception when running.
At some point, I realised that, when I check it out, DT1 work0, but fails when checked in. It throws a runtime exception, this is what I see in the tracer:
Failed to compile generated Java com.pegarules.generated.model.ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b: ---------- 1. ERROR in /com/pegarules/generated/model/ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b.java (at line 81) actionProlog(pz_CurrentTraceInfo,"4", "For Each Page In", null, pz_2); ^^^^ pz_2 cannot be resolved to a variable ---------- 2. ERROR in /com/pegarules/generated/model/ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b.java (at line 118) actionEpilog(pz_CurrentTraceInfo,"4", "For Each Page In", null, pz_2); ^^^^ pz_2 cannot be resolved to a variable ---------- 2 problems (2 errors) Compile failed.
This is what I see in the logs:
Failed to compile rule: /com/pegarules/generated/model/ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b.java
The rule which attempted to use a non-accessible jar during rule compilation is: "com.pegarules.generated.model.ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b". Please see error above for non-accessible jar information.
Failed to compile com.pegarules.generated.model.ra_model_checkquestionnairesoutcome_03073eb13c02a250facbf3e5a5572c8b, pzInsKey = RULE-OBJ-MODEL <Work class> CHECKQUESTIONNAIRESOUTCOME #20250425T071052.585 GMT; see class's compile log file.
FirstUseAssemblerException
I saw this error in post: https://support.pega.com/question/datatransform-not-executing-when-rule-checked
But the solution link is no longer accessible: https://community1.pega.com/support-articles/page-set-data-transform-does-not-work-when-rule-checked
The exception occurs on a For each. The properties configured on the For Each are on a separate branch, lower / more generic than the branch containing this DT1 (so being on a separate branch should not be a problem). The branch ruleset of DT1 appears higher than the branch of the property on the Ruleset list.
I am sorry, but this makes no sense.
Thanks,
Filipe