Analytics builder model becoming inactive - runtime error

Hello,

a model is showing the following error when becoming inactive

what could be the reason?

checking the logs:
[correlator] 2025-07-02 17:20:10.303 ERROR [140633407727296] - apama.analyticsbuilder.framework.ModelManager [1571] Model “Worker inactivity” with PRODUCTION mode has failed with an error: Block “-22” of type “apama.analyticskit.blocks.core**.Or**”: Runtime error: Internal error occurred. Details: UnmatchedTypeException - switch statement did not match : empty any value

does it mean that the OR object inputs do not match? it seems that one of the inputs of the “OR” is a “delay” object which can have an input value “any”

Yes, for the “or” block you must ensure that all inputs have the same type. The “delay” block may be the problem but no necessarily: its output is defined by the actual type of the input, so you have to check what comes in as the input to determine if the type is different than the other inputs of the “or” block.

the input of delay was a pulse and the other 2 inputs going into this OR were also a pulse but this was causing an issue, I had to put the delay after the OR and now the model is not going inactive and is stable

1 Like

Would be interesting if you could share the model, offline if necessary.

I just tested with multiple pulse inputs into an “or” and one coming from a “delay” block it works. If I change the type of the signal going into the “delay” block to boolean, I get an error which explicitly mentions boolean being an incompatible type. So slightly different error message than you ge.

which APAMA version is yours? maybe we have different versions. Mine is:

“label”: “apama-subscription-mgr”,
“version”: “26.113.0”

my version is: 26.135.0.