SAP Knowledge Base Article - Preview

1960194 - HANA: View refactoring failed due to error 'NullPointerException'

Symptom

When refactoring a view ( here we call it <primary veiw>, it could be an attribute view, analytic view, calculation view) on HANA studio, in the popup window, there's a prompt saying this view is used by another view ( here we call it <referential view> ). But this referential view has been deleted and can't be found in database.

Please see the screen shot below, view ANA_SALES_CUST_STATE_TESTREFACTOR has been deleted from HDB and can't be seen in Navigator anymore:

1960194.JPG

If you ignore the prompt and continue the refactoring, the following error information will popup:

Error occured during the refactoring of <view_name>java.lang.NullPointerException   
at com.sap.ndb.studio.modeler.job.type.copymodels.MoveModelsHandler.updateReferences(MoveModelsHandler.java)   
at com.sap.ndb.studio.modeler.job.type.copymodels.MoveModelsHandler.moveModels(MoveModelsHandler.java)   
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.moveModels(RefactorModelsJob.java)   
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.refactor(RefactorModelsJob.java)   
at com.sap.ndb.studio.modeler.job.type.copymodels.RefactorModelsJob.run(RefactorModelsJob.java)   
at org.eclipse.core.internal.jobs.Worker.run(Worker.java)


Read more...

Environment

  • HANA database 1.0 
  • HANA database 2.0

Product

SAP HANA 1.0, platform edition

Keywords

refactoring view, refactoring failed, move, NullPointerException, MoveModelsHandler, updateReferences, moveModels, MoveModelsHandler.java, refactor, RefactorModelsJob.java, INACTIVE_OBJECTCROSSREF, INACTIVE_OBJECT , KBA , HAN-STD-DEV-MOD , SAP HANA Analytical Modeling , HAN-DB , SAP HANA Database , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.