Number database field treated as String in formula when using 64bit runtime

Hey just a quick shout out to those with the above problem or those following the now "closed but unanswered" thread by the same name - if you're getting "A string is required here" error messages after switching over to the 64-bit runtime, or other weird loss of formatting issues, then try turning off the "Verify on First Refresh" or "Verify Stored Procedures on First Refresh" options in File | Report Options... as the case may be.

Previous post was here.
Number database field treated as String in formula when using 64bit runtime
Thanks for the find ezachman.

Similar Messages

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

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

  • Remove particular field and button from a screen when using pnp

    hi,
    i came to a request of remove a field and button from the displayed screen. i developed the report using logical database pnp. i need help.

    There are a couple of ways to accomplish this.
    1. Use a report category so that the only fields on the screen are those that you want.
    2. Do something like this:
          LOOP AT SCREEN.
        IF SCREEN-NAME = 'PNPTIMED' OR
           SCREEN-NAME = 'PNPBEGDA' OR
           SCREEN-NAME = 'PNPENDDA'.
          SCREEN-ACTIVE = '1'.
          SCREEN-INPUT = '0'.
          SCREEN-OUTPUT = '1'.
          SCREEN-INVISIBLE = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Summarizing Three (3) Formulas (When Using "Sum" Within Each Formula)

    I'm getting an error (i.e. 'This field cannot be summarized.") when
    trying to summarize three (3) formulas.  I figured out that it is
    probably because that there is a "Sum" in each formula.  I need totals
    only for specific officers (not all officers). Can someone tell me how
    to accomplish this ?  Thanks  ! ! !
    Formula #1
    NumberVar PeteTotal;
    PeteTotal := 0;
    If = "Pete"  And
       <> ["5001", "5030", "5031", "5032"] Then
       PeteTotal := Sum (, )
    Formula #2
    NumberVar MikeTotal;
    MikeTotal := 0;
    If = "Mike"  And
       <> ["5001", "5030", "5031", "5032"] Then
       MikeTotal := Sum (, )
    Formula #3
    NumberVar TonyTotal;
    TonyTotal := 0;
    If = "Tony"  And
       <> ["5001", "5030", "5031", "5032"] Then
       TonyTotal := Sum (, )
    Formula #4
    NumberVar AllTotals;
    AllTotals :=0;
    AllTotals := Sum(@PeteTotal, @MikeTotal, @TonyTotal)

    I got zeros . . .  below is the code  . . .  do you see anything wrong ?
    Formula #1
    NumberVar Total;
    Total := 0;
    Whilereadingrecords;
    If in ["Pete","Mike","Tony"]  And
       in ["5001", "5030", "5031", "5032"] Then
       Total :=
    Else
    0;
    Formula #2
    NumberVar GroupTotal;
    GroupTotal := 0;
    GroupTotal := Sum({@Formula #1});

  • While generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    while generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    Wrong forum to post the question, try to post the question in crystal reports community.
    Its not possible to edit the database fields while creating the reports, its only used to call the rows of values in it. Can you explain me in detail what are you actually looking for .
    --SumanT

  • Formula calculated database field tries to insert null

    Good Morning,
    I have 3 database text items Amount , rate and result.
    I input the two values (Amount and rate) and using the formula property "result" gets the calculated value.
    On display all the values are shown correctly but when trying to save my information the text field "result" is trying to insert null.
    Any suggestions?
    Forms 11g
    Thank you in Advance

    794018 wrote:
    Good Morning,
    I have 3 database text items Amount , rate and result.
    I input the two values (Amount and rate) and using the formula property "result" gets the calculated value.
    On display all the values are shown correctly but when trying to save my information the text field "result" is trying to insert null.Formula item should not be database item. And also inserting result column value into database is not good idea.
    Then after if you want to save it. create result database item and write trigger (When-Validate-Item) on both amount and rate filed and at trigger code, write
    :result:=:amount*:rate;To display the result on form, create non database item and change property to formula and write the formula.
    Hope this will help you
    If someone's response is helpful or correct, please mark it accordingly.

  • Using Right {field, 5} in string search

    Hello,
    I have an array with the following data  xyz5 = 'US 10411', 'US 10421', 'US 10431', 'US 10441'
    The SN field is 5 character length with data such as 10411, 10421 10441 etc..
    How do I search for the last 5 digits of each of the data in the array?
    myaop6report.RecordSelectionFormula = "{aop5.SN}in right {[" & xyz5 & "],5}"
    Thankls,
    Victor

    Hi Victor,
    To search for the SN database field in the array, you can create a Record Selection Formula like:
           (" " + + ",") in (Join(YourArray,",")+",")
    Where should be replaced by your database fields that contains the SN number, and where YourArray is your array.
    The formula convert the array in a string seperated by commas.
    Then add a comma to your database field as well as a space in front. Finally it compare the SN fields to the long string.
    So for example if the database fields SN contains 10431, then the value we will search is: 
    10431,
    The array will now be a long string like:
    US 10411, US 10421, US 10431, US 10441,
    And it will look for the value 10431, in the string.
    The comma at the end and the space at the beginning it's to ensure it doesn't find any values that may exist within another one. It shouldn't be an issue in your case since it is always going to be equal to 5 characters for the SN value, but just in case it doesn't, we do not want to return 1043133 when we are searching for only 10431.
    Regards,
    Patrick

  • RE: What's database field are used in crystal report file?

    Hi all
    Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
    We looking forward to hearing from you
    Thanks
    Son

    Hello Son,
    please use this code below to get a list of used database fields in a report :
    //File Name:          CS_Get_report_data_out_inproc.sln
    //Created:            April 11, 2008
    //Author ID:          FLI
    //Purpose:            This C# .NET sample Windows application demonstrates
    //                  how to retrieve report data and put the into a XML file
    //                  using unmanaged RAS.
    // Note this is available without a dedicated RAS with SP2 for XI R2
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace CS_Get_report_data_out_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    ReportData.rpt");
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                // Retrieve the Rowset Controller
                RowsetController boRowsetController = boReportClientDocument.RowsetController;
                // Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
                RowsetMetaData boRowsetMetaData = new RowsetMetaData();
                Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
                boRowsetMetaData.DataFields = boFields;
                // Now print out the data in XML file
                //(Note: This will print out the results of formulas too)
                StreamWriter sw = new StreamWriter("C:
    ReportData.xml", false);
                sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
                sw.WriteLine("<ReportData>");
                sw.WriteLine("<Reportheader>");
                // Print out the titles
                for (int i = 0; i < boFields.Count; i++)
                    String boFieldName = boFields<i>.Name;
                    sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
                sw.WriteLine("</Reportheader>");
                //Create the cursor which lets us loop through the data
                RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
                Record boRecord;
                while (boRowsetCursor.IsEOF == false)
                    sw.WriteLine("<Customer>");
                    boRecord = boRowsetCursor.CurrentRecord;
                    for (int j = 0; j < boFields.Count; j++)
                        try
                            sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
                        catch (Exception err)
                            sw.WriteLine("<Error>" + err.Message + "</Error>");
                    sw.WriteLine("</Customer>");
                    boRowsetCursor.MoveNext();
                sw.WriteLine("</ReportData>");
                // CLose the file
                sw.Close();
                MessageBox.Show("XML File 'ReportData.xml' successfully created on C:");

  • How to find out the number of fields in generated proxy structure?

    Hi All,
    Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
    i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
    Thanks in advance.
    Regards,
    Ujwalkumar

    U mean u want to know at runtime?
    Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
    Of course, you'll have to treat the header fields separately.
    Regards,
    Henrique.

  • Crystal Reports XI Web Elements - populate WESelect element values from database field

    <p>Hi,</p><p>I am using Web Elements with Crystal Reports XI. I need to know how to populate the ElementValues and ElementDisplays arguments of the WESelect function from a database field. </p><p>In the function expert when I click on the ElementsValues and ElementDisplays values a drop down appears which will let me select a field or formula. However, when I try saving and leaving the formula workshop an error message is generated.</p><p> "A subscript must be between 1 and the size of the array".</p><p>I assume this is because the WESelect function is looking for the "|" separator in the ElementValues and ElementDisplays arguments.</p><p>Please advise.</p><p>Thanks</p>

    hello,Â
    in the webelements.zip download you should find a DCP report which shows the method for "rolling up" data using a subreport and passing these to a select control using shared variables.
    basically a string running total rolls up the values at run time and character separates them for use by the controls. for any type of select (drop down menu etc.) controls all of the values have to be made available before the main report is run so that's why you use this techique. you can think of it this way...instead of having an asp page that runs a database query and then populates a javascript array for the control, the subreport rolls up the values and passes them to the control.
    other types of controls that you wish to place directly on a group header or details section can be run off of main report fields or formulae...e.g. you can place a checkbox control on the details section without having to roll up the data in advance.
    by just putting a field name in the parameter for a select control, you will only get one value per control.
    i hope that this makes sense as it takes a bit to get used to at first,
    jamie

  • JSP code in a database field

    I have a database content driven website, and I would like to know how to get jsp code to work inside the database content field.
    Here is the code I use to get the content and return it to the browser:
    rs = stmt.executeQuery ("select * from pages where pageid = " + spid);
    out.println (rs.getString ("pagecontent"));Here is a example of jsp code that I want to include into the database content field:
    <% out.println ("inside html"); %>Currently any jsp code gets treated as text. I would like the jsp to get compiled. Does anyone know how to handle this?
    Thanks in advance for any answers.
    David

    Usually, the way you do this is by separating the JSP code from the DB code.
    Create a Java Bean that gets the page content. Then create a JSP that calls the required method on that Java Bean. Then the JSP only needs to be compiled once by the container, and the database calls are made when needed.
    Example:
    class DbAccess {
      public String getContent() {
        ... DB access code here ...
    }JSP page:
    <%= DbAccess.getContent() %>Manuel Amago.

  • ORACLE treats empty Strings as NULL, Any workaround?

    Hi,
    ORACLE treats empty Strings as NULL.
    I am writing, rather modifying Java code to make it work with both SQLServer and Oracle. Since our code is already working for SQLServer, now I have the problem in porting to Oracle wherever I have empty strings. I used to insert empty strings into coulumns in SQLServers, the same SQLs give errors in SQL Server.
    Any workaround on the DB end or in JDBC for this?
    Thanks in advance,
    Suresh
    [email protected]

    jschell wrote:
    nichele wrote:
    jwenting wrote:
    If NULL really is different in your context from an empty string you're going to have to define some sequence of characters as indicating an empty string.yes, this is what i need to implement.Sounds like a flawed design then.
    I'm wondering what's the best approach in order to avoid to change all my application isolating this behavior somewhere (wrapping the jdbc driver for instance).That doesn't make much sense to me. You should already have a database layer. You change the database layer. If you don't have a database layer then that means you have another design flaw. And in that case I would really not be the one that needs to maintain that code base.I thought a bit about the value of your answer...but i didn't find it ....sorry but i don't like who replies on forum just to say bad design/bad choice etc...if you have any kind of suggestion you are welcome, otherwise you can spend your time in doing something else instead of reply to this thread.

  • Store values of different data types into single database field

    Hi Friends,
      I  have to store values of different data types(character, numeric, date, time,  text, etc) into a single database field(Char 80). Then read the same values and display it into ABAP Webdynpro report. 
    Appreciate any ideas, examples, suggestions.
    Thanks
    JB

    Hi,
    Try like this:
    data: txt1 type string,
          var1(1) type c,
          var2(1) type n,
          var3 like sy-datum,
          var4 like sy-uzeit.
    parameters: a type c,
                b type n,
                c like sy-datum,
                d like sy-uzeit.
    concatenate a b c d into txt1.
    write txt1.
    var1 = txt1+0(1).
    var2 = txt1+1(1).
    var3 = txt1+2(8).
    var4 = txt1+8(8).
    write: / var1,
           / var2,
           / var3,
           / var4.
    Regards,
    Bhaskar

  • When using the Database Connectivity Toolset, reads and writes with long binary fields are incompatible.

    I am trying to write LabVIEW Variants to long binary fields in a .mdb file using the Database Connectivity Toolset. I get errors when trying to convert the field back to a variant after reading it back from the database.
    I next tried flattening the variant before writing it and ultimately wound up doing the following experiments:
    1) If I use DB Tools Insert Data to write an ordinary string and read it back using a DB Tools Select Data, the string is converted from ASCII to Unicode.
    2) If I use DB Tools Create Parameterized Query to do an INSERT INTO or an UPDATE operation, specifying that the data is BINARY, then read it back using a DB Tools Select Data,
    the length of the string is prepended to the string itself as a big-endian four-byte integer.
    I can't think of any way to do a parameterized read, although the mechanism exists to return data via parameters.
    Presuming that this same problem affects Variants when they are written to the database and read back, I could see why I get an error. At least with flattened strings I have the option of discarding the length bytes from the beginning of the string.
    Am I missing something here?

    David,
    You've missed the point. When a data item is flattened to a string, the first four bytes of the string are expected to be the total length of the string in big-endian binary format. What is happening here is that preceding this four-byte length code is another copy of the same four bytes. If an ordinary string, "abcdefg" is used in place of the flattened data item, it will come back as <00><00><00><07>abcdefg. Here I've used to represent a byte in hexadecimal notation. This problem has nothing to do with flattening and unflattening data items. It has only to do with the data channel consisting of writing to and reading from the database.
    I am attaching three files that you can use to demonstrate the problem. The VI file c
    ontains an explanation of the problem and instructions for installing and operating the demonstration.
    Ron Martin
    Attachments:
    TestLongBinaryFields.vi ‏132 KB
    Sample.UDL ‏1 KB
    Sample.mdb ‏120 KB

  • Field Explorer help, not all Database Fields available

    Greetings all, I'm new to Crystal Reports (version XI by the way) and Tigerpaw.  I've had some great luck editing existing reports to the specifications we've needed thus far.  But now I've run into a real problem, it seems small, but it's important to me. 
    The one change I'm unable to accomplish on our new invoice report:
    -Adding the Tigerpaw field, Account Name, to an invoice.  The "Account Name" field is a field pulled from the tblAccounts Database Fields category in the Field Explorer.  But when I'm in my invoice template, I do not have that category available, I only have tblSysListViewPrint and tvwr_Invoices categories, the latter does have the field for "Account ID" which is close for our purposes, but not the same.  So how might I go in and pull from the tblAccounts category...specifically to get the  tblAccounts.AccountName field.  Copying that field from another existing report does not work either, "one or more formulas fail to compile".
    I'm not sure how it decides what Database Fields to pull from, because on other reports, the tblAccounts category is available, but not the tvwr_Invoices category, so I am quite confusedl.
    Hopefully this makes sense to someone out there. 
    Thanks.

    Thanks, V361,
    When I go to create a blank report, I get no databases available.  My first prompt is the "Database Expert".  The "available data sources" list is Current Connections (no items), Favorites (no items), History (no items), and Create New Connection.  The "selected tables" list on the right is blank.  I honestly don't have a clue how connect to whatever server contains those items.  I realized since I first posted that I need to figure that out to make any progress.  All the created reports already have the database field categories set up already, but it looks like all the available fields were not initially chosen for the reports.
    So what I believe it comes down to is the fact that I need to figure out how to "Create New Connection" to find my available database fields.

Maybe you are looking for

  • Navigation no longer working with

    I have been working with facelets now for a bit. I am on MyFaces 1.1 with the facelet libraries from the Exadel project wizard added. Any time I have an action with from-outcome but no from-action specified, everything works as expected. I can route

  • Getting this error :NB: JAVA_HOME should point to a JDK not a JRE

    HI All I've installed jdk1.5.0_06 in windows enviroment.i've correctly set the java_home path for it. Apart from it i've installed two servers one is Weblogic 9.1 and Tomcat 5.5 and NetBeans 5.5.1. While running my project with the netbeans it tried

  • Silencing the shutter sound on camera

    I was wondering if anybody can help me out in finding a way to silence the shutter sound when taking pictures. I was at church the other day and took a picture of my cousin on the platform and the shutter sound was REALLY loud! Thank you in advance f

  • Exchange 2013 sp1- msexchangemailboxreplication.exe.config now XML?

    I just went to check the maximum moves setting before I start a migration and this file is now XML? It used to be a text file. Its now very hard to follow. What is the best practice way of viewing and modifying this file now? The reference I used to

  • Unable to open Photo library from new Photo App

    When I try to open the new Photos App I get the following message "Photos was unable to make a copy of your library before preparing it. Photos does not have the necessary permissions..." I have tried the solution suggested be Apple using Terminal bu