Crystal Report with subreports breaks when running on different databases.

HI there
I have a report with 5 subreports on that only works on the database I am designing it on. As soon as I run the report through my application on a database different to the one I design on, it seems to have lost all the parameter fields I created in one of the subreports (the one I have just added, the other 4 work fine) used to link to the main report.
It then pops up with the Parameter Value box and asks for values for 2 parameters that I do not use to link to the subreport, nor have added to the subreport in design time, and in code when I step through the parameterfields list property, the parameters I added in design time to the subreport are not in the list but somehow these 2 parameter fields have been added to the subreport? These 2 parameters have the same names as some main report parameters which have been set already, but as mentioned these somehow now belong to the subreport.
When I run the report through my app on the database I design on all parameters are present and the report works fine.
The parameters in the subreport are all command parameters, linking to a command field, a formula field and another non-command parameter in the main report. All these are set and work fine in the main report.
I set all the parameter values in code to the main report, and the subreports all use those to link to.
I am using CR v10.2 with VB2008 using .NET 2.0 framework (although I had similar problems in VB2005), where the report links directly to a SQL databse via commands. There are 4 commands in the main report and one in the problematic subreport. The subreports command incudes a SQL "IF" statement based on one of the parameters I am linking from the main report.
Please let me know if more info is required.
Thanks.

Hello, Eugen;
I understand you are using Visual Studio .NET 2008 with bundled Crystal Reports Basic for 2008 (10.5). Do you have a full version of Crystal Reports you use to design reports with or are you designing inside Visual Studio .NET?
I would like to suggest some ways to test and narrow down the issue.
One subreport appears to be changing the parameters used when the underlying database changes. Is there a change in the Command it is based on?
Create a simple report using the same command and the same database as is used in the problem subreport. Run it to confirm you get the same data as in the original.
Now in design, go into Database|Set Datasource location and change to the new datasource. Do a Database|Verify database. Do you see the change in parameter fields you are seeing at runtime? Has the Command changed? Does it run through the application?
If you see the same change there, it will have to be addressed in the designer first. If it runs well there, let us look further at the application.
What is the order of your code?
   Open main report
   Logon to database
   Pass parameters
   Open each subreport
   Logon to the database
   Pass parameters
   View the report.
Do you set all database locations before passing parameters?
Were any of the parameters created as "NULL" in the designer?
Once I have the answers to these questions we can look a little further.
Elaine

