parallel email approval steps report error

in two parallel email approval steps

one of the flow (2nd flow) always report error at activity Work-.CorrCreate step 22, then email send out failure. 1st flow send email normally

// Create an embedded page of the correct class that will contain the address
myStepPage.getProperty(“.pyAddresses”).add(tools.findPage(“CorrTemplate”).getString(“pyCorrType”), tools.findPage(“CorrType”).getString(“pyAddressClass”));
try
{
// Generate the HTML body of the correspondence and set it as pyBody
StringMap params = new HashStringMap();
params.putString(“pxObjClass”,“Rule-Obj-Corr”);
params.putString(“pyStreamName”, tools.getParamValue(“CorrName”));
params.putString(“pyCorrType”, tools.findPage(“CorrTemplate”).getString(“pyCorrType”));
String getStreamResults = tools.getStream(params, tools.getPrimaryPage());
myStepPage.getProperty(“.pyBody”).setValue(getStreamResults);
}
catch (Error e)
{
errMessage = "Error obtaining html stream: " + e.getMessage();
}

error msg

Section ‘EmailActions’ execution error on page ‘pyWorkPage’ of class ‘CPA-GBS-CMS-Work-PPL-OutsideEmployment’. : null

any idea this is?

@MaxonL16591286

caused by pyCascadingGetApproval flow name change

it will be changed to pyCascadingGetApproval_1 / _2 … for 2nd / 3rd … flow in parallel flows

and, in one of our customized email template, we use flowname.equals(“pyCascadingGetApproval”) in JSP

now we update it to if(flowname.startsWith(“pyCascadingGetApproval”)) and problem solved.