com.pega.pegarules.pub.runtime.IndeterminateConditionalException.

Root exception

Class: com.pega.pegarules.pub.runtime.IndeterminateConditionalException
Message: Unable to load data page D_ReservationBasicDetails. Required parameters : ReservationID. cannot be blank

Pega Rules present in stack trace

model.ra_model_pydefault_*.whenCondition_5
model.ra_model_pydefault_*.when_3
activity.ra_action_createworkpage_*.step11
activity.ra_action_new_*.step7
activity.ra_action_newfromflow_*.step15
activity.ra_action_douiaction_*.step32
Caused By: com.pega.pegarules.pub.runtime.IndeterminateConditionalException
	at com.pega.pegarules.priv.FUAUtil.activityPreTranIndeterminateConditionalCheck(FUAUtil.java:504)
	at com.pegarules.generated.model.ra_model_pydefault_*.whenCondition_5(ra_model_pydefault_*.java:*)
	at com.pegarules.generated.model.ra_model_pydefault_*.when_3(ra_model_pydefault_*.java:*)
	at com.pegarules.generated.model.ra_model_pydefault_*.perform(ra_model_pydefault_*.java:*)
	at com.pega.platform.executionengine.vtable.containers.internal.LegacyModelAspectInvokableRuleContainer.invoke(LegacyModelAspectInvokableRuleContainer.java:67)
	at com.pega.platform.executionengine.vtable.internal.RuleDispatcherImpl.invokeModel(RuleDispatcherImpl.java:165)
	at com.pega.pegarules.session.internal.mgmt.Executable.doDataTransform(Executable.java:4667)
	at com.pega.pegarules.session.internal.mgmt.Executable.applyModel(Executable.java:4645)
	at com.pegarules.generated.activity.ra_action_createworkpage_*.step11_circum0(ra_action_createworkpage_*.java:*)
	at com.pegarules.generated.activity.ra_action_createworkpage_*.perform(ra_action_createworkpage_*.java:*)
	at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2874)
	at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11511)
	at com.pegarules.generated.activity.ra_action_new_*.step7_circum0(ra_action_new_*.java:*)
	at com.pegarules.generated.activity.ra_action_new_*.perform(ra_action_new_*.java:*)
	at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2874)
	at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11511)
	at com.pegarules.generated.activity.ra_action_newfromflow_*.step15_circum0(ra_action_newfromflow_*.java:*)
	at com.pegarules.generated.activity.ra_action_newfromflow_*.perform(ra_action_newfromflow_*.java:*)
	at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2874)
	at com.pegarules.generated.activity.ra_action_douiaction_*.step32_circum0(ra_action_douiaction_*.java:*)
	at com.pegarules.generated.activity.ra_action_douiaction_*.perform(ra_action_douiaction_*.java:*)
	at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2874)
	at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:653)
	at (:)

This exception is occurring only in production not in lower environments. Unable to identify the scenario where the exception is occurring and unable to find the class of rules in the stack trace.

Please help me in resolving this exception.

@HarishT16760419 It appears you are creating a new work item on click of a button or some other action. The pyDefault data transform in the class of the new workitem is calling a when rule which references D_ReservationBasicDetails. In the when rule you may have called D_ReservationBasicDetails as

D_ReservationBasicDetails[ReservationID: pyWorkPage.ReservationID]

Since, the new work item is not running in pyWorkPage context, you may be getting this error.

@AbikashSharma Thanks for the update. In the when condition I have “D_ReservationBasicDetails[ReservationID:Param.ReservationID].pyHTTPResponseCode!=200” Can you provide possible solution for this issue?

@HarishT16760419 First of all, you should not call D_ReservationBasicDetails if its mandatory parameter( i.e ReservationID) is blank.

If ReservationID is blank, then you can throw another error like " ID couldnot be generated".
If ReservationID is generated but somehow not set in the param.ReservationID, then you need to debug.