Error exporting report with sub report and parameters

Post Author: joncombe
CA Forum: JAVA
I am using the JRC to export to a PDF file a report that has a sub report within it. Both the main and subreport connect to an Oracle database via an Oracle ODBC connection and both share a single parameter, RUN_ID. I need to set a value for the parameter in both reports. If I don't do that I get this error:-com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Some parameters are missing valuesI have the following code to update the parameters in both reports.                     ParameterField thisParameter1           = new ParameterField ( );                   ParameterField thisParameter2           = new ParameterField ( );                   Values thisValue1                       = new Values ( );                   Values thisValue2                       = new Values ( );                   ParameterFieldDiscreteValue thisParamDV1= new ParameterFieldDiscreteValue();                   ParameterFieldDiscreteValue thisParamDV2= new ParameterFieldDiscreteValue();                   thisParameter1.setReportName("");                   thisParameter2.setReportName("DQA_GER_Adressverification.rpt");                   thisParameter1.setName("RUN_ID");                   thisParameter2.setName("RUN_ID");                   thisParameter1.setType(FieldValueType.numberField);                   thisParameter2.setType(FieldValueType.numberField);                   thisParamDV1.setValue(254);                   thisParamDV2.setValue(254);                   thisValue1.add(thisParamDV1);                   thisValue2.add(thisParamDV2);                   thisParameter1.setCurrentValues(thisValue1);                   thisParameter2.setCurrentValues(thisValue2);                   parameterFields.add(thisParameter1);                   parameterFields.add(thisParameter2);                  ReportStateInfo repStateInfo = new ReportStateInfo();                  repStateInfo.setParameterFields(parameterFields);                  reqCont.setReportStateInfo(repStateInfo);  With this code in place I have found that if I run using the JRC supplied with Crystal Reports for Eclipse I get the following error:-ERROR - QueryEngine error: verify database failed.ERROR - Disk Exporter: no output file was created by an exporterERROR - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting exportjava.lang.IllegalArgumentException        at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)        at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)        at com.crystaldecisions.reports.a.e.if(Unknown Source)        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.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)ERROR - Failed to export reportcom.crystaldecisions.reports.exporters.format.page.pdf.a.a: Unexpected exception thrown        at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)        at com.crystaldecisions.reports.a.e.if(Unknown Source)        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.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)Caused by: java.lang.IllegalArgumentException        at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)        ... 17 moreERROR - JRCAgent1 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.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)Error exporting report : report. Error is ReportSDKException: An error occured while exporting the reportAn error occured while exporting the reportcom.businessobjects.reports.sdk.d.byte(Unknown Source)com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source) With the JRC supplied with Crystal Reports XIR2 I get this error:- INFO - PdfExporter: serializing pdf document and cleaning upINFO - Disk Exporter: verifying export to destinationERROR - Disk Exporter: no output file was created by an exporterERROR - PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting exportjava.lang.IllegalArgumentException        at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)        at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)        at com.crystaldecisions.reports.a.e.if(Unknown Source)        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.i.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.cf.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.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)INFO - Disk Exporter: finalizing export to destinationERROR - JRCAgent1 detected an exception: java.lang.NullPointerException        at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:870)        at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:811)        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1037)        at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:830)        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)        at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1687)        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1653)        at com.crystaldecisions.reports.queryengine.driverImpl.o.ew(Unknown Source)        at com.crystaldecisions.reports.queryengine.driverImpl.o.if(Unknown Source)        at com.crystaldecisions.reports.queryengine.ao.d4(Unknown Source)        at com.crystaldecisions.reports.queryengine.ao.f(Unknown Source)        at com.crystaldecisions.reports.queryengine.ao.dP(Unknown Source)        at com.crystaldecisions.reports.queryengine.av.if(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.if(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.do(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.try(Unknown Source)        at com.crystaldecisions.reports.queryengine.ba.for(Unknown Source)        at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)        at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)        at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)        at com.crystaldecisions.reports.dataengine.a9.if(Unknown Source)        at com.crystaldecisions.reports.dataengine.a9.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.g(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.i.g(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.k(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.null(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.k(Unknown Source)        at com.crystaldecisions.reports.formatter.formatter.e.p.az(Unknown Source)        at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)        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.i.int(Unknown Source)        at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)        at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.cf.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.ReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)        at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)        at crystalreportrunner.ReportExporter.exportReport(ReportExporter.java:174)        at crystalreportrunner.CrystalReportRunner.main(CrystalReportRunner.java:91)I believe the error is that the SQL query in the main report is being updated with the RUN_ID but the SQL in the sub-report is not. I am not sure why the update to set the RUN_ID in the second SQL query fails, but it seems to me the JRC is not detecting it as a missing parameter and is passing the SQL including {?RUN_ID} to Oracle, causing the JDBC driver to fail with this NullPointerException. I think this because further up in the log I see this:-INFO - Executing query: SELECT v.* FROM v_ger_main vwhere v.run_id = 254INFO - Verifying databaseINFO - Executing query: SELECT h.* FROM v_ger_av_ls_tagging hwhere h.run_id = {?RUN_ID}ERROR - QueryEngine error: verify database failed.Both connections are from the same database, but the first has the updated value (254) whilst the second query still seems to have the parameter and so fails to verify.Can someone suggest how I can fix this problem or if I have missed something that is required?Thanks.Jon.

