Skip to Content
avatar image
Former Member

Failed to create or init instance of model

Hi guys,

I'm facing an issue when create instance of model:

With ARFC:

myModel model = (myModel)WDModelFactory.getModelInstance(myModel.class); model.disconnectIfAlive();

It is working.

But, the issue occured with ARFC2:

IWDModel model = WDModelFactory.getModelInstance(Model.class,WDModelScopeType.TASK_SCOPE); ((ARFC2TypedModel) model).disconnectIfAlive();

The error log as below:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model SalesModel in scope TASK_SCOPE with instanceId 'null' .

Do somebody know this message?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 10, 2016 at 12:57 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Vijay,

      Thank your for your information.

      I look at the link, I don't found configure:

      Or else try changing the scope to TASK_SCOPE.

      Expand the model from the project->NWDS->WD pres ->Model ->XX_Input object

      Right click +Edit ->Go to properties Tab -> change the property "modelinstance_default scope" to TASK_SCOPE.

      Please help me to look it.

      Thanks.