Some parameters are missing values

I am trying to invoke a crystal report using JRC API. I am using Business Objects XI.
When I try to invoke the report after setting all parameters I am getting an error message "Some parameters are missing values ". Here is how my JSP code looks like
ReportClientDocument oReportClientDocument = new ReportClientDocument();
oReportClientDocument.open(reportName, 0);
CrystalReportViewer oCrystalReportViewer = new CrystalReportViewer();
//set the reportsource property of the viewer
oCrystalReportViewer.setReportSource(reportSource);
//set viewer attributes
oCrystalReportViewer.setOwnPage(true);
oCrystalReportViewer.setOwnForm(true);
//set the CrystalReportViewer print mode
oCrystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
//refresh the CrystalReportViewer if necessary (only required once)
if (session.getAttribute("refreshed") == null)
oCrystalReportViewer.refresh();
session.setAttribute("refreshed", "true");
String userid="emagia";
String password="emagia";
String rptuserid="tjordan";
String fromdate="07/01/2008";
String todate="07/12/2008";
ConnectionInfo ci = new ConnectionInfo();
ci.setUserName(userid);
ci.setPassword(password);
ConnectionInfos connections = new ConnectionInfos();
connections.add(ci);
oCrystalReportViewer.setEnableLogonPrompt(false);
oCrystalReportViewer.setDatabaseLogonInfos(connections);
ParameterFieldDiscreteValue val1 = new ParameterFieldDiscreteValue();
val1.setValue(rptuserid);
Values vals1 = new Values();
vals1.add(val1);
ParameterField param1 = new ParameterField();
param1.setName("User Id");
param1.setReportName("");
param1.setCurrentValues(vals1);
Fields fields = new Fields();
fields.add(param1);
ParameterFieldDiscreteValue val2 = new ParameterFieldDiscreteValue();
val2.setValue(fromdate);
Values vals2 = new Values();
vals2.add(val2);
ParameterField param2 = new ParameterField();
param2.setName("Date Range from");
param2.setReportName("");
param2.setCurrentValues(vals2);
fields.add(param2);
ParameterFieldDiscreteValue val3 = new ParameterFieldDiscreteValue();
val3.setValue(todate);
Values vals3 = new Values();
vals3.add(val3);
ParameterField param3 = new ParameterField();
param3.setName("Date Range To");
param3.setReportName("");
param3.setCurrentValues(vals3);
fields.add(param3);
oCrystalReportViewer.setEnableParameterPrompt(false);
oCrystalReportViewer.setParameterFields(fields);
oCrystalReportViewer.processHttpRequest(request, response,getServletConfig().getServletContext(), null);
oCrystalReportViewer.dispose();
In the Tomcat log this is what I get
- JRCAgent3 received request: refreshData
- JRCAgent3 attempting to acquire license
- JRCAgent3 successfully acquired license
- JRCAgent3 releasing license
- JRCAgent3 received request: getPromptConnInfos
- JRCAgent3 received request: compoundRequest
- JRCAgent3 received request: setSQLLogonInfoRequest
- JRCAgent3 received request: setSQLLogonInfoRequest
- JRCAgent3 received request: fetchReportPageRequest
- JRCAgent3 attempting to acquire license
- JRCAgent3 successfully acquired license
- Logon: Connecting to database using local JNDI server ...
- Connection Opened null
- Connection opened (Connection:  databaseType=JDBC  serverName=reports_dsn.dsn  state=open  databaseDriverName=crdb_odbc.dll).
- Report parameters is not valid
- Report parameters is changed
- Handling report parameters changes
- Validating report parameters
- com.crystaldecisions.reports.dataengine.l: Some parameters are missing values
- The report requires parameter values that need to be supplied by the client before further processing
com.crystaldecisions.reports.dataengine.l: Some parameters are missing values
     at com.crystaldecisions.reports.dataengine.j.a(Unknown Source)
     at com.crystaldecisions.reports.dataengine.a9.a(Unknown Source)
Can anybody tell me why I am getting this error??
Any help will be appreciated.

