Error when publishing report to remote crystal 2008 server

In attempting to publish a report to a remote crystal server (see code below) I get this exception. 
Since the server is on a remote host, it doesn't make sense to me to set the BOBJHome property or pass the file path.  This is why I am using the addUniqueFile() with the byte[] parameter file contents. 
Is this the cause?  Is there a better way?  Please let me know if anyone has ideas. 
Thanks,
--Jeff.
[http-8080-Processor25] ERROR gov.nrc.nsts.reporting.backend.helpers.PublishCrystalReportHelper - Could not publish report, exception:
com.crystaldecisions.sdk.occa.managedreports.reportadd.internal.b: Adding Crystal Report "6cc6326cc9dbc0" failed. An internal error occurred.
      at com.crystaldecisions.sdk.occa.managedreports.reportadd.internal.d.a(Unknown Source)
      at com.crystaldecisions.sdk.occa.managedreports.reportadd.internal.d.refreshReportObjectProperties(Unknown Source)
      at com.crystaldecisions.sdk.plugin.desktop.report.internal.m.refreshProperties(Unknown Source)
      at gov.nrc.nsts.reporting.backend.helpers.PublishCrystalReportHelper.execute(PublishCrystalReportHelper.java:99)
     public void execute() {
          try {
               // Ensure that the new parent is a folder
               String query = "SELECT * FROM CI_INFOOBJECTS "
                   + "WHERE SI_ID = '" + cmsId + "'";
               IInfoObjects parents = oInfoStore.query(query);
               if (parents.size() != 1) {
                    resultSet.addException(new Exception("Parent Element not found: CMSID="+cmsId) );
                    return;
              IInfoObject parent = (IInfoObject) parents.get(0);
              // Enforce business logic
              if ((parent instanceof IFolder)==false) {
                   // Can't add folder to a non-folder
                    resultSet.addException(new Exception("Parent element must be a Folder: " + parent.getTitle()));
                    return;
               //You need to set the CeEnterpriseContext.BOBJ_ENTERPRISE_HOME property first
               //in order to upload new reports because the runtime needs to have access
               //to some utility files located in the Business Object Home directory
               //Modify this to point to your Business Objects installation directory
               //String BOBJHome = "C:\\Program Files\\Business Objects";
               //Retrieve the system properties
               //Properties properties = System.getProperties();
               //Set the Business Objects home directory
               //properties.setProperty(CeEnterpriseContext.BOBJ_ENTERPRISE_HOME, BOBJHome);
               //Update the system proeprties
               //System.setProperties(properties);   
               //Retrieve the PluginMgr object.
               IPluginMgr oPluginMgr = oInfoStore.getPluginMgr();
               //Use PluginManager to retrieve the Report plugin, which is needed to publish a new report.
               IPluginInfo oPluginInfoNewReport = oPluginMgr.getPluginInfo("CrystalEnterprise.Report");
               //Create a new InfoObjects collection to add the new report to
               IInfoObjects oInfoObjects = oInfoStore.newInfoObjectCollection();
               //Add the newly created report plugin to the oInfoObjects collection. This will create
               //a new InfoObject based on the type of plugin passed in.
               oInfoObjects.add(oPluginInfoNewReport);
               //Retrieve the newly created report InfoObject
               IInfoObject oInfoObjectNewReport = (IInfoObject)oInfoObjects.get(0);
               //Set the report name and file location
               InstanceNameBean inb = (InstanceNameBean)Helper.getDto(params, InstanceNameBean.class);
               oInfoObjectNewReport.setTitle(inb.getName());
               //FilePathBean fpb = (FilePathBean)Helper.getDto(params, FilePathBean.class);
               //oInfoObjectNewReport.getFiles().addFile(fpb.getPath());
               byte[] reportContents = (byte[])Helper.getDto(params, byte[].class);
               oInfoObjectNewReport.getFiles().addUniqueFile(reportContents);
               //Set the parent folder for the new report.
               oInfoObjectNewReport.properties().setProperty(CePropertyID.SI_PARENTID, cmsId);
               //Refresh the report properties to update the new report information before
               //committing the changes to the InfoStore
               IReport oReport = (IReport)oInfoObjectNewReport;
     -->          oReport.refreshProperties();  <-- !!throws exception here!!
               //Commit the new collection to the CMS using the commit method. This publishes the new report.
               oInfoStore.commit(oInfoObjects);
          } catch (SDKException e) {
              logger.error("Could not publish report, exception: ", e);
               resultSet.addException(e);

This is an example of a stored procedure that is trying to be linked to a new report as the only datasource.
If I remove the parameter I can create a report, however this will return all of the results of thw query to the report, rather than the desired results. If I add the parameter on the Crystal Report, the stored procedure then has to return all of the results to Crystal and then perform the filtering of records. By using a parameter in the stored procedure, you should be able to do all of the filtering as part of the query on the databse server, making this more efficient.

Similar Messages

  • Getting Administrative Priviledge error when trying to install Pro on 2008 Server

    We are trying to  install Adobe Pro 8 and recieve the error message that you have to be an administrator, i  have tried using the local admin and the domain admin account...Please advise

    We have no idea about your server's configuration or any of that nor should we. That aside you will have to work out your issues yourself. You are a) trying to install an Acrobat version from the stoneage on a relatively modern OS and b) generally Adobe desktop apps are not supported on any server operating system.
    Mylenium

  • Crystal Reports 2008 Server Error when viewing report

    Hello All,
       I have loaded a CR 2008 report onto the CR 2008 Server. When I view the report from InfoView or CMC, I get the following error message:
    Error in File <report name>: Unknown Database Connector Error .
    I setup the ODBC datasources on the server as they are on my client PC where the Report originally worked. Are the ODBC datasource connections supposed to copy over with the report? Or do I have to manually enter them into the "Database Configuration" section?
    Thank you in advance.

    1212487 - Error: "CRAXDRT Error Occured on Server. Error Number:-2147221005"
    Symptom
    A report is called through the Active Server Pages (ASP) Report Server to be displayed in the Report Viewer for ActiveX. However, the report is displayed with blank pages and when the viewer is switched to the Report Viewer for HTML the following error is displayed:
    "CRAXDRT Error Occurred on Server. Error Number:-2147221005 Error Description: 006ASP 0177 Server.CreateObject Failed~Invalid Class String"
    The same ASP application returns the report correctly when it is called from a client computer with the full version of Crystal Report 8 Developer Edition installed.
    Resolution
    It was found that the file, Emfgen.dll, was not installed and registered on the web server computer during the installation of the Crystal Reports ASP Reports Server. The report could be displayed correctly on the client computer, without Crystal Reports Developer Edition installed, after this file had been installed on the web server computer.
    For more information on installing the Crystal Reports web components please search for and download Scr8_WebManualInstall.zip from our website at:

  • Error when linking report to stored procedure defined with one input parm

    Error when linking report to stored procedure defined with one input parameter
    The report will work ok, when the parameter is removed from the stpred procedure
    An unhandled win32 exception occurred in crw32.exe[4480]
    Stored Proc (sql server 2005)
    USE [Allegro]
    GO
    /****** Object:  StoredProcedure [dbo].[SP_Test]    Script Date: 07/08/2009 10:42:14 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[SP_Test](@valuationmode VARCHAR(55)) as
    Begin
    select
         valuation,
         valuationtime,
         valuationmode
    from valuation
    where valuationmode = @valuationmode;
    End;

    This is an example of a stored procedure that is trying to be linked to a new report as the only datasource.
    If I remove the parameter I can create a report, however this will return all of the results of thw query to the report, rather than the desired results. If I add the parameter on the Crystal Report, the stored procedure then has to return all of the results to Crystal and then perform the filtering of records. By using a parameter in the stored procedure, you should be able to do all of the filtering as part of the query on the databse server, making this more efficient.

  • Failed to commit objects to server. Error while publishing reports from BW

    Hi,
    I am getting below error while publishing reports from BW to BO.
    "0000000001 Unable to commit the changes to Enterprise. Reason: Failed to commit objects to server : #Duplicate object name in the same folder."
    Anyone having any solution for this. Thanks in advance.

    Hi Amit
    It would be great if you could add a little info about how you solved this issue. Others might run into similar situations - I just did:-(
    Thank you:-)

  • Error when sending report output to printer from Forms 10g

    Hi,
    I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
    terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
    Thanks,
    Anna
    PROCEDURE SEND_TO_PRINTER IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    rep_server system_variables.reports_server%type;
    alldone          exception;
    BEGIN
         select reports_server
         into rep_server
         from system_variables;
         if rep_server is null then
              msg_alert('Error getting the reports server name', 'I', FALSE);                
              raise alldone;
         end if;
         :ctrl.run_report_errors := 'N';                    
         repid := find_report_object('REP_OBJ1');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         IF :ctrl.rg_print = 'P' THEN
              --Send the output to printer.
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
         ELSIF :ctrl.rg_print = 'R' THEN
              --Rich Text Format
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
         END IF;
         v_rep := RUN_REPORT_OBJECT(repid);
         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
              null;
         ELSE
              :ctrl.run_report_errors := 'Y';
              msg_alert('Error when running report.' || rep_status, 'I', FALSE);           
         END IF;
    EXCEPTION
         when no_data_found then
              msg_alert('Error getting the reports server name', 'I', FALSE);      
         when alldone then
              null;     
    END;

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • 404 error when publishing to FTP server.

    I'm getting the 404 error when publishing my iWeb site to my FTP server.  Please help.
    It says I have a good connection and publishes but then I get the error when I "Click to go to the site."  I've read where I have to upload the file to my server but with the file index_html.  Do I rename my iWeb file, domain, to index_html?

    I'm getting the 404 error when publishing my iWeb site to my FTP server.  Please help.
    It says I have a good connection and publishes but then I get the error when I "Click to go to the site."
    A 404 errors means the file is not on the server.
    Checking the connection is just testing the FTP connection.
    I've read where I have to upload the file to my server but with the file index_html.  Do I rename my iWeb file, domain, to index_html?
    Do I rename my iWeb file, domain, to index_html?
    No, you don't. The domain file is where iWeb  stores its assets. It stays on your computer. It has no meaning outside it. iWeb publishes the index.html file and all the other files.
    Read this : The concept of iWeb Sites
    So if your pages do not load, check for their presence on the server.

  • Window error when publishing Muse change, can't pubish page update

    Window error when publishing Muse change, can't pubish page update. Any suggestions?
    It happens after I updated my website payment page with a new Paypal html. That html is below with x's put in to the code. Why doesn't Muse or Windows like this code in Muse?
    <script type="text/javascript" data-pp-pubid="9xxxxx6cec" data-pp-placementtype="540x200"> (function (d, t) {
    "use strict";
    var s = d.getElementsByTagName(t)[0], n = d.createElement(t);
    n.src = "//paypal.adtag.where.com/merchant.js";
    s.parentNode.insertBefore(n, s);
    }(document, "script"));
    </script>

    Window error when publishing Muse change, can't pubish page update. Any suggestions?
    It happens after I updated my website payment page with a new Paypal html. That html is below with x's put in to the code. Why doesn't Muse or Windows like this code in Muse?
    <script type="text/javascript" data-pp-pubid="9xxxxx6cec" data-pp-placementtype="540x200"> (function (d, t) {
    "use strict";
    var s = d.getElementsByTagName(t)[0], n = d.createElement(t);
    n.src = "//paypal.adtag.where.com/merchant.js";
    s.parentNode.insertBefore(n, s);
    }(document, "script"));
    </script>

  • Java Error When Publishing

    So I have an applicational prototype that I need to have out by the end of the day today, and all of a sudden Flash Catalyst states that the project cannot be published due to an error. It also said to check the Code view to see what's wrong. Yesterday it did say that the error was a "Java Heap Space" error, but today there is absolutely nothing in the problems listing even though it still outputs that there's an error when publishing the project.
    The prototype builds and runs in the browser just fine, but it's publishing that becomes the problem. I am not a Flex developer by any means, but as a user experience designer, I understand how to edit some of the coding, so if anyone could shed some light on this, I will do my best to fix the problem with any solutions that will work.
    I appreciate the help guys!
    -- Rick

    To the original poster, Rick:
    If you're seeing a "Java Heap Space" error message, this is a (not very user-friendly) way of the program telling you it's running out of memory.  Catalyst tries to detect and warn you when your project is getting too large, but it's not always perfect.
    Did you see any warnings about the size of the images you've imported into your project?  Very large images can certianly be one source of problems.
    Here are a few tips for dealing with large images:
    Resize them to be smaller using a another app like Photoshop, before you import into Catalyst.  Shoot for a file size of 100-300 KB at the most, for very large "gallery"-style photos.  Other images should be < 100 KB (remember, people viewing your site will have to download all this).
    In Catalyst, when you're done shrinking down an image to the right size, choose Optimize Artwork > Rasterize in the heads-up display to "lock in" the smaller size.
    In Catalyst, choose Optimize Artwork > Convert to Linked Image for any especially large photos.  This can speed up the initial load time of your site, and it will also help avoid memory problems when publishing.
    Hope that helps!
    - Peter

  • Report Designer - Error when Loading Report

    Hi,
    We have created a report in Report Designer (7.0) and saved it. When we execute it runs fine. After closing the report and trying to reopen it, the report does not open. It gives an error "Error when Loading Report". Our BI frontend patch is 14.
    Did anyone encounter this issue and is there a solution to this.
    Thanks
    Hemant

    Hello,
    Please go to SE38 -> RS_REPORT_MAINTAIN,
    Type your report name, and DT als "Report Type".
    Goto edit mode, copy&paste this XML into txt file and send it to me ([email protected]). I will check whats going on with this report. Loading should be always possible.
    Regards, Karol Kalisz, BI Development

  • WorkFlow Error when publishing

    Hello, 
    I am having errors publishing workflows. This was working and all of a sudden stopped. From the error message I am taking it as a permissions issue? 
    Here is the code it spits out: 
    System.InvalidOperationException: Operation failed with error System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
    at Microsoft.SharePoint.SPAppPrincipalManager.GetManager(SPWeb web)
    at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.EnsureAppPrincipal(SPWeb elevatedWeb)
    at Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.<SetupApplicationEcosystem>b__3()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<Run
    Anyone have any thoughts? This happens with all sorts of workflows, even basic ones as shown in the above example!
    Thanks,
    Will 

    Hi,
    For your issue, Re-register the workflow service using command:
    Register-SPWorkflowService -SPSite 'https://myhost/mysite' -WorkflowHostUri 'https://workflowhost' -AllowOAuthHttp -Force
    Reopened SharePoint Designer again and test again.
    Here are similar posts, you can use as a reference:
    https://social.technet.microsoft.com/Forums/en-US/61b2cfad-355d-4a43-8dd6-7d6813cd1b2f/sharepointdesigner-error-when-publishing-a-workflow?forum=sharepointcustomizationprevious
    http://sp2013.pro/2013/04/solution-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run-cannot-set-unknown-member/
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Error when publishing to file

    i keep getting "an unknown error" when publishing to file or publishing all to mobileme...
    It still works if i just publish to mobileme.
    Any ideas?
    Im trying to get my site going on go daddy, and kinda really need it in a folder...

    If you are still getting the error then its likely that you have a corrupt domain file.
    To prove this, quit iWeb, create a new folder on your desktop and drag your domain file out of - Home Folder/Library/Application Support/iWeb - into this.
    Relaunch iWeb to force it to create a new domain file, add some content and try publishing to a folder.
    If this works, your original file is corrupt.

  • Adobe Captivate 6 Error when publishing

    Help!  I having trouble publishing a training that my employees can view.  When they open the project they are getting the first image here that is essentially blank.  I have attempted to reduce the size and save to different folders etc. but nothing seems to work. 

    Hi there,
    Could you tell me the complete version of Captivate (Help > About Adobe Captivate).  6.0.1.240
    Which version of Adobe Reader or Acrobat are they using?  Adobe Reader XI
    Can you publish this locally on your system (not to network drive directly), check force republish option also, and are you able to view it on your end?  I can pull up the file from my computer that is saved in the same drive that the agents are attempting to pull up.  But, I am not sure if it is viewing for me because I have it on my system.
    Re: Adobe Captivate 6 Error when publishing
    created by Varun Kalra<http://forums.adobe.com/people/Varun+Kalra> in Adobe Captivate - View the full discussion<http://forums.adobe.com/message/5855412#5855412

  • SharePointDesigner - Error when publishing a workflow

    Hi.
    When i´m publishing my workflow, sharepoint designer rises the following exception:
    "Error were found when compiling the workflow. The workflow files were saved but cannot be run." - "Unexpected error on server associating the workflow."
    The workflow is really simple; i used some custom activities (to read details from an attached excel document) and then i have to do many checks and about 12 approvals.
    I have recreated the workflow and it seems that adding the 7th approval creates this error; when publishing with 6 approvals everything is fine.
    My Question: What is the error, where can i find more information regarding this issue, maybe it´s a bug in designer? Are there any known workarounds that can help? I really need so many approvals :-)
    Is there a way to split the workflow in 2 or 3 parts, that can do the "job" of the big one?
    I´m using Sharepoint Server 2010 with the current SPD (-> Microsoft Information Worker VM).
    Thx for help

    I finally found a solution how to solve this issue:
    In the web.config file of the current site collection (where i was publishing my workflow) i have appended a timeoutvalue for my requests:
    Old entry: <httpRuntime maxRequestLength="51200"/>
    New entry: <httpRuntime
    maxRequestLength="51200"
    executionTimeout="300"
    />
    This will give my workflow some more time to publish!
    Source: http://www.manjuke.com/2011/05/fixed-sharepoint-designer-error.html

  • Publishing error when publishing one section

    I am publishing my material per module and receive the following error when publishing one of the modules:
    Publishing Activity Log:
    Task
    GMT Training Guide / Creating numbering styles in document
    Path
    /49b77e2d-7666-443e-a2fa-edbfc9aa22b2/Parts/pr.oxmlprint.multi.xml     
    Comment
    Processing project failed
    Ref. #
    -1673847682
    All of the other modules publish with no problems.
    Any assistance in this regard would be much appreciated.
    Thanks,
    Angie

    Did you copy the text in there? Could be the following:
    The problem is related to concept frames. Some concept frames have not regular charachters. Those characters aren't visible in the edit mode. The are only visible if you copy the text of the concept frame to word. In word use the button "display unknow characters". It seemed like they will appear if you copy and paste text in the conceptframes.
    You need to copy the text of the editor to Word. Click on the button "display unknown characters" to see all characters in text (including e.g.enter and spacebar). Remove the strange characters such as small circles. Copy the text and paste it back into the editor.
    Save the editor (and publish again).
    Good luck.

Maybe you are looking for