Resolve issue where Scorecard Wizard Produces error "Exception in thread "main" Traceback (innermost last):" in Spectrum/Portrait Miner

Product Feature: Portrait Miner 6.2A - Scorecard Wizard


When you run Scorecard Wizard the operation abruptly stops.  Under the errors tab the stack trace below is shown:

Exception in thread "main" Traceback (innermost last):
  File "E:\tfs\QS\internal\ext\projects\qsautomodel\", line 0, in main





 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(

 at java.lang.reflect.Method.invoke(

 at org.python.core.PyReflectedFunction.__call__(

 at org.python.core.PyMethod.__call__(

 at org.python.core.PyObject.__call__(

 at org.python.core.PyInstance.invoke(

 at scorecardwizard$_PyInner.main$32(

 at scorecardwizard$_PyInner.call_function(



 at org.python.core.imp.createFromCode(

 at org.python.core.Py.runMain(

 at scorecardwizard.main(

java.lang.NullPointerException: java.lang.NullPointerException



The error is a result of a bug that only occurs when the binning hierarchy of a categorical variable contains only the base categories and no other levels.


UPDATED: August 18, 2017
The solution is to check the binnings of all categorical variables in the binning editor and make sure that they have at least one additional level beyond the base category (as pictured below).  If needed click the new button under hierarchy to add "unnamed node" to the hierarchy.

Binning editor showing hierarchy