The problem may be that you are setting your report date parameters as a string when you pass the value to the report.   If the JRC does not recognize the parameter value as the correct type, it will throw the error you see when trying to pass them to the report.
If they are a date type or a date time type in the report, they must be set as such using the Java Calendar object.
Below is an example of how one would pass a date parameter to a report:
//DATE VALUE PARAMETER.
     Calendar calendar = Calendar.getInstance();
     calendar.clear();
     calendar.set(2004, 1, 17);
     Date dateParamVal = calendar.getTime();     
     pfieldDate.setName("dateParam");
     pfieldDVDate.setValue(dateParamVal);
     //Add the parameter field values to the Values collection object.
     vals5.add(pfieldDVDate);
     //Set the current Values collection for each parameter field.
     pfieldDate.setCurrentValues(vals5);
     //Add each parameter field to the Fields collection.
     //The Fields object is now ready to be used with the viewer.
     parameterFields.add(pfieldDate);
     //DATE-TIME VALUE PARAMETER.
     Calendar calendar2 = Calendar.getInstance();
     calendar2.clear();
     calendar2.set(2002, 5, 12, 8, 23, 15);
     Date dateTimeParamVal = calendar2.getTime();
     pfieldDateTime.setName("dateTimeParam");
     pfieldDVDateTime.setValue(dateTimeParamVal);
     //Add the parameter field values to the Values collection object.
     vals6.add(pfieldDVDateTime);
     //Set the current Values collection for each parameter field.
     pfieldDateTime.setCurrentValues(vals6);
     //Add each parameter field to the Fields collection.
     //The Fields object is now ready to be used with the viewer.
     parameterFields.add(pfieldDateTime);
     //TIME VALUE PARAMETER.
     Calendar calendar3 = Calendar.getInstance();
     calendar3.clear();
     calendar3.set(2002, 5, 12, 13, 44, 59);
     Date timeParamVal = calendar3.getTime();     
     pfieldTime.setName("timeParam");
     pfieldDVTime.setValue(timeParamVal);
     //Add the parameter field values to the Values collection object.
     vals7.add(pfieldDVTime);
     //Set the current Values collection for each parameter field.
     pfieldTime.setCurrentValues(vals7);
     //Add each parameter field to the Fields collection.
     //The Fields object is now ready to be used with the viewer.
     parameterFields.add(pfieldTime);
Edited by: Merry Enns on Aug 5, 2008 8:11 PM

