Skip to Content
0
Former Member
Dec 06, 2005 at 03:07 AM

Creating iviews programatically - getting OperationFailedException

29 Views

Hi,

While creating a iViews programatically I am getting

OperationFailedException exception.

This is the piece of code which is throwing the exception

NewObjectDescriptor IVtoCreate = null ;

try

{

IVtoCreate = (NewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,

"pcd:portal_content/com.sap.pct/every_user/general/iViews/com.sap.km.iviews/com.sap.km.NewsBrowser" ,

request.getUser()); }

catch( ObjectNotFoundException ex)

{

ex.getMessage() ;

}

catch( OperationFailedException ex)

{

ex.getMessage();

}

I am using EP SP9. and

I want to create a iview from NewsBrowser.

I tried with NEW as well as DELTA_LINK way , still I am getting the same error.

can anyone please help on this

thanks

pk