Skip to Content
0

Failed to create or init instance of model

Nov 10, 2016 at 10:28 AM

99

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Vijay Kumar Kalluri Nov 10, 2016 at 12:57 PM
0
Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0