Similar Messages

  • Login error with report viewer when opening Crystal report with subreport

    Hi
    I have a problem with a login error (database vendor code 18456) when I try to open a crystal report to view it.
    The report uses data from an external payroll database but I'm running it via our Accounts system (it's a convenient front end for users to run the report from). This works fine for another report that doesn't have any subreports. However when I run the Crystal report that has subreports, the report generation process works but when the crystal reports viewer tries to open the report I get the login error. It doesn't seem to be passing the login details for the payroll database down to the subreport.
    I'm using Crystal Reports version 11.0.0.1282. The Accounts system is Technology One. Tech One have provided a report template that has several formulas designed to allow Tech One to play nicely with Crystal. One of these formulas allows me to enter the nickname of the external database that the report needs to use. The external database's connection details are fully specified in the Tech One configuration section (server console). So in this case the report says use database U1 & the server console identifies U1 as being the payroll database, specifies the connection path  & has the username & password required to logon to the payroll database/server.
    The report is running ok & retrieving data, but for some reason the viewer is erroring. If anyone has any ideas for how I can get the login details used to run the main report to flow through to the subreport it would be much appreciated.
    Thanks
    Sue

    I understand your  frustration. We can do a few things. But really, it should be Technology One contacting us. To use an analogy (which you are free to share with Technology One). They built a car and sealed the hood. You bought the car, but he engine does not quite run as it should. You bring the car to the mechanic and all he can do is look at the car as he can not even open the hood.
    In any case, here is what I would do if I could open the hood (e.g.; if I was dealing with Technology One):
    1) Look up database vendor code 18456. This is simply the error our print engine is receiving from the database client and it simply passes it through relatively unhandled. This you should be able to do your self or ask Technology One to tell you what that means.
    2) Break out the subreport and see if it runs on it's own in the application (if this is a permissions issue - which I doubt -  it should come up here too). Unfortunately, this is for Technology One to do...
    3) Run the report (with the subreport) in the CR designer. Does it work there? If this is a win app and it works, we again eliminated permission issues. And we also confirmed that the report is good. Again, Technology One should do this for you.
    BTW.; CR 11.0 is out of support - not sure if you or Technology One are aware of this...
    4) Can the developer duplicate the issue on his development computer?
    Now, there are couple of instances where you say something like; "the report works and gets data, but the viewer errors out":
    +The report is running ok & retrieving data, but for some reason the viewer is erroring.
    However when I run the Crystal report that has subreports, the report generation process works but when the crystal reports viewer tries to open the report I get the login error.  +
    How do you know the report is retrieving data? From the error I would say the report never connects, thus the error / request for a logon...
    So, the short of all of this is; get Technology One to contact us. They can do it over the forums or obtain a phone case here;
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100
    Now, here is a warning. As CR 11.0 is out of support Technology One will have to upgrade to CR 11.5, before that can create a phone case, which for them and you brings up another bunch of issues...
    If you do not get any joy from the support person at you are talking to at Technology One, get him to escalate the issue. They are the ones that should be talking to us...
    Ludek

  • Scheduling Crystal Report with Subreport in BOE 12.0.0.683

    I have scheduled a crystal report in BOE that contains a subreport. The report successfully completes, but the data for the subreport is blank. I know there are records for the subreport because they are there when I run the subreport manually in crystal. Is there a way to fix this?

    hi,
    You can set the Idle connection time out parameter to desired value (in minutes) for Processing server using CMC.
    Regards,
    Vamsee

  • Publishing Crystal Report with subreport in BOE

    Where can I find specific step-by-step instructions on how to publish a Crystal Report in BOE that contains an on-demand subreport that contains links (passed parameters) to the main report?  I havepublished the 'main' report and the subreport in the CMC and have run the main report in Infoview.   But I can find no instructions on how to link the subreport to the main report at run time.  The user should be able to click on a summary field that will in turn run the subreport that generates details about the specific summary he clicked on.
    Thanks very much for your help,
    Holly

    Alright, so you wish to click on the summary field and open a Detail report that should be an on-demand sub-report that is linked with some other field in the Main report?
    You can insert the sub-report and place it on the section where you want it to be in. Link the Main report to the subreport on a field and then right-click the subreport > select Format subreport > Check On-demand Subreport > Click the formula button beside On-demand subreport caption and type the name of the summary field in the formula.
    This will make sure, the sumary field value is printed as the caption and it appears as a hyperlink.
    -Abhilash

  • Crystal Reports 10 Pro Crashing when running report

    Server: Intel Xenon X3323 Quad Core 2.5 GHz
    LAMP Configuration
    1.5GB Ram
    Centos 5.1 Linux Server
    Mysql 5.0.45
    Workstation Windows XP Pro
    2 GB Ram
    Crystal Reports 10 Pro
    ODBC SYSTEM DSN 
    Connector Mysql ODBC 5.1.5 Connector
    Issue
    Report Crashes when we run the report.  However, if we click Database, then Refresh Database, the report generates.  The issue is we cannot automate the report.
    Here is some information from the dump report
    Error Signature
    AppName: crw32.exe AppVer: 10.0.5.1506 ModName: myodbc5.dll
    ModVer: 5.1.5.0 Offset: 0001b720
    Here is additional information from the log file:
        <MATCHING_FILE NAME="crabout.dll" SIZE="192585" CHECKSUM="0x181843C3" BIN_FILE_VERSION="10.0.0.23" BIN_PRODUCT_VERSION="10.0.0.533" PRODUCT_VERSION="10.0.0.533" FILE_DESCRIPTION="crabout" COMPANY_NAME="Crystal Decisions, Inc." PRODUCT_NAME="Crystal Report About Box Dialog " FILE_VERSION="10.0.0.23" ORIGINAL_FILENAME="crabout.dll" INTERNAL_NAME="crabout" LEGAL_COPYRIGHT="Copyright ©1991 -2001 Crystal Decisions Inc" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="10.0.0.23" UPTO_BIN_PRODUCT_VERSION="10.0.0.533" LINK_DATE="12/10/2003 09:28:45" UPTO_LINK_DATE="12/10/2003 09:28:45" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="crabout_res_en.dll" SIZE="32851" CHECKSUM="0x630C4905" BIN_FILE_VERSION="10.0.0.23" BIN_PRODUCT_VERSION="10.0.0.533" PRODUCT_VERSION="10.0.0.533" FILE_DESCRIPTION="Resource DLL for crabout" COMPANY_NAME="Crystal Decisions, Inc." PRODUCT_NAME="Crystal Report About Box Dialog " FILE_VERSION="10.0.0.23" ORIGINAL_FILENAME="crabout_res_xx.dll" INTERNAL_NAME="crabout_res_xx" LEGAL_COPYRIGHT="Copyright ©1991 -2001 Crystal Decisions Inc" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="10.0.0.23" UPTO_BIN_PRODUCT_VERSION="10.0.0.533" LINK_DATE="12/10/2003 07:23:23" UPTO_LINK_DATE="12/10/2003 07:23:23" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="crw32.exe" SIZE="10448971" CHECKSUM="0x8EE29129" BIN_FILE_VERSION="10.0.5.1506" BIN_PRODUCT_VERSION="10.0.5.1506" PRODUCT_VERSION="10.0.5.1506" FILE_DESCRIPTION="Crystal Reports" COMPANY_NAME="Crystal Decisions" PRODUCT_NAME="Crystal Reports" FILE_VERSION="10.0.5.1506" ORIGINAL_FILENAME="CRW32.EXE" INTERNAL_NAME="CRW" LEGAL_COPYRIGHT="Copyright (c) 1991-2006 Crystal Decisions, Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="10.0.5.1506" UPTO_BIN_PRODUCT_VERSION="10.0.5.1506" LINK_DATE="08/30/2006 19:48:31" UPTO_LINK_DATE="08/30/2006 19:48:31" VER_LANGUAGE="English (Canada) " />
        <MATCHING_FILE NAME="crw32_res_en.dll" SIZE="2543616" CHECKSUM="0x580A253D" BIN_FILE_VERSION="10.0.5.1464" BIN_PRODUCT_VERSION="10.0.5.1464" PRODUCT_VERSION="10.0.5.1464" FILE_DESCRIPTION="Crystal Reports" COMPANY_NAME="Crystal Decisions" PRODUCT_NAME="Crystal Reports" FILE_VERSION="10.0.5.1464" ORIGINAL_FILENAME="CRW32.EXE" INTERNAL_NAME="CRW" LEGAL_COPYRIGHT="Copyright (c) 1991-2006 Crystal Decisions, Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="10.0.5.1464" UPTO_BIN_PRODUCT_VERSION="10.0.5.1464" LINK_DATE="07/19/2006 18:43:36" UPTO_LINK_DATE="07/19/2006 18:43:36" VER_LANGUAGE="English (Canada) " />
        <MATCHING_FILE NAME="crwdnr.dll" SIZE="20539" CHECKSUM="0x45176FE5" BIN_FILE_VERSION="8.0.0.1" BIN_PRODUCT_VERSION="8.0.1.0" PRODUCT_VERSION="8.0.1.0" FILE_DESCRIPTION="Crystal Decisions Physical Server Dll" COMPANY_NAME="Crystal Decisions" PRODUCT_NAME="Crystal Reports" FILE_VERSION="8.0.0.1" ORIGINAL_FILENAME="crwdnr.dll" INTERNAL_NAME="crwdnr" LEGAL_COPYRIGHT="Copyright (c) 1991-1999 Crystal Decisions, Inc.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="8.0.0.1" UPTO_BIN_PRODUCT_VERSION="8.0.1.0" LINK_DATE="12/10/2003 09:29:07" UPTO_LINK_DATE="12/10/2003 09:29:07" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="myodbc5.dll" SIZE="2351104" CHECKSUM="0x17D2FE64" BIN_FILE_VERSION="5.1.5.0" BIN_PRODUCT_VERSION="5.1.5.0" PRODUCT_VERSION="5, 1, 5, 0" FILE_DESCRIPTION="MySQL ODBC 5.1 Driver" COMPANY_NAME="MySQL AB" PRODUCT_NAME="Connector/ODBC 5.1" FILE_VERSION="5, 1, 5, 0" ORIGINAL_FILENAME="myodbc5.dll" INTERNAL_NAME="myodbc5" LEGAL_COPYRIGHT="Copyright © MySQL AB 1995-2006" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.5.0" UPTO_BIN_PRODUCT_VERSION="5.1.5.0" LINK_DATE="08/18/2008 17:15:53" UPTO_LINK_DATE="08/18/2008 17:15:53" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x7D737C09" BIN_FILE_VERSION="5.1.2600.5512" BIN_PRODUCT_VERSION="5.1.2600.5512" PRODUCT_VERSION="5.1.2600.5512" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.5512 (xpsp.080413-2111)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF44A2" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5512" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5512" LINK_DATE="04/14/2008 00:11:24" UPTO_LINK_DATE="04/14/2008 00:11:24" VER_LANGUAGE="English (United States) " />
    </EXE>
    </DATABASE>

    PLease give more information about the exact steps taken, on the client, and if necessary, on the server, to reproduce the error.
    eg. are you running it on the client, or saving it to Enterprise and it crashes when viewed from the server?

  • Crystal report parameters not available when running from within SAP B1

    Hi
    I have found this problem a few times already and I think it is now about time I find a solution for it.
    On my latest Crystal report, I have 2 parameters.
    The 1e is a dynamic parameter, allowing the user to select multiple groups.
    The 2nd is also a dynamic parameter, allowing the user to select only a single item.
    These parameters works fine in Crystal and do what they are supposed to do.
    After publishing the report in SAP Busines One (SBO) and viewing it from within SBO, the 2 parameter prompts are still there but without the dynamic list to select any data from.
    On a previous report where a parameter has been defined as "Any value can be entered for the parameter" once again worked fine in crystal but from within SBO the parameter allowed no value to be entered.
    Have anyone got a solution for this.
    Regards
    Burger

    Sorry guys
    You have lost me. I have searched the form and I have worked through the whole pdf you suggested.
    I have no idea what I am supposed to do or see or use "ItemGroup@ SELECT ItmsGrpCod, ItmsGrpNam FROM OITB ORDER BY ItmsGrpCod"
    As a test I created a test report with the following parameters to test how it would present itself in B1
    1.     A static parameter with no list. Allow custom Values = True, Allow Multiple Values = True u2013 B1 result. A box that I could enter anything. Defeating the object as I wanted a list of valid options
    2.     A static parameter with no list. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. A box that I could enter anything. Defeating the object as I wanted a list of valid options
    3.     A static parameter with a list. Allow custom Values = True, Allow Multiple Values = True u2013 B1 result. A box that I could select multiple values from a list. I could not add my own value. Defeating the object as the list is static
    4.     A static parameter with a list. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. A drop down box where I could select one of the values. Defeating the object as the list is static
    5.     A static parameter with a list. Allow custom Values = False, Allow Multiple Values = False u2013 B1 result. Same as in point 4
    6.     A Dynamic parameter. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. Same as in point 1 & 2. No Dynamic list returned and can not add own option
    As mentioned. All the parameters work in Crystal as one expect it to. What I am after is what should I change in B1 so that the report works the same as in Crystal.
    Where in B1 should it be changes and to what should it be changed.
    If the changes should be done in crystal to cater for B1 then what should be changes where to what
    I am not that familiar with B1.
    In my test report I use B1 table OITM.
    My parameter is Item (Crystal syntax {?Item}) and I use it in a filter to say {OITM.ItemCode} = {?Item}
    Regards
    Burger

  • Running Crystal report( with subreport)  from VB6 using CRAXDRT.Report

    The application (vb5 with CRAXDRT.Report version 11.5) works for more than 50 different reports.
    This special report has a subreport with 5 Link elements.
    Report works fine with Crystal XI. But when gets fired  from vb6 application, after 2 or 3 times
    (sometimes at the first time), application crashes with following error message pops up:
    vb6.exe-Application Error.
    Instruction at 0x0000000 referenced memory could not be "read"
    The link elements of subreports are:
    (MSP for Main report's stored proc, SSP for Subreport's stored proc)
    MSP . @Prior  -> SSP.@Prior
    MSP . @managerID -> SSP.@managerID
    MSP . @showall -> SSP.@showall
    MSP . officeid-> SSP.@officeid
    MSP . manager -> SSP.manager  (items with @ sign are Parameters)
    If I delete the last link element this error never happens !
    Any clue ?

    For starters, get the latest Service Pack for CR XI r2 from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    Make sure you also have the latest SP for VB 6.
    Ludek

  • Crystal Report Viewer error out when running multiple instances

    Hi,
    I am using java 1.4 with BO XI R3.0.
    I notice I can only run one report at a time. If I was to run two reports, the 1st report will error out while 2nd report will run to its completion. Reports run on separate popup windows. I have tested with IE6, IE8 and also FireFox 3.0
    Depending on the timing, I get different kinds of error.
    "A request was cancelled. The necessary security privileges could not be verified. This indicates a problem with the security server. [RCIRAS9190] [RASLIB9002] "
    "The Report Processing Server session you are using to connect is in the process of being shut down. You need to retry. [RCIRAS0200]"
    I am using PSReportFactory and set parameters into CrystalReportViewer to display.
    processParametersu2026
    CrystalReportViewer viewer = new CrystalReportViewer();
    pfieldDV = new ParameterFieldDiscreteValue();     
    pfieldDV.setValue(formatViewerParameterInputValue(tempRpt[1],tempParam[x]));
    pfield.getCurrentValues().add(pfieldDV);
    viewerParameters.add(pfield);     
    viewer.setParameterFields(viewerParameters);     
    createCrystalViewer(m_oReportWrap.getRequest(), response, sInstanceId,viewer);
    private void createCrystalViewer(HttpServletRequest request, HttpServletResponse response2, String sInstanceId, CrystalReportViewer viewer) throws ReportSDKExceptionBase, FileNotFoundException, IOException, SDKException
             IEnterpriseSession eSession = oLogon.getCESession();
             IInfoStore iStore = oLogon.getInfostore();
             IInfoObject rptObject = findInfoObject(iStore,sInstanceId);
             IReportSourceFactory rptFactory =    IReportSourceFactory)eSession.getService("","PSReportFactory");
             IReportSource reportSource = rptFactory.openReportSource(rptObject,Locale.ENGLISH);
             IReport report = (IReport)rptObject;
            ConnectionInfo conn = new ConnectionInfo();
            ConnectionInfos connInfo = new ConnectionInfos();   
            ServletContext sc = getServletConfig().getServletContext();
            String realPath = sc.getRealPath("");
            Properties prop = new Properties();
            viewer.setOwnPage(true);
            viewer.setDatabaseLogonInfos(connInfo);
            viewer.setReportSource(reportSource);               
            viewer.setURI(request.getRequestURI() + "?reportID=" + rptObject.getID() + &viewerType=vwrTypeJavaSDK&viewID=1");
            viewer.setEnterpriseLogon(eSession);
            viewer.setHyperLink("New Window");
            viewer.processHttpRequest(request, response2, sc, null);

    Thanks to both of you.
    I actually was able to resolved this issue by tracking the values inside IEnterpriseSession.
    // Perform Crystal Enterprise Logon
    ISessionMgr oSessionMgr = CrystalEnterprise.getSessionMgr();
    IEnterpriseSession m_oCESession = oSessionMgr.logon(sUserid, sPassword, sSystemName,  getSecTypeString(iSecType));
    System.out.println("in logon m_oCESession "+m_oCESession);
    The UserInfo in the SeucuritySession: userInfo was always null so whatever i pass in, it was not storing them.
    (EnterpriseSession:logon=(SecuritySession:userInfo=null)
    All i need to do is to add   IUserInfo userInfo = null;  before IEnterpriseSession then it will store the user & password.

  • JRC bug: apostrophe in string parameter passed to Crystal Report with Command datasource to SQL Server

    Post Author: nl11087
    CA Forum: JAVA
    A single quote/apostrophe in string parameter passed to a Crystal Report with Command datasource connecting to a SQL Server database, using sqljdbc driver does not escape the special character correctly. When doing a preview in the Crystal Reports IDE it allows you to escape the input parameter as expected and work correctly, but through the JRC component it fails. For string parameters without special sql server characters I experience no problems at all. When replacing the Command with a direct table there is also no problem.
    Reproduction:
    1. create a database db1, create a table table1 with a String type column col1.
    2. Create new report Report1.rpt, create a connection to above, Add Command using 'SELECT col1, col2, col3 FROM table1 WHERE col1 = '{?Par1}' . Add a parameter field Par1 : String
    3. In your java stand alone application using JRC add the parameter Par1 with a value "Jon Doe's Value" containing a single apostrophe. Export to PDF. (I also tried MSWord and this failed too, similar behavior). Additionally, in another test try to replaceAll("'","''") to escape it, preventing the code to break, but now it does not retrieve the expected row anymore and you end up with an empty report.
    Exception StackTrace:
    com.crystaldecisions.reports.exportinterface.exceptions.ExportException: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
    at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    Caused by: com.crystaldecisions.reports.formatter.formatter.c: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
    ... 17 more
    Caused by: com.crystaldecisions.reports.dataengine.be: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.nr(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.bn(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.bp(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
    at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.aa(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
    ... 23 more
    Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.n: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.reportdefinition.datainterface.p.a(Unknown Source)
    ... 35 more
    Caused by: com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.queryengine.driverImpl.o.eC(Unknown Source)
    at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ap.ea(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ap.h(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ap.dV(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
    at com.crystaldecisions.reports.queryengine.bc.if(Unknown Source)
    at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
    at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ae.cy(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ae.cz(Unknown Source)
    at com.crystaldecisions.reports.queryengine.b1.bc(Unknown Source)
    ... 36 more
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 's'.
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement$StatementExecutionRequest.executeStatement(Unknown Source)
    at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
    ... 48 more
    - JRCAgent3 detected an exception: An error occured while exporting the report
    at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)

    Post Author: nl11087
    CA Forum: JAVA
    A single quote/apostrophe in string parameter passed to a Crystal Report with Command datasource connecting to a SQL Server database, using sqljdbc driver does not escape the special character correctly. When doing a preview in the Crystal Reports IDE it allows you to escape the input parameter as expected and work correctly, but through the JRC component it fails. For string parameters without special sql server characters I experience no problems at all. When replacing the Command with a direct table there is also no problem.
    Reproduction:
    1. create a database db1, create a table table1 with a String type column col1.
    2. Create new report Report1.rpt, create a connection to above, Add Command using 'SELECT col1, col2, col3 FROM table1 WHERE col1 = '{?Par1}' . Add a parameter field Par1 : String
    3. In your java stand alone application using JRC add the parameter Par1 with a value "Jon Doe's Value" containing a single apostrophe. Export to PDF. (I also tried MSWord and this failed too, similar behavior). Additionally, in another test try to replaceAll("'","''") to escape it, preventing the code to break, but now it does not retrieve the expected row anymore and you end up with an empty report.
    Exception StackTrace:
    com.crystaldecisions.reports.exportinterface.exceptions.ExportException: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
    at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
    Caused by: com.crystaldecisions.reports.formatter.formatter.c: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
    ... 17 more
    Caused by: com.crystaldecisions.reports.dataengine.be: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.nr(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.bn(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.bp(Unknown Source)
    at com.crystaldecisions.reports.dataengine.n.else(Unknown Source)
    at com.crystaldecisions.reports.dataengine.s.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.aa(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.<init>(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.a(Unknown Source)
    ... 23 more
    Caused by: com.crystaldecisions.reports.reportdefinition.datainterface.n: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.reportdefinition.datainterface.p.a(Unknown Source)
    ... 35 more
    Caused by: com.crystaldecisions.reports.queryengine.driverImpl.m: JDBC Error: Incorrect syntax near 's'.
    at com.crystaldecisions.reports.queryengine.driverImpl.o.eC(Unknown Source)
    at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ap.ea(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ap.h(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ap.dV(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ax.if(Unknown Source)
    at com.crystaldecisions.reports.queryengine.bc.if(Unknown Source)
    at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
    at com.crystaldecisions.reports.queryengine.bc.do(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ae.cy(Unknown Source)
    at com.crystaldecisions.reports.queryengine.ae.cz(Unknown Source)
    at com.crystaldecisions.reports.queryengine.b1.bc(Unknown Source)
    ... 36 more
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 's'.
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
    at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement$StatementExecutionRequest.executeStatement(Unknown Source)
    at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(Unknown Source)
    ... 48 more
    - JRCAgent3 detected an exception: An error occured while exporting the report
    at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)

  • Does BOXI support crystal reports with parameter references in formulas?

    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.

    Hi,
       In Crystal Reports under File -> Report Options >check convert Null Values to default > Verify on first refresh > Verify stored procedures on first refresh.
    This corrected the issue by allowing the query engine time to locate those columns and map them to the query being sent by the report.
    The convert null values was added because those field were being used in the record selection and grouping.
    Regards,
    Vinay

  • I'm getting the below issue when I try to deploy a report with Dynamic parameters, when I deploy it with static parameters I'm not getting this issue.

    I’m getting the below issue when I try to deploy a crystal report with Dynamic parameters in BI Launch Pad, when I deploy the same report with static parameters I can deploy and run it. I have Restarted the BI server, still the issue exitno use. kindly help me on this issue.
    “This error occurred: Adding Crystal Report "CrystalReport1.rpt" failed. The server with kind rptappserver returned an error result. Failed to copy the report file to the report object. Refreshing the report object properties might have failed. Failed to read data from report file CrystalReport1. Reason: Failed to read parameter object”.

    BO does not run dynamic params through the report as would happen without BusinessObjects (BO) or Crystal Reports Server (CRS).  When you publish a report with dynamic parameters to BO/CRS, the prompt is published to the repository so that it can be accessed through the Business View Manager (which can be installed as part of the client tools).  In order for this to work a couple of things need to happen:
    1.  You need to be sure that you check the "Update Repository" box on the Save As screen the first time you publish the report.
    2.  Your BO/CRS user needs to have "view" access to the Crystal2013ReportApplicationServer in the Servers section in the CMC - in fact, the Everyone group should be given view access to the server in order for dynamic prompts to work correctly.
    3.  In the Business View Manager, the Administrator user needs to give your user, or, even better, a Crystal Developers group full control access to the "Dynamic Cascading Prompts" folder.
    Best practice for dynamic prompts in a BO/CRS environment is to actually create the prompts in the Business View Manager.  This will allow you to create a single data connection that can be reused and also create lists of values such that the same list or prompt can be reused by multiple reports.  If you just create the prompts in Crystal, you will end up with multiple data connections to the same database, the prompts will use the whole query for the reports to get the dynamic values instead of just a focused query to the lookup table that contains the values, and there ends up being lots of duplication and chaos.
    -Dell

  • Crystal Reports with BEx Query using Custom Exit Variable

    Hi,
    We have BW BEx Query using Customer User Exit variable to derive  the Fiscal Week for Last Year (called it VAR2) based on another user input variable Current Fiscal Week (called it VAR1).
    VAR2 is derived from VAR1 in CMOD via some codings and thus it DOES NOT have the "Variable is Ready for Input" flag ticked in the BEx. VAR1 is user input variable, so it has "Variable is Ready for Input" flag ticked in the BEx.
    When we create a Crystal Reports with the BEx Query using variable VAR2, and when we run it we got an error message saying "Failed to execute query; '[]<java.lang.UnsupportedOperationException: No Selection State Support!ZP_MI_LYPUBWEEK>'. Redesign your query or contact the data source maintainer to solve the problem".  (note: ZP_MI_LYPUBWEEK is VAR2 in this case).
    Could anyone please assist? Surely, CR supports BEx customer user exit variables like the above, right?. I also refer to the forum below as it seems to have a similar issue (except mine with an error message), but it does not provide a solution in it.
    Crystal Reports with BEx Query using Custom Exit Variable
    Thanks,
    Andy

    Hi Vibhav,
    We have the SAP Crystal Reports for Enterprise XI4.0 Version 14.0.0. Not sure if SP0 or other SP, got to check with Basis Team later.
    We tried that "mandatory" option and did not work either.
    Anyway, SAP has now come back again saying it is something they will fix it in next release/version. We got a phone call from them and a reply below to our OSS.
    23.08.2011 - 08:20:49 CET - Info for Customer by SAP  
    I have raised this issue on the Idea#s Place as an enhancement request
    on the below link:
    https://cw.sdn.sap.com/cw/ideas/5586
    This ER contains the information of including the customer exit
    variables in the report without checking the #input for ready# option.
    This ER can be considered for being implemented in the future
    versions. You can refer to SAP Note: 1515837 - How To: Enhancement
    Request Process - "Idea Place" for more information regarding the Idea
    Place.
    Cheers,
    Andy

  • Crystal report with Parameters failed on Sybase

    I have created the report in crystal report 2008 which accept the parameter. I have used the SybaseServer provider. The report worked fine in Crystal report designer. However when I run the same report through the .net application it fails saying "Logon Failed."  I have set the connection like
    foreach (CrystalDecisions.Shared.IConnectionInfo reportConnectionInfo in reportDocument.DataSourceConnections)
                    if (useTrustedConnection)
                        reportConnectionInfo.SetConnection(dbServerName, databaseName, true);
                    else
                        reportConnectionInfo.SetConnection(dbServerName, databaseName, userId, password);
    The above code work for SQL Server but failed with Sybase.

    First make sure you have SP 2 for CR 2008;
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Next, I'm not sure if the connection you want to use is trusted or not. If it is, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b021e47e-be1d-2b10-c6b2-efa9db3abd6b] article. If it is not, see the code documented in the following resources to log on  to the database;
    sample apps;
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    (see vbnet_win_dbengine)
    Article;
    https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true
    (the above applies to most versions of CR)
    Also, see the following article for general help on db connectivity:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Edited by: Ludek Uher on Jan 4, 2010 6:57 AM

  • Crystal Report with 2 oracle datasources (left outer join) very slow

    I've made a crystal report with 2 oracle datasources (2 commands). I'm using crystal 10.
    These 2 data sources are linked with a left outer join.
    The report takes a while to run (more then one hour).
    i can run Both query's in a couple of seconds/minutes, but it looks like crystal is runniing the second query for each record in the first query.
    When i make the same report in BO. Just 2 queries with merged dimensions in the report, it is taking a couple of minutes to complete the report.
    Question is if somebody knows how crystal is handling these 2 different data sources.
    Is there any way to say to crystal to fetch the data of both queries and do the join after that?
    At the moment it looks like that crystal is going to the other datasource for each record in the first query, which will cost a lot of time.

    Joris,
    I've always had a bad time combining a Command with any other object. Performance seems to drop dramatically, just as you've described.
    I can't tell you specifically why, it falls off so bad...
    The solution I've used is to do a linked  server query (at least that's what it's called in MS SQL Server) I've never used Oracle, but I'd be VERY surprised if it didn't have that same feature. This will keep 100% of the processing on the server(s) and will get your run times back to what you would expect.
    HTH,
    Jason

  • Crystal Report with text(csv) data file, can we set it as input param? C#

    Hi,
    I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
    Can someone help me with my problem? following is the thread that I have started.
    Crystal Report with text(csv) data file, can we set it as input parameter?
    Thank you in advance.

    Looking at the original thread, you are connecting to the text file via the DAO database engine:
    "I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
    Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • ITunes Home Sharing No Longer Allows File Transfers between Apple IDs???

    It used to be that if my wife purchased a song in iTunes with her Apple ID, I would seemlessly and automatically get a copy of the song downloaded to my iTunes account with my Apple ID via the Home Sharing functionality.  Has this functionality been

  • Not getting GUI of CUE

    Hi, recently we upgrade cme version from 7.1 to 9.0, after that i an unable to get the GUI of CME and CUE but yesterday i run one command on the router file privilege 0 in the config mode, after that my CME GUI come but now i am getting the problem o

  • Sound Out on 24" imac

    Does anyone know if the headphone jack out on the 24" imac puts out has a stronger signal than say the 20" imac. It has a more powerful amp inside, almost twice the power from what I have read. Does this power get to the headphone jack or is this a s

  • How do i get the adobe acrobat software toolbar?

    How do i get the adobe acrobat software toolbar?

  • Help! Algorithm...can you solve it??????

    does anyone know how to convert this Algorithm to Jave code and if you do show me how and explain why?? An Algorithm for computing the closure of X with respect to F Repeat Oldx = X; For every Y -->A in F, if Y is a subset of X then add A to X Until