Query not running in report builder 3.0

hi, i can run my query in mgmt studio (version 2008R2) and within the query designer of report builder 3.0 but it will not run from report builder. i get a generic error message of "an error has occurred during report processing. (rsProcessingAborted)".
the query uses report parameters and is written with dynamic sql (using a pass-through to oracle). any ideas why the query doesn't execute in report builder ? thanks a bunch,

Hi KanataPablo,
According to your description, it seems that you are using linked server to pass value to oracle. Seeing that the query is worked well in Management Studio, you may have the permission to connect to oracle (In this scenario, make sure the users to run the
query in SSMS and Report Builder are the same user). So this issue can be caused by the user’s permission to connect to report server, the credential of data source and the dynamic query.
We can add the current user as a Login, then click Properties and navigate to User Mappings page, enable ReportServer and ReportServerTempDB options.
We can try to type user name and password, and enable “Use as Windows credentials” as the credential used to connect to data source.
Try with dynamic query:
="Select column1, column2 From tableName where ID IN (" + JOIN(Parameters!param1.value, ",") + ")"
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • REP-1057: ' PATH_TO_REPORT/report.rdf' is not a valid Report Builder file.

    Current Level : Report Builder 6.0.8.27.0
    We migrated custom reports build on Report 2.5 to 6.0.8.27.0 on apps/db version
    from 11.0.3 / 8.0.5 to 11.5.10.2/9.2.0.6. Platform was moved from HPUX to Redhat
    Linux 4.
    When we open migrated reports then original reports get converted and compiled
    by Report Builder 6 without any problem. But once saved and when modified some
    of the reports get corrupted and have 'REP-1057' error.
    Anyone had any similar problem and found solution?
    Thanks

    I have a .rdf file. When I try to open the same in Report Builder for 6i, nothing happens! It just does not open!
    I tried to convert the report into .REX from unix - I get the following error
    REP-1057: 'FAIAPXINROH.rdf' is not a valid Report Builder file.
    But, the report is running fine from Oracle apps.
    I need to open this .rdf to change somethings.
    Any suggestions?
    Regards,
    Arun Tirumale

  • PDF not generated in Report builder 3.0

    Here, I m using Oracle Report Builder 3.0 Rel 2.1. I am running a report from FORM through RUN_PRODUCT , problem is that when i generate the PDF file it shows sometime message of formula column error which is i have seen in rdf is correct and some time it creates blank. But in this report Report Builder Parameter Form also exists , i hide this parameter form in FORM thourgh PARAMFORM in ADD_PARAMETER. I think it requires the parameter values that report generated PDF blank or generated an error of formula column. But i run this report through report parameter form and generate PDF correctly.
    Please Help me this regards
    Shahid Shafi
    Analyst/Programmer
    Novartis Pharma (Pakistan) Ltd.
    [email protected]

    Hi KanataPablo,
    According to your description, it seems that you are using linked server to pass value to oracle. Seeing that the query is worked well in Management Studio, you may have the permission to connect to oracle (In this scenario, make sure the users to run the
    query in SSMS and Report Builder are the same user). So this issue can be caused by the user’s permission to connect to report server, the credential of data source and the dynamic query.
    We can add the current user as a Login, then click Properties and navigate to User Mappings page, enable ReportServer and ReportServerTempDB options.
    We can try to type user name and password, and enable “Use as Windows credentials” as the credential used to connect to data source.
    Try with dynamic query:
    ="Select column1, column2 From tableName where ID IN (" + JOIN(Parameters!param1.value, ",") + ")"
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SAP Query not running

    Hi,
    I am doing SAP query, If I select Company Code, i need to get the resule of
    GL a/c, Buss Area, Cost Center, Profit Center
    For this in table joints i taken KNA1, KNB1, SKB1, CSKS
    then also i could not run the report.
    Rgds
    sunfico

    Hello
    When you have chosen a query and a user group on the initial screen, you can execute the query online or in the background.
    Executing Queries Online
    Executing Queries in the Background
    Improving Response Times
    Interactive Functions for ABAP Lists
    Direct Interaction
    Check this link for further notes executing queries
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    regards

  • Issue is TEXT_IO application API is not working in report builder 10g.

    Issue is TEXT_IO application API is not working in report builder 10g.
    TEXT_IO application api is working in report builder 6i. (Not working in upgrade from Oracle EBiz 11i to Oracle Ebiz R12)
    I saw that details in some forums, client_text_io is available for form builder 10g.
    Is any other api available for report builder 10g?
    If it is available what steps we need to do?

    All the CLIENT_% procedures are part of webutil in Forms. Forms uses the Java applet on the client PC to perform actions on the local PC via webutil. This is not possible for Reports.
    You can still use text_io on the server, but you need some other way to copy the files to/from the client PC.
    I wonder how you used the functionality in EBS R11. Even R11 uses web reports, so text_io already worked on the server, not the client PC.

  • The report server service is not running on Reporting Service Point server

    Hi,
    I have encountered a problem, my reporting service point has stopped working. (SCCM 2012 R2)
    In srsrp.log:
    Check state SMS_SRS_REPORTING_POINT
    12/15/2014 5:48:54 AM 3152 (0x0C50)
    Check server health. SMS_SRS_REPORTING_POINT
    12/15/2014 5:48:54 AM 3152 (0x0C50)
    Successfully created srsserver SMS_SRS_REPORTING_POINT
    12/15/2014 5:48:54 AM 3152 (0x0C50)
    Reporting Services URL from Registry [https://s-hub-sql1.domain.local/ReportServer/ReportService2005.asmx]
    SMS_SRS_REPORTING_POINT 12/15/2014 5:48:54 AM
    3152 (0x0C50)
    The request failed with HTTP status 404: Not Found.
    SMS_SRS_REPORTING_POINT 12/15/2014 5:48:54 AM
    3152 (0x0C50)
    (!) SRS not detected as running SMS_SRS_REPORTING_POINT
    12/15/2014 5:48:54 AM 3152 (0x0C50)
    Failures reported during periodic health check by the SRS Server S-HUB-SQL1.domain.local.
    SMS_SRS_REPORTING_POINT 12/15/2014 5:48:54 AM
    3152 (0x0C50)
    Registry change SMS_SRS_REPORTING_POINT
    12/15/2014 5:48:54 AM 3152 (0x0C50)
    Waiting for changes for 1 minutes SMS_SRS_REPORTING_POINT
    12/15/2014 5:48:54 AM 3152 (0x0C50)
    Timed Out... SMS_SRS_REPORTING_POINT
    12/15/2014 5:49:54 AM 3152 (0x0C50)
    Set configuration SMS_SRS_REPORTING_POINT
    12/15/2014 5:49:54 AM 3152 (0x0C50)
    In windows event log:
    On 12/15/2014 6:39:28 PM, component SMS_SRS_REPORTING_POINT on computer S-HUB-SQL1 reported:  The report server service is not running on Reporting Service Point server "S-HUB-SQL1"; start the service to enable reporting.
    In configuration manager service manager, the service sms_srs_reporting_point is running.
    In Reporting services configuration manager, the service is running.
    If I restart the reporting service, it doesn't helps.
    What is not properly?

    I've already found the reason why all stopped working - someone deleted the report manager URL HTTPS bindings (in Report services configuration manager). Added it back, than reporting started to work. Awww!

  • 3EA4 -- can not run SqlDeveloper report to "table" style

    The same SqlDeveloper report, which was/is working in 3EA3 - same Oracle user, same privileges, same platform, same connection, same Java version, same same ... can not run the report to the "table" style. It works only with the "Script" style. So, betwen EA3 and EA4 something changed. No work around, just lost capability.
    note: I tried many SqlDeveloper reports that were working in the "table" style - none of them works in the "table" style anymore with EA4 - that really is not cool :(
    Here is one of those reports:
    SELECT
       object_name "Object_Name",
       object_type "Object_Type",
       CASE OBJECT_TYPE
          WHEN 'PACKAGE BODY' THEN 'alter package ' || OWNER||'.'||OBJECT_NAME || ' compile body;'
          WHEN 'SYNONYM'      THEN 'CREATE PROCEDURE ' || OWNER||'.tmp_compile_synonym AS BEGIN EXECUTE immediate ''alter synonym ' || OWNER||'.'||OBJECT_NAME || ' compile''; END tmp_compile_synonym;'||chr (10) || '/'||chr (10) || 'EXECUTE ' || OWNER||'.tmp_compile_synonym;'||chr (10) || 'DROP PROCEDURE ' || OWNER||'.tmp_compile_synonym;'
          ELSE 'alter ' || lower (OBJECT_TYPE) || ' ' || OWNER||'.'||OBJECT_NAME || ' compile;'
       END "Compile_Statement"
    FROM dba_objects
    WHERE owner=upper(:OWNER)
    AND status = 'INVALID'
    ORDER BY object_type;Note: Reverted to EA3 until the problem is idenfied/solved
    Edited by: zaferaktan on Feb 24, 2011 11:50 AM
    Edited by: zaferaktan on Feb 24, 2011 12:30 PM

    ok, I did update to JDK 1.6_24 , edited the jdk file under .sqldeveloper to point to the correct JDK version and invoked the 3EA4 from the command line:
    raisin:~/sqldeveloper3EA4$ ./sqldeveloper.sh -J-Xmx1024m
    still having the issue. None of the "table" style reports work.
    So, something definitely changed in EA4 that broke the "table" style reports (at least in my case).
    I am using the same "thin" connections that I created before (it picked it up from the .sqldeveloper settins). Did anything change for the thin jdbc connection in EA4 compared to EA3 ? I looked at the change list and don't see it there. I saw bug 09883309 reported here: 3.0 final+EA4: Doesn't work with 11.1 OCI/Thick driver , but don't think it has anything to do with the problem I am seeing - I don't use OCI, but jdbc thin. I wonder if there is a problem with 11.2.0.2 jdbc thin in EA4 and my database server version (10gR2 base version on RHEL 4).
    But if Jim doesn't have the problem with the same JDK version and "almost" the same platform - maybe the database server version is an issue ? All I know, these reports (table style) was/is working with the EA3 - but not in EA4 .
    When I run the report - the execution window does not display anything - all grey - then if I click on the green arrow (go/run) button, I see the following exceptions in the terminal from which I invoked the sqldeveloper:
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:470)
         at java.lang.Integer.parseInt(Integer.java:499)
         at oracle.javatools.data.HashStructure.getInt(HashStructure.java:410)
         at oracle.dbtools.raptor.config.DBConfig.getInt(DBConfig.java:1044)
         at oracle.dbtools.raptor.controls.grid.ResultSetTableModel.init(ResultSetTableModel.java:112)
         at oracle.dbtools.raptor.controls.grid.OracleRSTModel.init(OracleRSTModel.java:30)
         at oracle.dbtools.raptor.controls.grid.RSTModelFactory.getResultSetTableModel(RSTModelFactory.java:47)
         at oracle.dbtools.raptor.controls.grid.ResultSetTable.setQuery(ResultSetTable.java:115)
         at oracle.dbtools.raptor.controls.display.DisplayResultTable.updateQuery(DisplayResultTable.java:158)
         at oracle.dbtools.raptor.controls.display.DisplayResultTable.refresh(DisplayResultTable.java:112)
         at oracle.dbtools.raptor.controls.display.DisplayPanel.refresh(DisplayPanel.java:769)
         at oracle.dbtools.raptor.controls.display.DisplayPanel.refresh(DisplayPanel.java:618)
         at oracle.dbtools.raptor.report.addin.ReportEditor$1.actionPerformed(ReportEditor.java:164)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • GROUP BY is Not working in Reports Builder 9.0.4

    I have test run a query from both Jdev & SQLplus.
    It works fine, and I have used the GROUP BY in Reports before (that is what makes this so frustrating).
    The query looks something like this:
    SELECT
    a.programid,
    nvl(sum(b.fy06),0.00) sum06,
    nvl(sum(b.fy07),0.00) sum07,
    nvl(sum(b.fy06 + b.fy07),0.00) total
    FROM
    table1 a
    left join table2 b on a.item_id = b.item_id
    WHERE 1=1
    GROUP BY rollup(a.programid)
    As I mentioned this works fine from Jdev or sqlplus, but not when I run the report from Reports Builder 9.0.4 I get an error after the Param form runs and before the BeforeReport trigger.
    The error reads as follows:
    ORA-00937: not a single-group group function
    SELECT ==> a.programid, nvl(sum ....the rest of the query....
    Can anyone give me suggestions on what may be causing this, or preferably give any advice as to how to fix it.
    Thanks for your time.

    Good Morning Everyone,
    We have similar Warning Message, too.
    We used Report Builder 10.1.2
    In Toad, there is no problem like other.
    If you have a chance, please share with us.
    Thanks in advance

  • Report runs in Report Builder but hangs in Report Server

    Hi,
    I am using Oracle Reports 10g to build a report with many formula columns. Everything was working perfectly till I added some condition in a query in formula columns. After adding it, report is not working in Report Server but runs only in Report Builder. If I removed this condition, report runs OK but I need it. This condition is very simple, just filtering be a decoded column (i.e. stts = 'D')
    Can anyone suggest how to solve this problem?

    Hi,
    what is the application server version you are running your reports on?
    If it is 10.1.2.0.2 to 10.1.2.2  and you are using PDF SUBSETTING (check the [PDF:Subset] section in the uifont.ali file in your server) then you are most probably facing Bug:5029259 . To resolve the issue read further Doc ID 363868.1 in Oracle Support. In short, your options are:
    1. apply patchset 10.1.2.3 or maybe patch 5029259 is enough.
    2. or make sure no NULL values are returned in the report. Use nvl where possible. If there was no problem before making the changes then maybe checking the new formula columns would be enough. I made this change myself when facing this issue and it appears that this resolved the problem.
    3. or change REPORTS_ENHANCED_SUBSET to NO in windows registry if under windows or $ORACLE_HOME/bin/reports.sh if under linux.  REPORTS_ENHANCED_SUBSET=YES is necessary if you are using TTF subsetting, though. So this might not be an option.
    Julius Z

  • Can not run complex report with ReportClientDocument using POJO beans.

    Hi All,
    Any help would be very appreciated I have been stack on this issue for the last 4 hours.
    My report has parameters, a ResultSet and subreports that themselves have both parameters and ResultSet.
    The report runs well in Crystal Report Designer but not on my application with ReportClientDocument API.
    The excpeiton I am getting is:
    ======================================================================
    Caused by: java.lang.NullPointerException
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.do(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.bs.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.bs.byte(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.a3.if(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.else(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.r.for(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.proxy.remoteagent.h.for(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
    16:22:56,796 INFO  [STDOUT]      at com.tramada.documents.businessobjects.BODocumentProvider.generateDocument(BODocumentProvider.java:178)
    16:22:56,796 INFO  [STDOUT]      at com.tramada.documents.service.impl.DocumentServiceImpl.generateDocumentContent(DocumentServiceImpl.java:125)
    16:22:56,796 INFO  [STDOUT]      ... 58 more
    This is my class that is trying to do the work.:
    ======================================================================
    BODocumentProvider.java Created on 19/05/2008
    This software is the confidential and proprietary information of Tramada
    Systems Pty Limited.
    package com.tramada.documents.businessobjects;
    import java.io.ByteArrayInputStream;
    import java.util.List;
    import java.util.Locale;
    import com.businessobjects.samples.pojo.POJOResultSetFactory;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.occa.managedreports.IReportAppFactory;
    import com.crystaldecisions.sdk.occa.report.application.ISubreportClientDocument;
    import com.crystaldecisions.sdk.occa.report.application.ParameterFieldController;
    import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.application.SubreportController;
    import com.crystaldecisions.sdk.occa.report.data.Fields;
    import com.crystaldecisions.sdk.occa.report.data.IField;
    import com.crystaldecisions.sdk.occa.report.data.ITable;
    import com.crystaldecisions.sdk.occa.report.data.Tables;
    import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
    import com.crystaldecisions.sdk.occa.report.lib.IStrings;
    import com.tramada.core.utils.SoftMap;
    import com.tramada.documents.DocumentDataProvider;
    import com.tramada.documents.DocumentDescriptor;
    import com.tramada.documents.DocumentFormat;
    import com.tramada.documents.DocumentProvider;
    import com.tramada.documents.SubDocumentDescriptor;
    import com.tramada.documents.businessobjects.model.Template;
    import com.tramada.documents.model.DocumentContent;
    import com.tramada.persistence.home.GenericHome;
    Business Objects specific Document Provider.
    public class BODocumentProvider implements DocumentProvider {
        private static final String BO_AUTH_TYPE = "secEnterprise";
        private boolean connect;
        private String userName;
        private String userPassword;
        private String boURL;
        private String documentsFolder;
        private GenericHome home;
    Local cache. Keeps track of document source for better performance.
        private SoftMap<String, ReportClientDocument> cachedSources = new SoftMap<String, ReportClientDocument>();
        // SETTERS & GETTERS
        // SETTERS & GETTERS
        public GenericHome getHome() {
            return home;
        public void setHome(GenericHome home) {
            this.home = home;
        public boolean getConnect() {
            return connect;
        public void setConnect(boolean connect) {
            this.connect = connect;
        public String getBoURL() {
            return boURL;
        public void setBoURL(String boURL) {
            this.boURL = boURL;
        public String getUserName() {
            return userName;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getUserPassword() {
            return userPassword;
        public void setUserPassword(String userPassword) {
            this.userPassword = userPassword;
        public String getDocumentsFolder() {
            return documentsFolder;
        public void setDocumentsFolder(String documentsFolder) {
            this.documentsFolder = documentsFolder;
        // PUBLIC INTERFACE
    Generates a document given its descriptor.
    @param descriptor
               valid document descriptor
    @return Document (generated document).
        public DocumentContent generateDocument(DocumentDescriptor descriptor, DocumentFormat format) throws Exception {
            if (descriptor == null) {
                throw new IllegalArgumentException("descriptor==null");
            if (format == null) {
                throw new IllegalArgumentException("format==null");
            // get the document source.
            // Can not use setDataSource() error code 2147483648?
            ReportClientDocument document = getDocument(descriptor.getDocumentName());
            ParameterFieldController parameterController = document.getDataDefController().getParameterFieldController();
            // insert the main document parameters and there values
            populateParameters(document.getDataDefController().getDataDefinition().getParameterFields(),
                    parameterController, descriptor, "");
            // insert into the main document all the required data.
            Tables tables = document.getDatabaseController().getDatabase().getTables();
            for (int i = 0; i < tables.size(); i++) {
                ITable table = tables.getTable(i);
                String tableAlias = table.getAlias();
                DocumentDataProvider provider = descriptor.getDocumentDataProvider(tableAlias);
                POJOResultSetFactory factory = new POJOResultSetFactory(provider.getDataType());
                document.getDatabaseController().setDataSource(factory.createResultSet(provider.getData()), tableAlias,
                        tableAlias);
            // go through all the sub-documents and do the same thing as for the
            // main document.
            SubreportController subReportController = document.getSubreportController();
            IStrings names = subReportController.getSubreportNames();
            for (int i = 0; i < names.size(); i++) {
                String subDocumentName = (String) names.get(i);
                SubDocumentDescriptor subDescriptor = descriptor.getSubDocument(subDocumentName);
                // get the actual sub document.
                ISubreportClientDocument subDocument = subReportController.getSubreport(subDocumentName);
                // insert the subdocument parameters.
                populateParameters(subDocument.getDataDefController().getDataDefinition().getParameterFields(),
                        parameterController, subDescriptor, subDocumentName);
                // insert into the main document all the required data.
                Tables subTables = subDocument.getDatabaseController().getDatabase().getTables();
                for (int j = 0; j < subTables.size(); j++) {
                    ITable subTable = subTables.getTable(j);
                    String tableAlias = subTable.getAlias();
                    DocumentDataProvider subProvider = subDescriptor.getDocumentDataProvider(tableAlias);
                    POJOResultSetFactory subFactory = new POJOResultSetFactory(subProvider.getDataType());
                    subDocument.getDatabaseController().setDataSource(subFactory.createResultSet(subProvider.getData()),
                            tableAlias, tableAlias);
            // generate the report in the specified format
            ByteArrayInputStream bais = (ByteArrayInputStream) document.getPrintOutputController().export(
                    getReportFormat(format));
            byte[] content = new byte[bais.available()];
            bais.read(content);
            return (new DocumentContent(content));
    Refreshes the connector and all its cached document sources.
        public void refresh() throws Exception {
            cachedSources.clear();
        // PRIVATE ROUTINES
    Populates the document parameters with there values.
        private void populateParameters(Fields parameters, ParameterFieldController controller,
                DocumentDescriptor descriptor, String documentName) throws Exception {
            for (int i = 0; i < parameters.size(); i++) {
                IField parameter = parameters.getField(i);
                String parameterName = parameter.getName();
                if (!descriptor.getParameters().containsKey(parameterName)) {
                    throw new IllegalStateException("missing parameter entry for '" + parameterName + "'");
                Object value = descriptor.getParameter(parameterName);
                if (value != null) {
                    controller.setCurrentValue(documentName, parameterName, value);
    Retrieves the document source. If the source is not cached get it from
    BO. First get the template name that is stored on BO.
        private ReportClientDocument getDocument(String documentName) throws Exception {
            ReportClientDocument source = cachedSources.get(documentName);
            if (source == null) {
                String templateName = getTemplateName(documentName);
                if (userName == null) {
                    throw new IllegalArgumentException("user-name==null");
                if (userPassword == null) {
                    throw new IllegalArgumentException("user-password==null");
                if (boURL == null) {
                    throw new IllegalArgumentException("boURL==null");
                if (documentsFolder == null) {
                    throw new IllegalArgumentException("documents-folder==null");
                // login to BO
                IEnterpriseSession enterpriseSession = CrystalEnterprise.getSessionMgr().logon(userName, userPassword,
                        boURL, BO_AUTH_TYPE);
                IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
                // get the application folder.
                IInfoObjects folders = iStore.query("Select SI_ID From CI_INFOOBJECTS Where SI_PROGID='CrystalEnterprise.Folder' And SI_NAME = '"
                        + documentsFolder + "'");
                if (folders.size() != 1) {
                    throw new IllegalStateException("documents folder '" + documentsFolder + "' not found on BO Server '"
                            + boURL + "'.");
                IInfoObject folder = (IInfoObject) folders.get(0);
                // get the document identified by the template name.
                IInfoObjects templates = iStore.query("select SI_ID, SI_NAME From CI_INFOOBJECTS "
                        + "where SI_PROGID = 'CrystalEnterprise.Report' " + "And SI_INSTANCE_OBJECT = 0 "
                        + "And SI_PARENT_FOLDER = " + folder.getID() + " And SI_NAME= '" + templateName + "'");
                if (templates.size() != 1) {
                    throw new IllegalStateException("template with name '" + templateName + "' not found in folder '"
                            + documentsFolder + "'on BO Server '" + boURL + "'.");
                source = ((IReportAppFactory) enterpriseSession.getService("RASReportFactory")).openDocument(
                        ((IInfoObject) templates.get(0)).getID(), 0, Locale.getDefault());
                cachedSources.put(documentName, source);
            return (source);
    Returns the associated template name for the given document descriptor.
        @SuppressWarnings("unchecked")
        private String getTemplateName(String documentName) {
            Template example = new Template();
            example.setDocumentName(documentName);
            List<Template> templates = (List<Template>) home.findByExampleExcludingAssociations(example);
            if (templates == null || templates.size() != 1) {
                throw new IllegalStateException("no template defined for document name '" + documentName + "'");
            return (templates.get(0).getTemplateName());
    Get the equivalent BO format for the given document format.
    @param format
               document format.
    @return ReportExportFormat
        private ReportExportFormat getReportFormat(DocumentFormat format) {
            if (format.equals(DocumentFormat.PDF)) {
                return (ReportExportFormat.PDF);
            } else if (format.equals(DocumentFormat.WORD)) {
                return (ReportExportFormat.MSWord);
            } else if (format.equals(DocumentFormat.EXCEL)) {
                return (ReportExportFormat.MSExcel);
            return (ReportExportFormat.MSWord);
    Best Regards
    Khalef  Bessaih

    Hello,
    If I understand correctly, you create a local report which choose report from Report Server. You have two query parameters in the report which are returned by stored procedure. Currently, you cannot get default values for these parameters when run the report.
    Based on my test, if we haven’t configure these parameter with Available Values, we can reproduce the same issue. Also, caching issue may cause the same issue. If the issue is persist, please delete the corresponding report in the report server. Then, redeploy
    it to check.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/en-US/6a548d65-35d0-4a3e-8b64-3b7b655c76ee/ssrs-2008-report-parameter-default-value-doesnt-work-when-deployed
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Graph wizard does not work from report builder

    Hi,
    I am again an agian posting the same question because still i am unable to run a graph wizard from my reports builder. When i run this i get a program error "rwbld60.exe has generated an error ...." This shuts down the entire report builder and i need to restart my report builder.
    I have reports 6i on win 2000 with SP2.
    Also i applied 6i latest patch 4.
    I can see dr. watson log generated.
    my machine virtual memory is 893756.
    I am really getting a hard time with this.
    Thanks in adv.,
    shailesh

    Thanks guys for all your support.
    I have this working now. I did a
    fresh install for oracle reports and it worked for me.
    For sure its working now i can't gurantee
    in future. I will conclude this after testing this for couple of days.
    Anyway thanks once agian,
    shailesh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Niranjan Ramakrishnan:
    I would strongly suggest that the reports development team's idea to contact Support on this is a flawed one. I had very similar issues with my reports builder except that the Dr. Watson happened every where (even while just invoking reports builder) - opening the layout editor when graphics were involved, running the report, using the chart wizard, etc.
    I opened a TAR on this with Support. Their response? We can't reproduce it on our computer so bad luck and good bye.
    All I ask is that the reports team give us something to be able to provide some kind of function call trace information when the Dr. Watson does occur.
    I use patchset 5a. Also, btw, I tried to run a report with graphics on Solaris from the builder and guess what? It core-dumped. Any way to send you guys trace files from there atleast?
    Calling support is not an acceptable solution.
    Thanks,
    - NR
    <HR></BLOCKQUOTE>
    null

  • Querying Excel file in Report Builder 3.0

    I set up an ODBC connection in Report Builder 3.0, connected to my Excel sheet as my data source, and I can set up a data set that queries one sheet at a time fine. But can I join two sheets in a data set query? I always get "Syntax error in FROM
    clause." I thought I could use basic SQL syntax in the query and it would be fine. Is there a certain syntax or trick, or can this just not be done?

    Hi (datasci),
    You can create a linked server in SSMS, then create a procedure to join three sheets. Then you can call the procedure in a dataset.
    As we tested in our environment, we create a linked server and the procedure like below:
    --linked server
    EXEC sp_addlinkedserver
    @server = 'ExcelServer',
    @srvproduct = 'Excel',
    @provider = 'Microsoft.ACE.OLEDB.12.0',
    @datasrc = 'c:\Book3.xls.xlsx', -- the path in the server where SQL server locates
    @provstr = 'Excel 12.0;IMEX=1;HDR=YES;'
    EXEC sp_addlinkedsrvlogin 'ExcelServer', 'false'--, 'sa', 'Admin', null
    go
    --procedure
    CREATE PROC proce2
    as
    SELECT a.Name,a.Amount,b.PtNo,b.value,c.Gender
    FROM ExcelServer...[Sheet1$] as a
    left join ExcelServer...[Sheet2$] as b on a.Name =b.Name
    left join ExcelServer...[Sheet3$] as c on c.PtNo =b.PtNo
    Then we call the procedure in the dataset, we get the expected result:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Concatenate results SQL query and CASE use Report Builder Reporting Services

    I need to concatenate the results from a SQL query that is using CASE.  The query is listed below.  I do not need permitsubtype but I need to concatenate the results from the permittype. 
    I tried deleting the permitsubtype query and it would not run correctly.  Please see the query and diagram below.  Any help is appreciated.
    select  PERMIT_NO
    ,(case when
      ISNULL(PERMITTYPE,'') = ''
      then 'Unassigned'
      else (select LTRIM(RTRIM(PERMITTYPE)))
      END) AS PERMITTYPE
    ,(case when
      ISNULL(PERMITSUBTYPE,'') = ''
      then 'Unassigned'
      else (select LTRIM(RTRIM(PERMITSUBTYPE)))
      END) AS PERMITSUBTYPE
     ,ISSUED
     ,APPLIED
     ,STATUS 
     ,SITE_ADDR 
     ,SITE_APN
     ,SITE_SUBDIVISION
     ,OWNER_NAME
     ,CONTRACTOR_NAME
     ,ISNULL(JOBVALUE,0) AS JOBVALUE
     ,FEES_CHARGED
     ,FEES_PAID
    ,BLDG_SF
    from Permit_Main
    where ISSUED between @FromDate and @ToDate

    Hi KittyCat101,
    As per my understanding, you used case when statement in the query, you do not need to display permitsubtype in the report, but when you tried to delete permitsubtype from the query, it could not run correctly. In order to improve the efficiency of troubleshooting,
    I need to ask several questions:
    “I tried deleting the permitsubtype query and it would not run correctly.” As we can see, it has no effect to delete permitsubtype from the query you provided, could you please provide complete sql query for the report?
    Could you please provide detailed information about the report? I would be appreciated it if you could provide sample data and screenshot of the report.
    Please provide some more detailed information of your requirements.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • Bex Query Not Running

    Hello
    I have built BI7 Query and run it. It goes to the portal where I use my user password and it comes back with the following results
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com.sap.ip.bi.base.parameter.ParameterConverter.createFromServletRequest(Ljavax/servlet/ServletRequest;)Lcom/sap/ip/bi/base/parameter/IParameterList;.
    Exception id: 01:49_19/01/08_0045_52644550
    See the details for the exception ID in the log file
    I also cannot save a Web Template neither can I Save a Report using Report Desiner. Both come back with authorisation errror. I think all three could be related or maybe they are differnt.
    Please can you guys help and offer a solution?
    Thanks in advance.
    Steve.

    Hi Lambertus,
    I also face same problem. Please can you elaborate the solution you described or what should I be asking my basis team to do to solve this issue.
    Regards
    Anand

  • How to send a mail to Lotus Notes R5 from Report Builder 3.0.5.8.0 ?

    Dear sir,
    I try to send a mail via Report Builder, and I got the following error message:
    REP-4201:Error occured while initialzing the mail subsystem.
    REP-4202:There is the problem with
    the mail System.
    We use the Lotus Notes R5 mail, not Microsoft Outlook or exchange. Could the Report Builder support it?
    Thanks.
    Lisa

    Hi!
    1. Make sure no one else has opened the same file.
    2. Dont put image on your report.
    later
    Mircea Paciu (guest) wrote:
    : In Report builder 3.0.5.8.0 I can't open some of my *.rdf
    files.
    : When trying to open no error message is generated and the "open
    : dialog" reappears.
    : Some other files can be normally open.
    : Does anyone know how to solve this?
    null

Maybe you are looking for

  • After downloading the latest Mac OS, Hotmail has slowed to a crawl.  Any thoughts?

    Download issues with Hotmail and Mountain Lion; see that rainbow wheel all the time?

  • Error Message When Saving - "A Serious Error Has Occurred...Adobe Muse will now shut down".

    This is the message that keeps popping up everytime I try to save a file in Adobe Muse: I had made revisions to this site at the end of November, 2012 with no problems. After returning from Christmas vacation, I started up Muse and updated to the new

  • OSX Compatibility  - Fresh Install

    Hi Gang I have a Dual Core 2.0 late 2005. Already went thru hoops trying to install an older OEM Black OSX disc, (from my 1.8 SP), before I realized it was not compatible, (would not boot). I've read the article below thoroughly, but I'm not still no

  • Accessing CLOBs in Oracle 8i

    From the research i've done, it seems that there are two ways to access CLOBs in Oracle 8i: InputStream or Reader. The InputStream method uses byte streams and the Reader uses character streams. Is that correct? I haven't been able to determine the p

  • "p" key not working

    I've been having an intermittent problem for some time now with my MacBook Pro keyboard. The "p", "0" and _ keys will suddenly stop working. Sometimes I can fix the problem by opening TextEdit and typing in the the text window. Sometimes it seems to