Post Author: Ted Ueda
CA Forum: JAVA
What happens if, instead of passing in parameter field values, you pass the report source object to the viewer (ReportViewerBean for stand-alone or CrystalReportViewer for web)?  The viewer should introspect the report for the parameter fields and bring up a parameter field entry dialog box.  Does such a dialog box come up?  Is only the main report parameter field queried for, or both main and subreport paramter fields?  When you enter correct values for the field, does the report display?
Hopefully, the above should narrow down the issue.
By the way, JRC doesn't support ODBC connections, only Java based connectivity such as JDBC, JavaBeans and XML.  If you have a report with ODBC, then it looks for a JNDI connection with the same name.
Sincerely,
Ted Ueda

Similar Messages

  • Scheduled report with sub-reports  (Encapsulating page failed).

    Hello Everyone
    I am fairly new to reporting and SAP.
    I do have a main schedule report containing 4 sub-reports in the sections and 1 sub-report in the page header.
    The report runs fine in the Infoview development folder, But whenever its deployed in system_testing folder, it doesn't open and gives the following error:
    "ERROR IN FILE XXX:Encapsulating page failed."
    I talked to DBA to change the permission for the user, but they don't agree. since its a scheduled report, user can only access the instance of the report, not to run it.
    How can I make sure that the sub-reports don't run when user opens the report.
    I appreciate any help in advance
    Thanks and regards
    MJ

    Hi All,
    We have been facing the "Encapsulating page failed " error sporadic in our Crystal reports. It is not happening always.
    We have tried with different user accounts, it did not help much. Also tried various suggestion from the following SAP Notes:
    1536964 - Encapsulating page failed - The error change to Database error when the preference is changes
    1211088 - Error message "Encapsulating Page Failed" - This is not the case with our reports, we still have some reports facing the same error without an subreports in it
    1543412 - Infoview warning: "Error in File xxx : Encapsulating page failed - tried implementing the recommendation , but no help
    1900672 - Error: Encapsulating page failed while viewing Crystal Reports based on stored procedures in BOXI 3.1  -- Our reports are not based on stored procedures.
    We have faced this error in many different version of BOXI 3.1 like SP4.1, SP7.1, SP7.2. But the behaviour is similar. We have a clustered machine with 2 BOE servers and 2 Tomcat servers.
    I have tried activating E2E tracing, but I really couldn't understand the reason for error from the logs. Our reports connect to datasource using webservices.
    some information from the error traces.
    Verkapseln der Seite nicht möglich.. Internal error: CrpeMgrPEEncapsulatePageEx
    I would like someone to help me troubleshoot the problem. I can share the logs if needed. Please direct me to the correct forum if this is outdated.
    Regards,
    Prarthana

  • Report with sub-reports have to put ODBC credential several times

    I designed a report with several sub-reports in Crystal XI, which all have same  ODBC connection, when other developers got the .rpt file, they open the designer to run this report from their local PC, it will prompt them to put their user name and password for the ODBC SEVERAL TIMES. We all have the same ODBC connection set up, after they put the user name and password several times, the report works, but itu2019s so annoying.
    Is there a way to avoid putting ODBC user name and password in Crystal Designer? Or put once at main report and pass to all subreports?

    Hi,
    According to my understanding if we are using an odbc connection and the username and password for the database is same for the entire user, then you can just create an ODBC connection string in crystal report. Where in you will manually specify the dsn to be used, username and password will also be stored in that connection string.
    So next time you run a crystal report, it would take the username and password for this connection string.
    Thanks,
    kuldeep

  • Report with Sub Reports?

    I'm not sure how to do this report (or even to pull the data for that matter)  Here are my basic tables:
    <Rental>
       Rental ID, MemberID, DateOut, DateIn, Notes
    <Rental_Movies>
       Rental ID, TitleID
    <Rental_Music>
       Rental ID, TitleID
    <Movies>
       ID, Title
    <Music>
       ID, Title
    <Members>
       ID, Last, First, ...
    Note: some fields are left off for Brevity.
    I want the report to look something like:
    RentalID   Last, First    DateOut    DateIn
         Notes
       List each movie matching RentalID
        Movie_Title
       List each music matching RentalID
        Music_Title
    I can get it close, but it interleaves the Music with the Movies which I dont want.  I am currently pulling all the data through left joins,
    Thanks
    Peter

    ok this is working along well with the sub reports.  I now need to add one more item in the report footer.  Basically a summery...So the report should look like:
    Rental ID Last, First, Date, Notes
    1 Carlson, Peter 1/1/2009
        The Mummy
         The Mummy Returns
    2 Smith, John 1/3/2009
       The Mummy Returns
        Bubba plays the trombone
    Summary:
       The Mummy: 1                     The Mummy Returns: 2                 Bubba plays..: 1
    The summary is linked to the data.  The inidividual movie / music records are not date stamped.  The Rental record is.  The basic query would be select Movies.Title, count(Moviews.Title) from Movies, Rental_Movies where Rental_Movies.ID=Movies.ID and Rental.Movies.Rental_ID in (Select id from Rental where date > 1/1/2009)
    However the dataset is passed in whole to the report and a filter is used on the main table to eliminate the Rental Records.
    Any ideas are welcome here!
    Peter

  • Changing JDBC Datasource Configuration for Report with Sub reports at once

    The Env  details are as follows
    CR Developer
    Version 14.0.2.364 RTM
    We are using JDBC Connection Datasource for our CR2011 report which contains 30+ sub reports. Each of the sub report uses a JDBC Datasource to connect to Postgres database and Since the JDBC connection string changes on each environment we need to edit each sub report every time we switch environments.
    Is there a easy way to accomplish this on all sub reports at one shot?
    I am aware that if we use ODBC connection it would be easy since we can just change the DSN config and it will start working. But we are not using ODBC connection since We are seeing that our report (with too many sub reports) crashes when we use ODBC driver for Postgres.
    Any help/suggestion would be appreciated.

    Hello,
    CR also has a fully support Java Reporting Engine. If you have Java developers available check out this forum:
    SAP Crystal Reports, version for Eclipse
    You can find more info and samples from here:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    And help.sap.com for the SDK reference material.
    Don

  • How do I create a folder or report from a query with a union and parameters

    I have created folders with unions but I am having difficulty coverting a query with a union and parameters.
    The following works great in SQL*Developer without parameters, but I want to change to use parameters for the year and quarter and use it in Discoverer:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
      AV.FIRM_NAME VENDOR_NAME,
      AV.BIDCLASS CONTRACT_CODES,
      AV.AWAMT AWARD_AMOUNT,
      AV.SOL_MODE FORMAL_INFORMAL,
      AV.CERT BUSINESS_ENTITY,
      AV.ETHNICITY ETHNICTY,
      AV.PO_NUMBER_FORMAT CONTRACT,
      SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
      CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID       = VP.VENDOR_ID ) )
    AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')
    AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
      AV.FIRM_NAME,
      AV.BIDCLASS,
      AV.AWAMT,
      AV.SOL_MODE,
      AV.CERT,
      AV.ETHNICITY,
      AV.PO_NUMBER_FORMAT
      union
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
      AV2.FIRM_NAME VENDOR_NAME,
      AV2.BIDCLASS CONTRACT_CODES,
      AV2.AWAMT AWARD_AMOUNT,
      AV2.SOL_MODE FORMAL_INFORMAL,
      AV2.CERT BUSINESS_ENTITY,
      AV2.ETHNICITY ETHNICTY,
      AV2.PO_NUMBER_FORMAT CONTRACT,
      0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    not exists (SELECT 'X'
                  FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
                 WHERE av2.po_number = vp2.po_number
                       AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = '4')
                       AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = '2009' ))
    AND (TO_CHAR(AV2.AWDATE,'Q') = '4')
    AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
      AV2.FIRM_NAME,
      AV2.BIDCLASS,
      AV2.AWAMT,
      AV2.SOL_MODE,
      AV2.CERT,
      AV2.ETHNICITY,
      AV2.PO_NUMBER_FORMAT Can someone provide a solution?
    Thank you,
    Robert

    Hi,
    You can take the parameters to the select so that you will be able to create conditions over them.
    Try to use this SQL instead of your and in the discoverer workbook create the conditions and parameters:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
    AV.FIRM_NAME VENDOR_NAME,
    AV.BIDCLASS CONTRACT_CODES,
    AV.AWAMT AWARD_AMOUNT,
    AV.SOL_MODE FORMAL_INFORMAL,
    AV.CERT BUSINESS_ENTITY,
    AV.ETHNICITY ETHNICTY,
    AV.PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
    CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID = VP.VENDOR_ID ) )
    --AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')*
    --AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )*
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
    AV.FIRM_NAME,
    AV.BIDCLASS,
    AV.AWAMT,
    AV.SOL_MODE,
    AV.CERT,
    AV.ETHNICITY,
    AV.PO_NUMBER_FORMAT ,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    union
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
    AV2.FIRM_NAME VENDOR_NAME,
    AV2.BIDCLASS CONTRACT_CODES,
    AV2.AWAMT AWARD_AMOUNT,
    AV2.SOL_MODE FORMAL_INFORMAL,
    AV2.CERT BUSINESS_ENTITY,
    AV2.ETHNICITY ETHNICTY,
    AV2.PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    not exists (SELECT 'X'
    FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
    WHERE av2.po_number = vp2.po_number
    AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = TO_CHAR(VP.PAYMENT_DATE,'Q') )
    AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = TO_CHAR(VP.PAYMENT_DATE,'YYYY') ))
    --AND (TO_CHAR(AV2.AWDATE,'Q') = '4')*
    --AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')*
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
    AV2.FIRM_NAME,
    AV2.BIDCLASS,
    AV2.AWAMT,
    AV2.SOL_MODE,
    AV2.CERT,
    AV2.ETHNICITY,
    AV2.PO_NUMBER_FORMAT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    Tamir

  • Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls

    We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue.  I can give you the responses to your questions you have requested in that thread:
    Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
    Version of the .NET Framework - MS .NET Framework 3.5 SP1
    How did you deploy? - Installed CR 2008 SP1 runtime with msi package
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
    How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
    Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
    CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
    CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
    We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
    Please let me know if you need anything additional.
    Phil
    "Invalid export DLL or export format" with Crystal Reports 2008
    Posted: Sep 27, 2008 12:36 AM       E-mail this message      Reply 
    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    Exporting a Crystal Report to Excel or RTF format
    .NET application using the Crystal Reports 2008 runtime (version 12.0)
    error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    Server Operating System
    Version of the .NET Framework
    How did you deploy?
    If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    How many libpng10.dll files are on your system? List all instances.
    Any additional comments
    What We Know
    The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
    This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.

    Hi,
    I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
    Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
    So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
    Crpe32.dll        3/1/2008 version 12.0.0.683
    Crxf_xls.dll       3/1/2008 version 12.0.0.683
    Crxf_rtf.dll         3/1/2008 version 12.0.0.683
    crdb_oracle.dll  3/1/2008 version 12.0.0.683
    libpng10.dll       3/1/2008 version 1.0.30.0             122880 bytes
    There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
    Oracle 11.1.0.6 is the DB for the reports.
    Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
    Any idea to fix this issue?
    Thanks
    Kin H Chan

  • Summary Report with 4 Dimensions and 5 Facts

    Hello OBIEE Czars:
    I have a problem.
    I am trying to make a summary report with 4 Dimensions and 5 Facts.
    Out of that only 2 Dimensions are Confirmed.
    Now when I try to bring in all the facts, I get view display error.
    I searched forum for similar issues.
    So I have tried following so far.
    1) Add other dimensions as source and set level to Total for those dims.
    - After doing this, I dont get view display error, but I get blank rows for couple of facts.
    2) I am already aggregating all the measures.
    Please help me out.
    This forum has been very helpful so far.
    Thanks.
    ~Vinay

    Hi
    This method seems fine until you run a request that includes a filter on an unconformed dimension.
    The SQL itself should be quite straightforward (see below) but the BI Server instance does not seem to be joining this data correctly after posting the 2 separate queries to the database.
    SELECT
    x.dim1, x.dim2
    x.fact1_agg_measure
    y.fact2_agg_measure
    FROM
    SELECT
    dim1, dim2
    SUM(fact1.measure) fact1_agg_measure
    FROM
    dim1,
    dim2, --UNCONFORMED+
    fact1
    WHERE
    .... .... join fact1 to dimensions as normal
    AND dim2 = 'BUSINESS_IDENTFIER'
    GROUP BY
    dim1, dim2
    ) x,
    SELECT
    dim1
    SUM(fact2.measure) fact2_agg_measure
    FROM
    dim1,
    fact2
    WHERE
    .... .... join fact2 to dimensions as normal
    GROUP BY
    dim1
    ) y
    WHERE
    x.dim1 = y.dim1
    The result set returned in Answers is firstly a correctly aggregated record plus ALL rows from the second query above ??
    Just wondering if anyone else has come across this issue?
    cheers
    Tony

  • GL Trial Balance Report with Effective Dates as Parameters

    We have a requirement to show the GL Trial Balance report with Effective dates as Parameters.
    Current Analysis:
    The Journals get updated with corresponding CCID in GL_BALANCES table when the Journal is posted. GL_BALANCE is SOB specific, if the SOB has month as period then the balances in GL_BALANCES would get updated against the month(period).
    To overcome the period problem, we explored the option of using a View based on GL_JE_HEADERS and GL_JE_LINES for 'Posted' Journal Batches of a SOB. We are checking whether the GL_JE_HEADERS.default_effective_date lies between the :p_from_date and :p_to_date which is sent to the Report as a parameter. The above idea does not return expected data when the custom Trial Balance Report is run.
    Following is the Query being used:
    SELECT cc.segment4 ACCOUNT, bal.code_combination_id,
    bal.begin_balance_dr
    + SUM (NVL (gljel.accounted_dr, 0)) opening_bal_dr,
    bal.begin_balance_cr
    + SUM (NVL (gljel.accounted_cr, 0)) opening_bal_cr,
    ffv.description,
    (SELECT SUM (NVL (gljel.accounted_dr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    --AND gljel.code_combination_id =
    -- bal.code_combination_id
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_dr,
    (SELECT SUM (NVL (gljel.accounted_cr, 0))
    FROM gl_je_headers gljeh,
    gl_je_lines gljel,
    gl_code_combinations gcc
    WHERE gljeh.default_effective_date BETWEEN :p_from_date
    AND :p_to_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.code_combination_id = gcc.code_combination_id
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND gljeh.actual_flag = 'A'
    AND gcc.segment4 = cc.segment4
    GROUP BY gcc.segment4) c_cr
    FROM gl_period_statuses per,
    gl_code_combinations cc,
    gl_balances bal,
    gl_je_headers gljeh,
    gl_je_lines gljel,
    fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE cc.chart_of_accounts_id = :p_chart_of_accts_id
    AND bal.currency_code = :p_currency
    AND bal.actual_flag = 'A'
    AND bal.period_name = per.period_name
    AND cc.template_id IS NULL
    AND cc.code_combination_id = bal.code_combination_id
    AND per.set_of_books_id = :p_set_of_books_id
    AND per.application_id = 101
    AND :p_from_date BETWEEN per.start_date AND per.end_date
    AND gljeh.period_name = per.period_name
    AND gljeh.default_effective_date <= :p_from_date
    AND gljeh.je_header_id = gljel.je_header_id
    AND gljel.period_name = gljeh.period_name
    AND gljel.set_of_books_id = :p_set_of_books_id
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'JSWEL_ACCOUNT'
    AND gljeh.status = 'P'
    AND gljel.status = 'P'
    AND cc.summary_flag = ffv.summary_flag
    AND cc.segment4 = ffv.flex_value
    AND gljeh.actual_flag = 'A'
    AND gljel.code_combination_id = bal.code_combination_id
    GROUP BY bal.begin_balance_dr,
    bal.begin_balance_cr,
    cc.segment4,
    ffv.description,
    bal.code_combination_id
    Kindly suggest if I am missing anything. I am sure that the great guns here can help me out.
    Thanks
    Sumit

    suggest to create customize TB report.

  • Run Report with Pass Number and Varchar Lexical Parameter values

    Dear Sir/Madam
    Due to an urgent change required to a report I would most appreciate it if you can please advise me if it is possible to get this report working by either passing in multiple lexical parameters or one signle lexical parameter when calling the SRW.RUN_REPORT command with the following methods:
    Firstly: When calling report with a run_no and spr_cd passed in through one lexical:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_PARAM=RUN_NO=TO_NUMBER(28) AND SPR_CD=SUPP1
    Both with a TO_NUMBER and without, whereby I attempt to do a SUBSTR within the query of the called report to derive the RUN_NO Oracle Reports fails to accept the SUBSTR.
    Secondly: I am now trying to call the with passing two lexical parameters into the report as follows:
    cmd_line: REPORT=D:\DEV\REMITTANCE.rdf BACKGROUND=YES BATCH=NO DESFORMAT=PDF DESTYPE=FILE DESNAME=D:\DEV\REMITTANCE.pdf
    CP_L_RUN_NO=||TO_CHAR(lv_run_no)|| CP_L_SPR_CD=||lv_spr_cd;          
    NOTE: The above is an output of the actual command line and not what is passed into the command line, thus the quotes are missing. Please also note that the report is running fine with the only a hard coded RUN_NO value PASSED without the SPR_CD.
    Unfortunately this is also causing issues as the RUN_NO is a number and as you know you can only pass in strings.
    Your urgent help is required on this matter please as our client is expecting a solution this afternoon.
    Hope to hear form you soon.
    Kind regards
    Andrew Mason

    Dont Worry I've worked it out...

  • Call Report with ParamForm=yes and Rep-52007

    I have forms and report services 10.2.0.2 installed on my Win2003 server.
    Reports runs perfectly with paramform=no but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page. the same report with paramform=no and hard coding paramter runs perfectly.
    This is the procedure i am using after adding hidden_action i start getting REP-52007 instead of the page cannot be displayed.....
    PROCEDURE show_report(pRptServer varchar2,pRptObj varchar2,pRptFormat varchar2,pRptPath varchar2,pRptParameter varchar2,pParamForm varchar2) IS
         repid REPORT_OBJECT;
         rep_status varchar2(30);
         v_rep VARCHAR2(100);
         vjob_id varchar2(100);
         v_reportserver varchar2(50):=pRptServer;
         v_runformat varchar2(50):= pRptFormat;
         hidden_action varchar2(1000);
         v_report_other VARCHAR2(4000) :='';
    begin
                   repid := FIND_REPORT_OBJECT(pRptObj);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,pRptPath);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,v_runformat);
                   --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,pRptParameter||' paramform='||pParamForm);
                   -- code for pfaction
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME);
                   hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE);
                   hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT);
                   hidden_action := hidden_action ||'&userid=' ||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
                   hidden_action := hidden_action ||'&'||v_report_other;
                   SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'pfaction='||hidden_action||' '||pRptParameter||' paramform='||pParamForm);
                   v_rep := RUN_REPORT_OBJECT(repid);
                   vjob_id := substr(v_rep,length(v_reportserver)+2,length(v_rep));
                   rep_status := REPORT_OBJECT_STATUS(v_rep);
                   while rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   loop
                        rep_status := REPORT_OBJECT_STATUS(v_rep);
                   end loop;
                   if rep_status = 'FINISHED' then
                        WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||v_reportserver||'','_blank');
                        message('Finished');
                   else
                        message('Error');
                   end if;
    end;
    Edited by: Zahid Rahim on Oct 2, 2009 10:39 AM

    but when i use paramform=yes it show html param form but pressing submit query it show The page cannot be displayed page
    for Paramform=yes u have to enter values manually.
    open the following link.
    REP-52007: Parameter form format error
    http://www.orafaq.com/forum/t/97088/2/
    sarah

  • Project mat. proc. report with monthly breakup and cumulative for year

    Hi All,
    can any body suggest a report for  "Project material procurement report  with monthly breakup and cumulative total for a financial year "
    Thanks in Advance.
    Regards,

    Hi Ahmed,
    Thank you very much for the response.
    I am seeking the std sreport which can give the details for the project material consumption report with monthly breakup with the cumulative month total to year.
    ex. jan 10 units , june -10 units , nov 10 units, total (year) =30
    regards,

  • Please help to get onhand stock report with last purchase and billed date warehouse and item wise

    please help to get onhand stock report with last purchase and billed date warehouse and item wise

    Hi Rajeesh Ambadi...
    Try This
    SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',  
      T1.LASTPURDAT ,t1.LastPurPrc
    FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
    INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
    WHERE
    T0.ONHAND>0
    AND T0.WhsCode ='[%0]'
    Hope Helpful
    Regards
    Kennedy

  • Form report with both edit and column link

    hi experts,
    How can we create form report with both edit and column link. Ie, the form should have both the Edit link and column link. When we click on the edit link(in page1) it should go for the page2 and the page2 should display the corresponding row fields which should be editable. but when i click the column link it should bring me to the next page but the corresponding values of the column should not be editable.
    Regars,
    KK

    hi,
    Here i have achieved this by making the column link and page navigation.

  • Report with material number and planned delivery time

    Is there any standard report with material number and planned delivery time ?

    Hi,
    I do not know any standard report. Please try SE16 + MARC...
    BR
    Csaba

