Hi Monika,
I think you are trying to parse an empty value into an integer attribute:
Caused by: com.mendix.modules.microflowengine.MicroflowException: Failed to evaluate expression, error occurred on line 1, character 1
parseInteger($Sub)
^
at ThreatRiskAnalysis.ACT_ThreatScenarioIDGen.nested.8c747793-5c11-4faa-9367-7fb4167adf1a [0 of 6] (CreateOrChangeVariable : 'Create Integer/Long variable')
at ThreatRiskAnalysis.ACT_ThreatScenarioIDGen ( : '')
at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[{}],"type":"EventExtendedAction"}
at ThreatRiskAnalysis.ACT_CreateThreat (Commit : 'Commit 'ThreatScenario' ')
Advanced stacktrace:
at com.mendix.languages.mxexpressions.MxExpressionImpl.evaluate(MxExpressionImpl.scala:32)
Caused by: com.mendix.languages.expressions.ExpressionException: For input string: ""
at com.mendix.languages.expressions.Expr.evaluate(Expr.scala:16)
Caused by: java.lang.NumberFormatException: For input string: ""
I would try to validate whether what you are trying to parse into an integer is filled, and numeric only.
Thanks a lot – spot on!