Similar Messages

  • Crystal Report: ERROR - Some parameters are missing values

              mine report it possesses a single parameter ....
              this is the example of like tries of to change the value set up in the report...
              ERROR: Some parameters are missing values
              thanks help...
              EXAMPLE:
              <%@ page import="com.crystaldecisions.report.web.viewer.*"%>
              <%@ page import="com.crystaldecisions.report.htmlrender.*"%>
              <%@ page import="com.crystaldecisions.reports.reportengineinterface.*"%>
              <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.*"%>
              <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
              <%@ page import="com.crystaldecisions.common.keycode.*"%>
              <%@ page import="java.util.*"%>
              <%
              try {
              IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
              String report = "report/ReportParametro1.rpt";
              IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report,
              request.getLocale());
              Fields fields = new Fields();
              ParameterField pfield1 = new ParameterField();
              Values vals1 = new Values();
              ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
              pfield1.setName("CICCIA");
              pfieldDV1.setValue("SELECT descrizione, validoDa, validoA FROM tariffari");
              pfieldDV1.setDescription("Query Dinamica....");
              vals1.add(pfieldDV1);
              pfield1.setCurrentValues(vals1);
              fields.add(pfield1);
              CrystalReportViewer viewer = new CrystalReportViewer();
              viewer.setReportSource(reportSource);
              // layout
              viewer.setOwnPage(true);
              viewer.setBestFitPage(true);
              viewer.setHasLogo(false);
              viewer.setHasRefreshButton(true);
              // group navigation
              viewer.setHasToggleGroupTreeButton(false);
              viewer.setDisplayGroupTree(false);
              // page navigation:
              viewer.setHasGotoPageButton(false);
              // print/export
              viewer.setHasExportButton(true);
              //viewer.setPrintMode(CrPrintMode.PDF);
              viewer.setPrintMode(CrPrintMode.ACTIVEX);
              viewer.setIgnoreViewStateOnLoad(true);
              viewer.setParameterFields(fields);
              viewer.setEnableParameterPrompt(false);
              viewer.refresh();
              viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),
              out);
              viewer.dispose();
              }catch(Exception e){
              out.println("Errore " + e.getMessage());
              %>
              

    I am facing the same problem. After selecting an export option (PDF/RTF), the same error message is coming up.
              Also, what needs to be done for displaying export option of EXCEL?
              Thanks,
              Farzal

  • Crystal Report "some parameters are missing values" while exporting/printin

    I am able to pass parameters from a JSP to a crystal report through CrystalReportViewer and view the report. (I tried doing it using the code provided on this help forum. I was getting a message: "Some Parameters are missing values". I had to add 1 line: pfield1.setReportName(""); for every parameter field. And It worked..)
    Now I can see the "Print" and "Export" buttons. But when I try to print or export the report, I get the same message "Some Parameters are missing values".

    see posting "parameter driven export to excel" on April 26th

  • CRYSTAL XI SOME PARAMETERS ARE MISSING VALUES

    I have a huge problem with parameters in crystal reports XI.
    Iam developing using jdeveloper 10g and a jndi connection
    I use th following code into my jsp
    the report filelds are set correctly and they HAVE values
    but after the execution of the following code
    i get the following message
    ERROR SOME PARAMETERS ARE MISSING VALUES
    also I install both commonwinXI_chf and cXIwin_chf fixes from crystal and still nothing .Any solutions to this problem because Iam freaking out
    for once more crystal reports XI supports sucks
    my code:
    IReportSource reportSource= (IReportSource)session.getAttribute("reportSource");
    Fields fields=(Fields)session.getAttribute("reportFields");
    CrystalReportViewer crViewer=new CrystalReportViewer();
    crViewer.setReportSource(reportSource);
    crViewer.setParameterFields(fields);
    crViewer.setEnableParameterPrompt(false);
    crViewer.refresh();
    // my fields have values
    crViewer.setOwnPage(true);
    crViewer.setOwnForm(true);
    crViewer.setPrintMode(CrPrintMode.ACTIVEX);
    // if i set fields=crViewer.getParameterField then filelds variable is empty!!
    try{
    crViewer.processHttpRequest(request,response,getServletConfig().getServletContext(),out);
    crViewer.dispose();
    }catch(ReportSDKException e){
    out.println(e);
    }

    Sorry man sometimes i forget even my self!!
    In order to connect crystal with JNDI you have to set the correct parameters
    into CRConfig.xml
    for example
    <JDBCURL>jdbc:oracle:thin:@somewhere:ORA_DB</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>username</JDBCUserName>
         <JNDIURL>t3://somewhere:7001</JNDIURL>
         <JNDIConnectionFactory>weblogic.jndi.WLInitialContextFactory</JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>weblogic</JNDIUserName>
    also
    you have to provide the same info into file
    CRDB_JavaServer.ini
    [CRDB_JDBC]
    CacheRowSetSize = 100
    JDBCURL =
    JNDIURL =t3://somewhere:7001
    JDBCUserName = guest
    JNDIUserName = weblogic
    JNDIConnectionFactory = weblogic.jndi.WLInitialContextFactory
    JNDIInitContext = /
    I put both files into WEB-INF classes directory
    and finaly in both cases you have to include in your project the driver libs
    in my case I use weblogic therefore I have included weblogic.jar into my classpath

  • Default parameters are missing in the cloned EUL

    we have discoverer up and running perfectly on our existing instance - SIGMA
    now we have a new instance - ALPHA,
    we cloned the whole EUL from old instance(SIGMA),
    IN ALPHA every thing is working fine, we have all the BA,folders and all the workbooks seem to work fine, but we have a issue with the default parameters.
    the default parameters are missing from the workbooks, now this has become an big issue, because we have hundreds of reports and user want need them all with the default parameters
    could somebody please help me on this issue
    few questions:
    when cloned does the default parameters get erased??
    Does the default parameters entered in the workbook get saved anywhere in the EUL_Tables??
    Could you please give me a best approach to bring in thoese default parameters??
    any thoughts are highly appreciated
    note: i can edit the worksheet and enter the default parameter and save the worksheet but we have got some hundreds of workbooks

    Hi,
    when cloned does the default parameters get erased??I would be surprised if the default parameters are erased. More likely is that they are not being used because the default value is not valid anymore or because Discoverer is trying to use the last parameter value. Check the value of the SaveLastUsedParamValue preference setting. Is this the same on Desktop, viewer and Plus?
    Does the default parameters entered in the workbook get saved anywhere in the EUL_Tables??The default parameters will be save along with the workbook in the EUL5_DOCUMENTS table. The field is of type LONG RAW so you won't easily be able to see this field. You can use the workbook dump utility to check whether there are default parameters actually set up in the workbook.
    Could you please give me a best approach to bring in thoese default parameters??You could try exporting and importing the workbooks into the new environment to see whether this fixes the issue.
    Rod West

  • In the last 36 hours my photos have jumbled within various albums. Random photos have attached at the end of an unrelated album, old photos have appeared again on Recently Added, some photos are missing but still on "collections". No date order

    Within the last 36 hours my photo albums have turned into a real jumbled mess. Random photos have appeared at the bottom of my Recently Added album. In most cases it's a copy of a photo that was taken months or years ago so now it appears twice.. 200 random photos have appeared in an unrelated album.  Some photos are missing completely. The date order is correct in some places and then it goes back and forth over the months and years. The "collections" appears to be okay.  This morning when I went into the photo app About 50 photos that were permanently deleted 3 months ago reappeared on the Recently Added Album which  I deleted again.  if  I delete these irreplaceable photos from the unwanted album it will delete the photo completely. Help please - this is so annoying and frustrating. I hate to think when I turn the iPad on tmoor row what else will have changed .

    Quick Update:
    I usually have my Mac laptop up with Messages running on it.  As you know, it will receive the same messages you send/receive on your iPhone.  I thought all my old photos would be there too, but they have all disappeared as well except for the last few.
    Messages is supposed to archive all old photos to  a directory called ~/Library/Messages/Attachments.  On my mac, this was a 0 byte file that was created back in Jan 2014.  As a result, none of the old photos got saved on my Messages app either.  I looked at a Time Machine Backup and it has been the case since September (no earlier backups available).  So, it's unclear how long this issue has been going on for my Messages app and how related it is to my iPhone problem.
    In any case, if any of you use Messages, you may be able to recover your photos in that directory provided it didn't get trashed like mine did.  I moved the file and created a new Attachments directory.  Upon relaunch, Messages started properly storing new photos in there again.
    Either there was a really terrible bug in the Apple software or something malicious has happened.
    P.S.  I'm running OS 10.9.5 Mavericks.   There is a thread of people with this problem on Yosemite here:
    No pictures are shown in Message om Mac
    This seems like a pretty seriously terrible bug.  I will be talking again to AppleCare on Wednesday and I hope they can escalate this.

  • My photos are in the wrong albums and some photos are missing all together. How can I make them go back to their correct albums?

    iTunes is placing my photos in the wrong albums and some photos are missing all together. How can I make them go to their correct albums?

    Nevermind. I just renamed the folder on my mac and synced it again and everything is now in its proper place.

  • Just bought a nano and want to download some of my iTunes library. The "Music" button shows almost all my selections but some albums are missing, yet thos albums appear on the nano icon on my desktop but none of the others. What's happening?

    Just bought a nano and want to download some of my iTunes library. The "Music" button shows almost all my selections but some albums are missing, yet ONLY those albums appear on the nano icon on my desktop after being dragged there but none of the others. What's happening?
    I've read some of the post here that I thought might help but they refer to titles (Music) and triangles in the "Devices" window which are nowhere to be seen when I open the "Devices" window.
    I have iTunes 11.0.3 and Mac OS 10.6.8. Does this make a difference?

    I should mention that, for the first problem, I do make sure that my new tracks are stored in the folder where I told iTunes that my music is in. Also, when I say the cataloging of my library stops short of cataloging all my songs, I have tried leaving the computer unattended for days (my computer's sleep mode is disabled). It always stops before cataloging all of my music regardless of whether I am doing something else while iTunes is cataloging, or if I just let iTunes be the only program that's open during the cataloging process.

  • Some parameters are not shown in parameter dialog

    Hello,
    I created a VB.NET program using VS2005 sample.
    When the program refers to CR10's DLLs (VS2005 bundle),
    it prompts all parameters correctly.
    But when the program refers to CR12's DLLs, some parameters are not prompted.
    I installed merge module 12.2.
    I also checked CR11 (merge module 11.5) and  found the result is equal to CS12.
    Thank you

    Sorry. I don't understand. Perhaps creating a phone case will be the better way to go(?). Phone cases can be obtained here;
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Ludek

  • Some fields are missing in Current Task - Designer Workflow Approval Task Process

    Hi All,
           I am using approval task process activity in designer workflow. When i go to the single task behaviour page, some fields are missing under Current Task Source.
    Some missing fields are :
    1. Assigned To
    2.External participants
    3. Form Urn
    I am trying to get the above fields but not available. What could be the issue?
    Puli Bala

    Hi Puli,
    I think your task list is corrupted, could you please try to associate your workflow to another task list in SharePoint Designer > Click Workflows on left navigation > Click to open your workflow > Under Settings section, select another task
    list and test.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • IDOC in 51 status.Essential transfer parameters are missing in record

    Hi All,
    Essential transfer parameters are missing in record: 8701 000001
        Message no. VL561
    I am not understanding what is missing in the IDOC.
    Please help me in resolving the issue.
    Thanks,
    Forum

    hi,
    Do check whether the below points are mentioned or not...
    Outbound delivery
    Shipping point
    Sales organization
    Distribution channel
    Division
    Material number
    Delivery quantity
    Ship-to party
    Base unit of measure
    Inbound Delivery
    Base Unit of Measure
    Conversion factors for converting base and sales units
    Goods Receiving Point
    If it is given here in the doc, then check whether these are getting saved into the table or not..
    Tables are :
    LIKP, LIPS, VTTP...
    Hope it helps..
    Regards
    Priyanka.P

  • Hello there! i am using Adobe acrobat pro DC and using windows 8.1. Recently I was trying to convert a web page (includes greek letters) into pdf. I noticed that the conversion is not accurate, some words are missing, some are misplaced. Especially greek

    hello there! i am using Adobe acrobat pro DC and using windows 8.1. Recently I was trying to convert a web page (includes Greek letters) into PDF. I noticed that the conversion is not accurate, some words are missing, some are misplaced. Especially Greek words are not accurately converted or even not converted. Please give me some suggestions to improve this issue. Regards

    Hey quantum info,
    Thank you for posting at Adobe forums. We would love to help you out.
    Could you please let me know if you have tried converting other web pages to PDF and checked if the same issue persists.
    How have you been trying to convert the web page to PDF?
    Are you trying to convert to PDF directly via browsers or using "File > Create > PDF from Web Page"  option in Acrobat.
    Let me know more so that I can analyze where actually the issue persists.
    Hope to hear from you.
    Regards,
    Anubha

  • My itunes has stoped working it says some files are missing

    My Itunes has resently stopped working it says that some fiiles are missing i cannot access it and i do not know what to do

    What's the precise text of the message about the files, please? (There's a few different ones I can think of that you might be getting.)

  • I can't install itunes 11.0.4.4 and so I can't sync with IOS7 can't uninstall old Itunes error message saying some files are missing.  What to do?

    I am trying to install the latest version of Itunes so I can Sync with IOS7 but I keep getting an error message saying it can't dis-install the old version Missing itunes64 files.
    I tried to just un-install the old version but my computer tell me it can't because some files are missing.  I don't know how to find them or how to fixx my problem.  Can anyone help?
    Thanks

    I keep getting an error message saying it can't dis-install the old version Missing itunes64 files.
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • 'Some images are missing because they were deleted from the document'

    Hi,
    I created a document in Pages v5.2 last week and have just opened it and received the following message:
    'Some images are missing because they were deleted from the document'
    When I try and replace the missing images I get the following message:
    'The image "filename" couldn't be inserted.'
    When I try and reimport the original image I get the following message:
    'The image "filename" couldn't be inserted. This image is of an unsupported type.'
    If I try and insert an image that was not in the document before, in the same file format, it goes in fine.
    If I insert the original image into a blank Pages document it goes in no problem.
    I would also like to point out that the data folder still contains lots of versions of images in the document, but does not seem to have any of the ones I am actually using, which I guess is where the problem is. However I have no idea how or why these specific images have been deleted.
    Any light on how this problem has come about, and the best possible way to fix it would be greatly appreciated.
    Alex

    I have Pages v5.2.2 on OS X 10.9.4. I can not reproduce your stated issues with images in this version of Pages. I don't have a solution for you. See my test in the third paragraph. If I were experiencing this behavior, I would perform a Safe Boot to clear out System caches, and try again, before kicking Pages v5+ to the curb.
    The Safe Boot would be pressing and holding the shift key at boot chime, and until a horizontal progress bar shows on the screen. At the eventual login screen, after you type your password — press and hold the shift key — press the right arrow to login, and release the shift key after the Finder menu bar appears. Then reboot normally.
    I have created a new document. Dragged and dropped an image into it and saved. Exited Pages. Reopening worked fine. Deleted the image, and proceeded through the following steps, punctuated by save, exit, reopen, and deliberate image removal. Different .jpg image each time. About mid-way through the following item list, I rebooted the MBA just to throw some "spin" into the process. I did not perform a Safe Boot prior to this series of tests.
    Toolbar > Media insert
    Insert > Choose jpg into document
    Text Box image fill
    Shape image fill

Maybe you are looking for