VERIFIED SOLUTION i

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

Issue

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\scorecardwizard.py", line 0, in main
java.lang.NullPointerException

 at com.quadstone.tools.middleware.jqsapi.binning.QSCAT_Node.mergeCatsInternal(QSCAT_Node.java:867)

 at com.quadstone.tools.middleware.jqsapi.binning.QSCAT_Node.mergeCats(QSCAT_Node.java:609)

 at com.quadstone.tools.middleware.jqsapi.binning.QSCAT_Node.mergeCats(QSCAT_Node.java:602)

 at com.quadstone.tools.middleware.jqsapi.binning.CategoricalBinning.mergeCats(CategoricalBinning.java:250)

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

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

 at java.lang.reflect.Method.invoke(Method.java:597)

 at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)

 at org.python.core.PyMethod.__call__(PyMethod.java)

 at org.python.core.PyObject.__call__(PyObject.java)

 at org.python.core.PyInstance.invoke(PyInstance.java)

 at scorecardwizard$_PyInner.main$32(scorecardwizard.java:1313)

 at scorecardwizard$_PyInner.call_function(scorecardwizard.java:611)

 at org.python.core.PyTableCode.call(PyTableCode.java)

 at org.python.core.PyCode.call(PyCode.java)

 at org.python.core.imp.createFromCode(imp.java)

 at org.python.core.Py.runMain(Py.java)

 at scorecardwizard.main(scorecardwizard.java:1717)


java.lang.NullPointerException: java.lang.NullPointerException


 

Cause

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.

Resolution

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




 
Environment Details
Product Feature: Portrait Miner 6.2A - Scorecard Wizard