When you run a model and there is an error, the System Console prompts the error indicating that there is an exception, the object or process flow activity. When you have a big block of code, though, it is hard to debug. It would be great that instead of saying for example:
"exception: FlexScript exception: Invalid Variant type in / operation at MODEL:/Tools/ProcessFlow/NU BASE RESET/Calculate inventory at plant>variables/codeNode"
it says:
"exception: FlexScript exception: Invalid Variant type in / operation at MODEL:/Tools/ProcessFlow/NU BASE RESET/Calculate inventory at plant>variables/codeNode/line 144"