Crystal report Subreport linking error
Hi, I have a issue with linking subreport to main report in crystal report. I created a main report with BEx query as source and this query had fiscal year/period as variable. I have a another subreport with different BEx query and this query also had fiscal year/period variable.
I linked main report fiscal year/period parameter to subreport fiscal year/period parameter.I can run the report and see the data, however In the parameter selection screen I have two prompts with fiscal year/paeriod variable. How can I make this report to prompt fiscal year/period once?
I treid to link main report field and subreport parameter, in this case it is prompting only once but I am getting below error.
[Mon May 23 11:30:08 2011] 5120 5628 ERROR: .\crdb_bwmdx_execution.cpp [478]: l_bapiSelectData failed with return code RFC_RC = 0 Exception: BAPI Error: BAPI Error #:0
For characteristic 0FISCYEAR, enter value in a permitted format
[Mon May 23 11:30:08 2011] 5120 5628 Caught DbError #1 with Message 'BAPI Error #:0
For characteristic 0FISCYEAR, enter value in a permitted format'
[Mon May 23 11:30:08 2011] 5120 5628 Caught DbError #1 with Message 'BAPI Error #:0
For characteristic 0FISCYEAR, enter value in a permitted format'
Please advice.
Thanks
Sasi
Hi Sasi
i had the same issue with main report - subreport linking over Bex Variables. So far i realised a workaround by
giving the value to the subreport variable in the obviously requested format.
I had to provide the value with leading zeros (internal Numc format).
In my case I had a compounded value. By running the rep from CR local I have to give the value as usual like "ED/20080" but when running on infoview the subrep variable demands this format "ED0000020080".
Veeeeery special, but it works.
Obviously, when running this thing on infoview the variable in the subrep demands the internal fomat.
But me to, I'm very interested in an explanation of this behavior and by when it's solved. We have BOE XI 3.1 Sp 3 FB 3.
Ingo, can you help?
regards alex
Similar Messages
-
Crystal Report / Subreport - Performance Issue
I am having problems with a Crystal Report / Subreport with performance. I am using Crystal Version 11, directly in Crystal Developer. There are no other programs involved. I am linking to a SQL Server database using ODBC.
I have narrowed the problem down to this:
The main report has 4 tables. See diagram using the following link. http://screencast.com/t/TA9YYlwwl7
The subreport has 1 table, this table has > 2 Million records in it.
The main report links to the subreport with one field:
Main report field SAMPLE.PATIENT = subreport field Z_RESULT_HISTORY.PHIN
When I set the subreport linking within Crystal it automatically generates the following in the record selection for the subreport:
{Z_RESULT_HISTORY.PHIN} = {?Pm-SAMPLE.PATIENT}
The problem is that the report execution time is dependent on the field that I am using for the record selection in the main report.
Case I works lightening fast:
There are 16 records returned on the Main Report each one of these has about 1-5 records returned on the subreport.
{SAMPLE.PATIENT} = "MOUSEMICKEY" and {SAMPLE.SAMPLE_NUMBER} < 200
Case II brutally slow there are 51 records in the main report that qualify with a few records each in the subreport. By brutally slow I mean a few minutes:
{BATCH.NAME} = "HEP_ARCH-20090420-1"
In this case, I can see in the bottom right of the Crystal Preview window, that it is reading through all 2M records in the Z_RESULT_HISTORY table
Case III brutally slow - a couple minutes
{BATCH_OBJECTS.OBJECT_ID} = 111
This returns 1 record on the main report and 0 records on the subreport. Yet I can see it reading through ALL 2 Million records before the report is displayed.
What I can t understand is why the field used for record selection on the MAIN report is affecting the speed of the execution of the subreport. I need the main report to be selected by BATCH.NAME yet I can t figure out what I can change to make the report run fast. When I record select the main report by SAMPLE.PATIENT, I do NOT see the subreport reading all 2M reocrds - the report preview is returned in less than 1 second.
Any help would be much appreciated.Lindell - your response was very helpful. I was able to create a SQL Command on the subreport and change the subreport links on the main report to use the paramters in the SQL Command. The report is now very fast - even when there are lots of detail records on the main report. It is properly executing the query and not reading all 2M records into memory for each subreport.
I'm still totally confused as to why Crystal was misbehaving so poorly and changing how the subreport queried the database when the only change was the fields used for record selection on the main report. It really looks like a bug to me, but maybe someone can still enlighten me.
thanks again so much. We are in Parallel testing for a production rollout - and the users are MUCH happier now! (which of course makes me much happier!)
Susan
PS I was not aware of the SQL Command - had never used it before. Took me a little while to figure it out and how to do the linking - but it is very powerful. Thanks again. -
Crystal report 9 memory error.
we are using crystal report 9 with sybase power builder..... at some client locations we are experiencing the application crash due to memory while opening crystal reports.
the following errors were noticed
1.the instruction at "0x77124804" referenced memory at "0x001b3e60". the memory could not be read.
2.the instruction at "0x7c911daf" referenced memory at "0x00000000". the memory could not be read.
please guide us what is the issue.. do we need any hotfix or service pack for this.
regardsI assume you already tried to reinstall the application and I would recommend to do it one more time, but this time follow the process for so-called manual uninstall
1. Uninstall Crystal reports 9 using add remove programs
2. Save backup -up of the Registry
3. Remove the following registry key (be careful with the registry file):
HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports
4. Reinstall Crystal Reports 9
As the next step I would check and disable Data Execution Prevention.
Go to: Start> Right-click My Computer" select Properties> Advanced tab > click Performance settings> Data Execution Prevention tab.
If DEP turned on for all programs, then add Crystal Reports (crw32.exe) to except list.
If DEP is not cause of problems, then I would suggest Process Monitor to locate the reason or at least try to locate it.
You can download Process Monitor utility from the following page:
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
The same page will tell you how to use it. I would suggest the following steps:
Close all unnecessary applications/processes
1. Open Crystal Reports
2. Start the Process Monitor, stop capturing events (Cntrl-E), clean the display (Cntrl-X), add the following filter (Cntrl-L) "Process Name is crw32.exe then include", click ok.
3. Start capturing events (Cntrl-E)
4. Immediately click Format menu on Crystal Reports
5. Stop capturing events and save the log file
Now you can look at the log file to see what is going wrong. I would also advice to capture the same log on client machine to compare the sequence of events.
Gracias...!! -
Seagate Crystal Reports ActiveX Designer error '80043ac4'
Website slows down when users are running reports. Users start getting errors when running any crystal report. After sometime main page itself stops loading and only static html is visible. Following is one of the errors users see:
Seagate Crystal Reports ActiveX Designer error '80043ac4'
Invalid directory.
/opera_mort2/report/AlwaysRequiredSteps.asp, line 54
Other errors seen on reporting site at that time are
Active Server pages error 'ASP 0115'
Unexpected error
/opera_mort2/report/rpt_level.asp
A trappable error (C00000005) occurred in an external object. The script cannot continue running.
authentication and network errors.
Rebooting the Web Server temporarily fixes the issue however the error recurs again after a day or two. We are seeing this problem in both our PROD and DR server. There was no change done to either of these boxes recently.
Also at this pint IIS was crashing. Microsoft Support analyzed the crash dumps created from IIS and came up with the following:
"All the memory dumps captured showed the same DLL that was accessing corrupted memory. This same DLL would also be the one that had originally written to those addresses. The DLL was craxdrt.dll from Crystal Reports 8.0 ActiveX Designer, which was version 8.0.1.0 from 1/28/2000. This DLL should be updated to see if this issue has already been fixed. Other options are to recycle IIS more frequently and move to a new version of Crystal Reports."
Here is a detailed analysis from Microsoft Support:
The issue appears to be heap corruption. Normally these are difficult to troubleshoot, however, in this case every memory dump that I looked at had the same component involved.
start end module name
42b30000 4307f000 craxdrt (export symbols) craxdrt.dll
Loaded symbol image file: craxdrt.dll
Image path: C:\Program Files\Seagate Software\Report Designer Component\craxdrt.dll
Image name: craxdrt.dll
Timestamp: Fri Jan 28 15:16:46 2000 (3892235E)
CheckSum: 0055446A
ImageSize: 0054F000
File version: 8.0.0.371
Product version: 8.0.1.0
File flags: 22 (Mask 3F) Pre-release Special
File OS: 40004 NT Win32
File type: 2.0 Dll
File date: 00000000.00000000
Translations: 1009.04b0
CompanyName: Seagate Software, Inc.
ProductName: Crystal Reports 8.0 ActiveX Designer.
InternalName: CRAXDRT
OriginalFilename: CRAXDRT.DLL
ProductVersion: 8.0.1.0
FileVersion: 8.0.0.371
PrivateBuild: 8.0.0.371
SpecialBuild: 8.0.0.371
FileDescription: Crystal Reports ActiveX Designer Runtime Support
LegalCopyright: Copyright (c) 1991-1999 Seagate Software, Inc. All rights reserved.
LegalTrademarks: Copyright (c) 1991-1999 Seagate Software, Inc. All rights reserved.
Comments: Crystal Reports for Visual Basic
This component is from the year 2000 and needs to be updated. I searched our old cases and found several where old version of this component caused the same heap corruption.
Please help as this is a production issue. Please let me know if you need any more information.
thanks and regards
sudatta somanSomething must have changed. Were any patches or auto updates done to the OS?
CR 8.0 has been out of the support cycle for some time now.
As Microsoft suggested please log in and download the patches for CR 8.0 from:
https://www.sdn.sap.com/irj/sdn/businessobjects-support
If that does not resolve the issue the only option will be to schedule sn IIS restart each night. -
Crystal Reports: Print Engine Error when exporting a report
We recently upgraded from Crystal Reports 2008 to BusinessObjects Edge Series X3.1. When exporting a report to an excel data-only format we get "Crystal Reports: Print Engine Error". All other formats work fine. Any help is highly appreciated.
Thanks,
JaseemAnyone?
-
Crystal Reports version 10 error when displaying report
Hello: New member here, been lurking around for a while. A lot of good information here.
I do hope this is the right place to ask this first question. I have a customer that has a Crystal Reports 10 installation and cannot display reports since he upgraded from Crystal report 8 to Crystal reports 10
The error he gets is pop message:
CRAXDT error Occurred on Server Error Number: -2147221005 Error description: 006ASP 0177Server
CreateObject Failed~800401f3
Connection to the database is good we checked with query using SQL.
Let me know what you think I should check next.
I appreciate it.
Thanks
Damon1212487 - Error: "CRAXDRT Error Occured on Server. Error Number:-2147221005"
Symptom
A report is called through the Active Server Pages (ASP) Report Server to be displayed in the Report Viewer for ActiveX. However, the report is displayed with blank pages and when the viewer is switched to the Report Viewer for HTML the following error is displayed:
"CRAXDRT Error Occurred on Server. Error Number:-2147221005 Error Description: 006ASP 0177 Server.CreateObject Failed~Invalid Class String"
The same ASP application returns the report correctly when it is called from a client computer with the full version of Crystal Report 8 Developer Edition installed.
Resolution
It was found that the file, Emfgen.dll, was not installed and registered on the web server computer during the installation of the Crystal Reports ASP Reports Server. The report could be displayed correctly on the client computer, without Crystal Reports Developer Edition installed, after this file had been installed on the web server computer.
For more information on installing the Crystal Reports web components please search for and download Scr8_WebManualInstall.zip from our website at: -
Problem passing parameter to crystal report subreport from *.aspx page
Background:
I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
Problem:
For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
Imports System
Imports System.Collections.Specialized
Imports System.Collections.ObjectModel
Imports System.Collections
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data
Imports System.Data.SqlClient.SqlDataAdapter
Imports System.Web.Configuration
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
Inherits System.Web.UI.Page
Dim paramFields As ParameterFieldDefinitions
Dim paramField As ParameterFieldDefinition
Dim paramValue As ParameterValues
Dim paramDiscreteValue As New ParameterDiscreteValue
Public Shared idCase, nameRpt As String
Private PrintRpt As ReportDocument
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
Dim parIDCase As ParameterValues = New ParameterValues
Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
disIDCase.Value = idCase
parIDCase.Add(disIDCase)
crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load
" & Convert.ToString(ex)
End Try
End Sub
End Class
Your help is greatly appreciated!Thanks for your help!
I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer. However, I've encounted another problem. The data in my main report displays correctly, but the data in my subreport does not display. Of course, when I view the report in the designer, both the main report and subreport display correctly. What am I doing wrong? Below is my vb.net code:
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
End Try
Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM -
Crystal Report and Log4net error 1.2.10
Hi at all,
I have problem on Crystal Report and log4net.
It happens when I deploy the Web applications on the server.
I'm using Visual studio 2013 update 2, and I'm using log4net 2.0.3 (1.2.13) and I'm using CRforVS2013_13_0_10, the last.
When I deploy my application on the target machine, where I have also installed the runtime 64 bit for Crystal Report, I found this error:
ERROR 2014-07-31 16:26:42,721 1528053ms 8Euro - IP:192.168.0.38 - HOST:192.168.0.38 DumpWebRequest - ERROR: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Exception StackTrace: at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.pages_reportviewer_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
ERROR: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
ERROR: Could not load file or assembly 'log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Exception StackTrace: at CrystalDecisions.Shared.SharedUtils..cctor()
ERROR: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Not able to extract code, error:Value cannot be null.
Parameter name: source
Exception StackTrace:
On my local Visual studio it works, works fine.
But when I'm deploying on Server, 2008 win 64 bit, I found this error.
I've tried everything, I've installed also the runtime 64 bit on the target/server machine.
The problem is that the log4net is not registered in the windows\assembly directory on the target server ? Do I have to use the Gac util to register the log4net dll assembly ?
Please help me, It one day that I'm facing this error, but I'm not able to solve.
Regards
VittorioHi Vittorio
Please enter the search string 'log4net crystal net' into the search box in the top right corner. When the results come up, click on the Support Notes link. That will filter for the KBAs that you want to have a look at.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Crystal Report orange link arrow to SAP B1 not working
Hello,
I couldn't find a way to insert the actual "arrow" icon into a Crystal report so I copied one from one of the Crystal Reports imbedded in SAP B1 9.0. I subsequently edited the hyperlink to point to the document number I wanted.
From the Format Editor dialog box, Hyperlink, the hyperlink website address is:
http://$b1$/link?table=OPCH&key=1
There was a formatting button to the right of the website address line. Clicking on it yielded a formula workshop dialog box that I edited as follows:
'http://$b1$/link?table=OPCH&key='+ToText({OPCH.DocNum},0,"","")
The Crystal Report runs fine in B1 and shows the link arrows. Hovering the cursor above the hyperlink in print preview yields the specific information for that record. For example, when the report shows A/P Invoice #4394 the screen shows a small pop-up with "http://$b1$/link?table=OPCH&key=4394". Clicking on the arrow brings up a window with a blank! A/P invoice with the cursor located in the "Vendor Invoice No." box (OPCH.NumAtCard field).
Why is this not working to bring up the correct A/P invoice? There are no errors indicated.
Thanks for any assistance.Thank you, Nagarajan.
Those instructions are exactly what I've done with my report. However, the instructions start with the phrase "manually insert link arrow into Crystal report". OK, I did a Google search on "insert link arrow" and "crystal" and "reports" and "SAP" and there was only ONE webpage with these words on the ENTIRE internet--the page you sent me to. Crystal reports online help has nothing relating to a "link arrow". If there's some special aspect of this link arrow that I'm missing, it sure is a secret because there's nothing out there on this subject. I guess I'll have to copy the graphic from previous reports each time I need to do this.
CORRECT ANSWER:
In any case, I was able to resolve the issue by changing the text in the formatting dialog box from OPCH.DocNum to PCH1.DocEntry and it worked. Why it worked is beyond me. Guessing seems to be the one defining feature of doing work with SAP B1. -
I am using Crystal Reports Server XI on Linux Server with Oracle Server 10g.
I did install Oracle Client on Report Server and config Oracle SID in tnsnames.ora also. It works well with tnsping command. Then, I published a report which was created in Crystal Reports developer on this server.
When I preview the report on Report Server. I got the following error message:
Error in File Report1: Failed to load database information.
Try to fix the problem I ran web Central Management Console -> Objects ->Report1->Process -> Database and set there the following parameters:
Database driver: Oracle
Server: servers_host_name
Database: (tried both ORACLE_SID and tns_name)
User: oracle_user_name
Password: oracle_pw
It still got the same problem.
I will appreciate any help.
Tham.I was having a similar problem in Crystal Reports Server 2008 v1, and had to install the full client to resolve it, which I didn't like. I poked around some, and was able to get the Instant Client working with a few minor changes. Note that I tried it only with the 32-bit Instant Client even though I was on a 64-bit system because that was what SAP recommended when I talked to them.
The changes I had to do was initialize the Oracle environment variables (the instant client doesn't have a script to do this for you) and to create a soft-link which is included in the full client, but not in the instant client.
To setup the environment variables I created a file called env.sh and put it in /opt/crystal/bobje/setup/oracle/, where /opt/crystal was my install path. This ensured that it got called by the /opt/crystal/bobje/setup/env.sh script which runs as part of the System init scripts to initialize the environment. The following is what I put in my file (again for the 32-bit 11g R2 instant client):
export ORACLE_SID=summitdb
export ORACLE_HOME='/usr/lib/oracle/11.2/client'
export ORACLE_BASE='/usr/lib/oracle/'
export TNS_ADMIN='/usr/lib/oracle/11.2/client/network/admin'
export PATH="$:/usr/lib/oracle/11.2/client/bin"
export LD_LIBRARY_PATH="$$/usr/lib/oracle/11.2/client/lib"
After that, I created the missing soft link using this command:
ln -s "$/lib/libclntsh.so.11.1" "$/lib/libclntsh.so.10.1"
Once I had done those two things, and restarted the service using the /etc/init.d script, it worked fine. -
Crystal Reports 2008-Vista-ERROR-crw32.exe Entry Point Not Found in dll
Hi Experts,
I just installed the Crystal Reports 2008 (with SP0) on my Vista (Home) machine. When I try to start the CR 2008, I am getting the below error message:
Error Title: crw32.exe - Entry Point Not Found
Error Message: The procedure entry point ?PrintLegend@CMapXLegend@CSLib300@@QAEXJJJJJ@Z could not be located in the dynamic link library cslibu-3-0.dll
Here are the things I tried to resolve the above problem:
1) Uninstall and Reinstall the CR 2008. - No change.
2) I configured the DEP to accept Crystal Reports (Performance - Advanced - DEP allow).
None of these seem fix the problem.
Can you please help me kick start the Crystal Reports 2008?
Thanks,
ArunPlease try with this:
Run a command prompt as administrator. From the start menu, select "All Programs", then "Accessories" and right-click on the "Command Prompt" shortcut and choose "Run As Administrator". From here you can use the following command to disable Data Execution Prevention (DEP) with the following command:
bcdedit.exe /set nx AlwaysOff
Keeping your command prompt open, run your setup or other process being stopped by DEP. Then, to turn it back on again, do the same and run the following:
bcdedit.exe /set nx AlwaysOn
Regards,
Shweta -
Crystal report subreport connect DB Problem
I have rpt file was set the connect DB(AAAA). This file have two reproject (main report and subreport)
The subreport parameter is linked to main report.
These two report will get the data from DB by the parameter.
Server Name:AAAA, Database Name: AAAA, UserID: AAAA, Password:AAAA
for testing and save it.
I am trying to build a MFC project with crystal report 13
My project call this rpt file and pass a parameter to main
The crystal report main report and subreport can get correct infomation where connect to the DB(AAAA)
but when I connect to the other DB.
My project only the crystal report main report can get the correct infomation, the subreport cannot get correct infomation.
it show a diolog to ask me "enter the parameter".After passing a corrent parameter, the result also not corrent.
The program code:
CrystalDecisions::Windows::Forms::CrystalReportViewer^ crystalReportViewer1;
ReportDocument boReportDocument = gcnew ReportDocument();
boReportDocument->Load(strFilePath);
String^ strUser = gcnew String (ReportPara->strUser);
String^ strPassword = gcnew String (ReportPara->strPassword);
String^ strServer = gcnew String (ReportPara->strServer);
String^ strDatabase = gcnew String (ReportPara->strDatabase);
boReportDocument->DataSourceConnections[0]->SetConnection(strServer,strDatabase,strUser,strPassword);
ParameterValues^ pv = gcnew ParameterValues();
ParameterDiscreteValue^ pdv = gcnew ParameterDiscreteValue();
pdv->Value =ReportPara->varDate;
pv->Add(pdv);
boReportDocument->DataDefinition->ParameterFields[0]->ApplyCurrentValues(pv);
crystalReportViewer1->ReportSource = boReportDocument;
I have try to change the subreport DataSourceConnections:
for (int j; j <boReportDocument->DataSourceConnections->Count;j++)
boReportDocument->Subreports[0]->DataSourceConnections[j]->SetConnection(strServer,strDatabase,strUser,strPassword);
but the result is also not corrent
I have try to pass parameter to the subreport:
pv->Add(pdv);
boReportDocument->DataDefinition->ParameterFields[1]->ApplyCurrentValues(pv);
for (int i; i <boReportDocument->DataDefinition->ParameterFields->Count;i++)
pdv->Value =ReportPara->varDate;
pv->Add(pdv)
boReportDocument->Subreports[0]->DataDefinition->ParameterFields[0]->ApplyCurrentValues(pv);
but the result is also not corrent
I have try to set the ReportViewer LogOnInfo
TableLogOnInfo^ loi;
loi = boReportDocument->Database->Tables[0]->LogOnInfo;
oTblLogOnInfos->Add(loi);
for (int j=0; j<boReportDocument->Subreports[0]->Database->Tables->Count;j++)
loi = boReportDocument->Subreports[0]->Database->Tables[j]->LogOnInfo;
oTblLogOnInfos->Add(loi);
crystalReportViewer1->LogOnInfo = oTblLogOnInfos;
but the result is also not correntHi Edwin,
I assume you are using the runtime for Cr for Visual Studio which is available from the download page correct?
You don't want to use the .Add method, this actually adds a NEW parameter, you simply want to modify the current parameter value.
Sorry I don't have and C++ samples.
Don -
Crystal report -Subreports and BW key date
Hope your in good spirits, we had to install the SP 7 on bw for our webi reports to work, i have an issues here with Crystal reports
I need to develope a crystal report with two BEx Queries as Data Sources, I suggested to use Subreports, where the promts of the reports can be linked, but i have a Keydates in these two Bex Queries which are poping up as two parameters when i run the report is there any way that you can link those to key dates,where the user can enter for one key date Parameter and the value is passed to the Sub report Key date parameter, please help me>
raj_4234 wrote:
> Hope your in good spirits, we had to install the SP 7 on bw for our webi reports to work, i have an issues here with Crystal reports
>
> I need to develope a crystal report with two BEx Queries as Data Sources, I suggested to use Subreports, where the promts of the reports can be linked, but i have a Keydates in these two Bex Queries which are poping up as two parameters when i run the report is there any way that you can link those to key dates,where the user can enter for one key date Parameter and the value is passed to the Sub report Key date parameter, please help me
did you manage get the solution, i also want to know how to share date parameter from subreport to main report? -
SAP 9.0 PL10 Crystal Report Viewing/Editing error
When trying to preview any crystal document in SAP, I'm getting a "The procedure entry point could not be located in the dynamic link library C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjectEnterprise XI 4.0\win32_x86\rasauditingw.dll". I've manually registered the dll, and still get the error on the first view of any document. Subsequent previews no longer show the error, until you log out of SAP. This is all happening in the SAP Client, and only happens after I install the Crystal Server Integration piece required by the Crystal Report Addin to edit Crystal Reports. Anyone else getting this?
This isn't the issue. Crystal Reports runs fine. Opening from all programs works fine. It's when in SAP, and you try to preview any marketing document for the first time only, I get a windows error box stating "The procedure entry point could not be located in the dynamic link library C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjectEnterprise XI 4.0\win32_x86\rasauditingw.dll". Clicking OK on the box allows the document to be previewed, and crystal viewer opens properly. This above note does not reference this issue, or is it relevent to this version of SAP 9.0.
-
Crystal Reports Installation Issue (Error 1904/ HRESULT -2147024769)
Hi,
While installing Crystal Reports 2008 -trial version on Windows-xp I am getting the following error:
"Error 1904. Module C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ReportSourceBridge.dll failed to register. HRESULT -2147024769. Contact your support personnel."
Integration Kit for SAP has not yet been installed. But Business Objects XI3.1 Client Tools are installed.
Crystal Reports version is 12.0.0.86.
Is it an compatibility issue or other problem? What is the resolution? Are there any Fix Pack available? Any alternative approach that works?
Any suggestions on this are welcome.
Regards,
AmoghHello,
Download Crystal Reports 3.1. It should be version 12.1.0.xxx. It may be the order you are installing also, Install CR first and then the other parts.
1904 is a MSIExec error code. Typically it's due to outdated Microsoft installer or permissions and/or network speed or.... Be sure you are logged in as the local PC administrator or have the same rights as. Copy the installer to your local hard drive and run the setup.exe by right clicking on it and selecting Run as Administrator...
Here's a link for the full build of SP1: https://smpdl.sap-ag.de/~sapidp/012002523100006556612009E/cr2008v1win_rf.exe
Thank you
Don
Maybe you are looking for
-
Where to find the validation for table
Hi Friends, I'm new to HRMS. This is my senario. USers entering the Leave. When entering the leave, it is validating the leave days , and throws error. If they entering for the same person, same from date and same to date, it will show error that *'R
-
Dear all We are using R3 4.7 and CRM 4.0 with middleware functionality. In T-Code SMQ1 in R3 i am getting so many below queues daily. R3AD_ACCOUNTING R3AD_OBJCL and the status of all Queues are " WAITUPDA". What it means? and what are these Queues? I
-
SCMS_XSTRING_TO_BINARY giving dump with this error .
Error in the ABAP Application Program The current ABAP program "ZGY_CUST_TAB_UPDATE" had to be terminated because it has come across a statement that unfortunately cannot be executed. Function module "SCMS_XSTRING_TO_BINARY" was called with the par
-
Does somone know what parameter needs to be added to extract to enable DDL ONLY ? I don't wan't and DML's extracted. Thanks a lot !
-
SD Order confirmation. PRinting sales order texts.
Hi, I am Developing a smartform for sd order confirmation. I have a requirement to print the sales order header texts(header text and ship/fwd inst).I have included them as an include text but i also need to print the phrase 'header info' before head