Skip to Content
0
Former Member
Feb 25, 2011 at 02:37 PM

Open document error (Error: ERR_WIS_30270)

61 Views

Hello.

I want to open with java a Crystal Report generated from a universe.

The Report is located and accessible in the CMS.

When It comes to the following instruction

 DocumentInstance docInstance = widocRepEngine.openDocument(idReport);

the error

Document about to be opened 96950
- Servlet.service() para servlet jsp lanzó excepción
com.businessobjects.rebean.wi.ServerException: Error interno al llamar a la API 'openDocumentMDP'. (Error: ERR_WIS_30270)
	at com.businessobjects.rebean.wi.occa.OccaDocumentComAdapter.checkOpenDocError(Unknown Source)

appears.

Here is the rest of the code:


if (enterpriseSession != null) {//Create and store useful objects for the session.
			
			
	session.setAttribute("EnterpriseSession", enterpriseSession);
	IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
	session.setAttribute("InfoStore", iStore);

			
	String folderQuery = "SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME='prueba_optyon_sencilla.rpt'";

	IInfoObjects folders = iStore.query(folderQuery);

	IInfoObject folder = (IInfoObject)folders.get(0);
			
			
	//Instantiation of a Report Engine:

	ILogonTokenMgr iLManager = enterpriseSession.getLogonTokenMgr();
	ReportEngines repEngines = (ReportEngines) enterpriseSession.getService("ReportEngines");
	ReportEngine widocRepEngine = (ReportEngine) repEngines
			.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);//WI allows editing and creation
	session.setAttribute("widReportEngine", widocRepEngine);
			
	int idReport = folder.getID();
			
	System.out.println("Document about to be opened "+idReport);
			
	DocumentInstance docInstance = widocRepEngine.openDocument(idReport);
			
	System.out.println("Document opened");


Thanks a lot.

Raúl Domínguez