The textRuleScore.applyCategory action might fail with "ERROR: The action failed to execute... Connection failed… Session reconnect failed…"


textRuleScore.applyCategory might report a failed to execute error followed by repeated session disconnect messages. This issue occurs when you specify matchOut= and a single document yields a very large number of matches (for example, tens of thousands). In this scenario, the action can fail with CAS inter-node communication errors and session reconnect failures.

Here is an example log snippet:

proc cas;

  builtins.loadActionSet / actionSet="textRuleScore";

  textRuleScore.applyCategory /

    table  ={caslib="mycaslib" name="INPUT_DATA"}

    model  ={caslib="mycaslib" name="CATEGORY_MODEL"}

    text   ="TEXT_COL"

    docId  ="DOC_ID"

    casOut ={caslib="mylib" name="SCORED_OUT" replace=TRUE}

    matchOut={caslib="mylib" name="MATCHES_OUT" replace=TRUE};

run;

{actionset=textRuleScore}

ERROR: The action failed to execute

ERROR: Execution halted

ERROR: Connection failed. Server returned: Session reconnect failed: Could not find the specified session.

Note that the Connection failed…Session reconnect failed… string might repeat multiple times.

There is no workaround for this issue.