Maybe you are looking for

  • H264 at 1920x1080 frame rate

    How can I export HD footage from FCP using Compressor to an H264 file at the 1920x1080 frame rate that http://www.apple.com/quicktime/technologies/h264/ states is possible but Compressor defaults to 1280x720 in the H264 settings and I can't work out

  • Plot fill hides the grid.

    I want to use color regions on my graph. But, if I use a background image, it doesn't adjust with the scale. If I use plot fill and create data arrays for my boundaries, it hides the grid. Does anyone know how to accomplish this? (see attached pictur

  • How to produce folio files with 5.5?

    After combing through these forums to understand the differences between 5.5 with and without DPS, I was under the impression that I could produce a folio file using 5.5, but without having to invest in DPS by saving the folio to an acrobat.com accou

  • Updated to Mountain Lion and also updated Aperture now ipad and iphone images are unsupported?

    I've looked all over here and maybe I've missed it, but the only images that are missing or receiving the unsported image are the ones that have been taken with the iphone or ipad. Any help on this issue would be greatly appreciated. I've tried repro

  • Mophie air problems :( can anyone help ?

    I ordered a mophie air juice pack last week from the apple online store. When I opened the box I noticed it wasn't charged at all, while the manual says it will be ready charged. Anyway, I gave it a good charge and put my 3gs in it. I checked the LED