Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports - Data Connectivity
Viewing all articles
Browse latest Browse all 269

Failed to retrieve data from the database. Details: [Database Vendor Code: 1722]

$
0
0

Dear all,

 

The follow error bellow occurs when run a query in a report.rpt file.

 

CrystalDecisions.CrystalReports.Engine.InternalException: Falha ao recuperar dados do banco de dados.

Detalhes:  [Código do Fornecedor de Banco de Dados: 1722 ]

Falha ao recuperar dados do banco de dados.

Detalhes:  [Código do Fornecedor de Banco de Dados: 1722 ]

Falha ao recuperar dados do banco de dados.

Falha ao exportar o relatório.

 

Erro no arquivo InformeDetalladoPorTipoDeIncidencias {AA14FB56-83D9-4AB7-A708-D350F7FD986F}.rpt:

falha ao recuperar dados do banco de dados.

Detalhes:  [Código do Fornecedor de Banco de Dados: 1722 ] ---> System.Runtime.InteropServices.COMException: Falha ao recuperar dados do banco de dados.

Detalhes:  [Código do Fornecedor de Banco de Dados: 1722 ]

Falha ao recuperar dados do banco de dados.

Detalhes:  [Código do Fornecedor de Banco de Dados: 1722 ]

Falha ao recuperar dados do banco de dados.

Falha ao exportar o relatório.

 

Erro no arquivo InformeDetalladoPorTipoDeIncidencias {AA14FB56-83D9-4AB7-A708-D350F7FD986F}.rpt:

falha ao recuperar dados do banco de dados.

Detalhes:  [Código do Fornecedor de Banco de Dados: 1722 ]

   at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)

   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

   --- End of inner exception stack trace ---

   at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName)

 

I have a problem in a Windows Server 2008 R2 Enterprise 64 Bits SP1 with a report.rpt.

 

I'm using a Microsoft Framework .NET 4.0 64 Bits application in a Internet Information Services 7.5.

 

The Oracle Client installed in the machine is Oracle 11g Client (11.2.0.3) Windows x64.

 

The version of Crystal installed in the server is CRforVS_redist_install_64bit_13_0_5.

 

The configurations in the Report.rpt to database connection is Database Type: Oracle Server.

 

The Report.rpt contains subreports. The subreports are shown against the data sent through parameters. Other subreports work fine and the report runs. In others machine with Windows 7 Professional 64 Bits with the same oracle client and crystal installed, all subreports run fine with the same database and parameters.

 

In intent to resolve the problem, I've had database monitor in Oracle and the same query are launched without errors in a Windows 7 and 2008. In a Windows 7 crystal reports returns the PDF report, in a Windows 2008 only error message.

 

I've checked the registry keys and try to configure anything without success. The registry keys there are:

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer]

"DataEngineName"="C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win64_x64\\crpe32.dll"

"ProcessingExtensionPath"="C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win64_x64\\ProcessExt"

"AgentLimit"="3000"

"AgentTimeoutMins"="60"

"ConnectionDirMgrProgIDs"="CrystalReports13.LocalConnMgr.0"

"DisablePrintJobCloning"="Yes"

"EnterpriseRequestTimeout(min)"="600000"

"JobSharingMaxDataAge(sec)"="12000"

"PrintJobLimit"="-1"

"PrintJobSharingTimeout"="90"

"ProcessAffinityMask"="-1"

"ReportDirMgrProgID"="CrystalReports13.LocalReportMgr.0"

"RequestWorkerThread"="500"

"ResultFieldsSortMethod"="1"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\LocalConnectionMgr]

"ConnectionDirectoryPath"="c:\\"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\ReportDocument]

"AsnycSQL"="No"

"MaxNumOfRecords"="-1"

"NumOfBrowsingRecords"="1000"

"NumOfCachedBatches"="-1"

"PushDownGroupBy"="No"

"ReportStyle"="9"

"RowsetBatchSize"="1000"

"SaveDataWithDoc"="Yes"

"SelectDistinctRecords"="No"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Report Application Server\InprocServer\RptDirMgrProgIDs]

"default"="CrystalReports13.LocalReportMgr.0"

"file"="CrystalReports13.LocalReportMgr.0"

"ras"="CrystalReports13.LocalReportMgr.0"

 

Best regards,

Jener Garcia Menezes

System Architect at Prosegur S/A


Viewing all articles
Browse latest Browse all 269

Trending Articles