Too Many Lines of Code in Record Selection Formula....

I'm trying to run a crystal rpt. w/ over 2000 lines of code/conditions in Record Selection Formula, but the report bombs out after typing a little over 1065 lines of code.
I get the following error message:
Failed to open rowset.
Details: ADO Error Code: 0x80040e14
Source: OraOLEDB
Description: ROW-00001: Cannot allocate memoryD
Native Error: 1
Does anyone have any suggestions or possible solutions??

this is the oracle forms forum. your chances increase going to the right forum.
Gerd

Similar Messages

  • Is it too much lines of code inside a class file?

    Hi,
    I was wondering about how many lines can be considered too much in a java class file. I saw some class files with more the two thousand lines of code and even more than three thousand lines. When we have so many lines in the code I've realized that the file becomes slow for edition and it's not readable as it should be. So, as a best practice, or even due to technical issues, in average how many lines of code we'd write in order to keep the readability and avoid compile and build issues? How many lines a class should have without putting our code and performance at risk ?
    thanks a lot

    My general rule of thumb--in a class everything shold be very consistent, that is to say: you should be focusing on 1 idea in your class. IMO: If you have a class for users, you need to consistent in just what that class does. When the class becomes large, then look for related themes that run through methods of that class, and if here are many, you should make a "related class" that does satelite functions of the "core" offered in the main user class.
    Thousands of lines do not a good class make, I break in to related categories of classes long before then, and as a rule I keep under 500 lines in a class--usually under 300. In any case, no more lines of code need go into a class than that to implement the core features in the main idea for that class--and no less lines of code than is needed too, don't religate a method to another class just becasue you feel it would make the class it belongs too big.
    Along the idea of the user class:
    Storage for the user data
    Home information
    Work information
    physical information
    tastes and preferences
    family
    and etc
    all of these could be a class in and of themselves, but definetely are closely related to the user class.

  • Too many lines for CO-PA assessment postings in KSB1

    Hi Experts,
    I created an assessment cycle in KEU1, with one segment, using an PA transfer structure (several cost elements to several value fields), and I´m using one single secondary cost element (category 42) to credit the cost centers.
    When I execute the assessment via KEU5, the credits in the cost centers for the cost element category 42 generates too many lines (for example, I had 3 postings to 3 primary cost elements and in KSB1 I have 9 lines of "credits" - operation KSPA.):
    Primary Cost Elements:
    4110201004  ==> 3.000,00
    4110209009  ==> 2.000,00
    4110209013  ==> 1.000,00
    Secondary cost element (after settlement through KEU5):
    6519999999 ==> 134,36-
                                198,92-
                                190,49-
                                291,54-
                                548,27-
                                311,88-
                                2.659,89-
                                1.268,02-
                                396,63-
    Do you know how can I summarize this postings to have only 3 (ore one) line for the secondary cost element? I cannot identify what was the criteria used by SAP to generate 9 lines.
    Kind Regards
    Mayumi

    the number of line item crediting the cost centre, shall be the same of the line item required in the COPA posting. So the more receiver you have in COPA , the more line item are created.
    Paolo

  • Huge Conversion File - Too many lines

    Hi Experts,
    Is there any way to split a Conversion File?
    I have a Conversión file with too many lines, so when I save it, it takes a lot of time, (11.000 rows, more than half an hour) and sometimes the Excel hand up (froze).
    It is becaming a problem, because everytime I save the Conversion file, I can not use the excel for a while.
    Any idea?
    Thanks in advance.
    Iria

    Iria and Patrick,
    I want to give an information about this.
    BPC transformation file can be multiple steps in one file.
    For example,
    *Options
    *Transformation
    *Conversion
    *Options
    *Transformation
    *Conversion
    *Options
    *Transformation
    *Conversion
    Therefore, If you only has a problem with conversion, you can do it as below
    *Options
    *Transformation
    *Conversion
           conversion part1    
    *Options
    *Transformation
    *Conversion
           conversion part2    
    *Options
    *Transformation
    *Conversion
           conversion part3    
    Note 1 :  If you don't need multiple transformation, you only need to specifiy it in the first transformation.
    Note 2 :  Conversion file can have multiple Tabs in one conversion excel workbook but I am not sure about the performance
                  when you do that. So please try two things.
                       1. Split it into multiple worksheet
                       2. Split it into multiple workbooks.
                  Please update your result for others.
    Note3 : You don't need multiple Convert task, it will be executed in a convert task.
    I hope it will help you
    Thank you.
    James Lim
    Edited by: James Lim on Mar 4, 2010 4:31 PM

  • Too many lines

    When opening an excel file I received as an attachment, and I want to open in Numbers, I either get major lag in viewing the workbook and editing it, Or I receive a message that an error occurred because there are "too many lines" and the workbook won't even import to Numbers
    I have a "New" IPad 3rd gen.
    Apple told me it is because I only have 512ram, but I understood that the new iPad had 1gb?
    Is numbers just not strong enough?
    Also, when I do get files to import, fonts, formulas and formats are commonly not supported and it negates being able to use the ipad to work on a workbook remotely and send it forward.
    Are ther any fixes?

    this is the oracle forms forum. your chances increase going to the right forum.
    Gerd

  • Too many lines in my log file

    Hy every body,
    I've made a Tomcat project under Eclipse and I'm using log4j.
    I've configured my log4j in "log4j-config.xml" file.
    I've made one file per level (DEBUG, INFO, WARN and ERROR), but I'm receiving too many lines in my "debug.log" file.
    Example:
    17:52:39 - [main] [DEBUG] org.apache.commons.beanutils.BeanUtils : BeanUtils.populate(org.apache.struts.tiles.TilesPlugin@14d556e, {definitions-parser-validate=true, definitions-parser-details=2, definitions-debug=2, moduleAware=true, definitions-config=/WEB-INF/struts/struts-tiles-defs.xml})
    17:52:39 - [main] [DEBUG] org.apache.commons.beanutils.BeanUtils : setProperty(org.apache.struts.tiles.TilesPlugin@14d556e, definitions-parser-validate, true)
    17:52:39 - [main] [DEBUG] org.apache.commons.beanutils.BeanUtils : setProperty(org.apache.struts.tiles.TilesPlugin@14d556e, definitions-parser-details, 2)
    Can some one tell me how to filter my logs.
    Here is a part of my "log4j-config.xml" file:
    <appender name="DEBUG" class="org.apache.log4j.FileAppender">
              <param name="File" value="${log.path}/debug.log" />
    <param name="Threshold" value="DEBUG" />
    <param name="Append" value="false" />
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d{HH:mm:ss} - [%t] [%-5p] %c : %m%n" />
    </layout>
         </appender>
    Thanks in advance.

    Hy every body,
    I've made a Tomcat project under Eclipse and I'm
    using log4j.
    I've configured my log4j in "log4j-config.xml" file.
    I've made one file per level (DEBUG, INFO, WARN and
    ERROR), but I'm receiving too many lines in my
    "debug.log" file.Then don't use that level. The whole point of the various levels is to be able to trade off level of detail for volume of output. Debug is meant to be very verbose.
    You can set various classes or packages to log at different levels, overriding the default for that logger. So if you don't want debug output for com.acme.whatever, then in log4j.properties or log4j.xml or whatever, you can configure that package and all "subpackages" for info, warn, or error. See log4j's docs for details.

  • How do I tell how many lines of code my flex project has?

    Hi, I recently had two programmers build me a 20k plus application and would like to figure out how many lines of code are in the project and if there is a way I can get a print out of all the code.  If it helps the project was architected with the caringorm framework.
    thanks.

    Thanks for the response, do you mean there is no feature for telling you how many lines of codes or no feature for a complete print out or both?
    I'm a little in the dark about exactly how big and complex my project is and would like to have a better understanding of the project before I have programmers bid on phase II of development so I can get a fair quote.

  • Database DLL error on editing the record selection formula?

    Post Author: Aravind
    CA Forum: Older Products
    Hi All,I recently edited the record selection formula of an old report and since then the report is issuing me an "Error detected by database DLL" error.The report was running fine earlier and still continues to run fine if I undo the changes. Earlier, the records were selected based on a 'date' field and I edited the formula to select records based on another date field, but the report doesn't work.The report runs fine on my local PC using Crystal Reports, but web based reporting fails with the error message. The data is selected from a view and the date parameters I talked about are the fields in the same view.This view has around five date parameters and the report runs fine for all of them, except one date field.Any pointers are appreciated.Crystal reports version is 8.5. Regards,Aravind.

    Post Author: DPowell
    CA Forum: Older Products
    Ah, yes, the good old generic date error.
    The problem is likely an invalid date value in one (or all) of your records with that field.  You don't say what database engine you are connected to or which driver you are using for the report, but I'll give you some "pointers".
    Basically, the SQL fetch has encountered an error in your date field and the driver you are using in the report can't handle it.
    A null date could cause that problem.  Also a date-time field with an invalid value or truncated time value.  A robust ODBC driver, like one of the Microsoft drivers might be able to overcome it.  Likewise, vendors frequently release updated drivers to improve error handling just like this.
    1.  Analyze your data, specifically the contents of the "new" date field you are using for some kind of invalid date.
    2.  Experiment with different ODBC drivers by creating alternate ODBC connections to the same database using different ODBC drivers.
    3.  Browse and experiment with options in Crystal Reports Properties that allow you to specify data conversions for NULLs and Dates.
    Good luck !

  • Record Selection Formula and Parameters

    We've currently upgraded from Crystal Reports 9 to Crystal Reports 2008 (SP3).  In our legacy reports, we use the "record selection formula editor" to filter the results of our report.  This is an example of one of our formulas:
    {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} >= {?FROMDATE} and {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} <= {?TODATE}
    In this formula, we pass in the FROMDATE and TODATE from our .NET applicaiton to filter on dates.  After upgrading to Crystal Reports 2008 (SP3) this no longer works.  I get an error "Error in formula Record_Selection".  It looks as if it was having issues parsing the formula.  If I replace my parameters (?FROMDATE/?TODATE) with hard coded dates it works fine (It also worked fine in Crystal Reports 9) so from what I can tell adding the parameters causes parsing errors. Also in the error it shows the formula and it's defintily messed up:
    ((( NOT {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} >= {?FROMDATE}) AND ( NOT {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} <= {?TODATE})))
    I'm not sure why it is adding the NOT to the formula or the extra brackets...
    Any suggestions?
    Regards,
    Mike

    David,
    First off, the way I determined it was the beta dlls was that I installed CR 2008 SP3 runtimes fresh and ran my report.  I didn't experience any issues.  I then took the beta dlls and replaced the originals, rebooted and ran my report again.  The report failed to execute as I described above.  I then took my backup of the SP3 dlls and replaced the beta dlls, rebooted and tested again.  I worked fine with the original dlls. 
    The formula that I was passing into that report was a bit more complex than I first described.  I had a few other conditions in the formula that checked for a project ID.  I tested it with just the dates and there wasn't any issues (as in your example), as soon as I added additional parameters that's when the "NOT"'s were included.  Could you try your test again with a few additional parameters?  Here is an example of what I was passing into the report:
    ((({DOVREP_TIME_AND_EXPENSE.ITEM_DATE} >= {?FROMDATE}  )   AND   ( {DOVREP_TIME_AND_EXPENSE.ITEM_DATE} <= {?TODATE})))  AND (({%PROJECT_ID}=99 OR {%PROJECT_ID}=113 OR {%PROJECT_ID}=112 OR {%PROJECT_ID}=103 OR {%PROJECT_ID}=107 OR {%PROJECT_ID}=111)))
    Mike

  • Inner select and select in "record selection"- Formula workshop problem

    Hi,
    I am facing a bit tough situation in creating a Crystal Report.
    I have two queries which I need to accommodate in the Report according to a given parameter (selectionParameter).
    The queries are as follows:
    select total, minvalue, customer
    (select  sum(A) TOTAL, min(B) minValue, C customer
         from table1, table2
         where table1.A = table2.E
         AND B in (Select B from table3 where F=10)
         group by C
    order by total, minValue
    select total, minvalue, customer
    (select  sum(A) TOTAL, min(B) minValue, C customer
         from table1, table2
         where table1.A = table2.E
         AND C in (Select C from table4 where G=20)
         group by C
    order by total, minValue
    These queries should be executed according to the selectionParameter set to 0 or 1. The only difference in these queries in one of the where clauses. In the formula workshop "record selection"- I have put an if clause.
    if(selectParameter = 0) then (B in (Select B from table3 where F=10)
    else C in (Select C from table4 where G=20).
    This is not supported, since select statement cannot be used in the formula workshop!!.. And also, I have understood that what ever procedure I have been following is completely wrong, since the where clause written in "record selection" formula workshop applies to OUTER SELECT, but not to inner select, which is not what I want!!.
    Please help me to solve this puzzle. I am eagerly waiting for a solution.
    Thanks and Regards,
    Janakiram Dandibhotla.

    A command object is really the only way to create a custom SQL query in Crystal Reports.  You have the option to create a command object after you connect to your datasource.
    Alternatively you can create a JavaBean class, create the custom query in the java page, retrieve the resultset, and use that in the report.

  • Too many values when trying insert records by bulk collect

    Hi
    Can anyone advice on the bulk collect error please?
    Following is my code where I am getting too many values error...
    TYPE p_empid_type IS TABLE OF emp%ROWTYPE;
          v_empid               p_empid_type;
       BEGIN
          SELECT DISTINCT emp_id , 'ABC'
          BULK COLLECT INTO v_empid
                     FROM emp
                    WHERE empid IN (SELECT ord_id
                                       FROM table_x
                                      WHERE column_x = 'ABC');
          FORALL i IN v_empid.FIRST .. v_empid.LAST
             INSERT INTO my_table
                  VALUES v_empid(i);
          COMMIT;
    PL/SQL: ORA-00913: too many values in line - BULK COLLECT INTO v_empid

    Hello, since you're SELECTing a constant string, why not:
    TYPE p_empid_type IS TABLE OF INTEGER;
          v_empid               p_empid_type;
       BEGIN
          SELECT DISTINCT emp_id
          BULK COLLECT INTO v_empid
                     FROM emp
                    WHERE empid IN (SELECT ord_id
                                       FROM table_x
                                      WHERE column_x = 'ABC');
          FORALL i IN v_empid.FIRST .. v_empid.LAST
             INSERT INTO my_table
                  VALUES v_empid(i), 'ABC';
    Edit Untested: may not work
    This would be the best BULK COLLECT of all:
    INSERT /*+ APPEND */ INTO my_table
    SELECT DISTINCT emp_id , 'ABC'
      FROM emp
    WHERE empid IN (SELECT ord_id
          FROM table_x
         WHERE column_x = 'ABC');
          COMMIT;

  • Too Many Line Items While Creating a PO

    Dear All,
    Here we have a scenario:
    We are creating a PO which is having around 10000(ten thousand) line items, and while saving system is showing error message "Too Many PO Line Items" Message No: FI899. and not able to save it.
    Kindly Let me know is there any limit for line item creation in a PO.
    Regards,
    Ravi B

    Limitations are limitations, you need a workaround or pay SAP for an extra developement. Probably worth, if you have such POs everyday.
    ( I cannot even imagine for what reason a PO should have more than 10000 items. Manual maintenance is impossible, the person would sit for a week and more to finish one PO. the CSR at your vendor is as well not able to put the items from your PO into their Sales order within a reasonable time frame - order entry should be ready before delivery date is arrived.
    This sounds like you want buy a company and want create just one purchase order to buy any single material they have on stock. But for that purpose the PO is certainly not designed.
    Can you give more background that makes my mind open ?   )

  • "Missing parameter values." Error when setting record selection formula

    Setup - VS 2008, CR 2008 (v12.0), Win XP & C#.Net
    I have a form which loops through all parameters (non-linked to sub reports, so only off the main report) and allows users to enter the values for each parameter. When hitting the preview button, I loop through all of the saved values, set the parameter field values and then add any additional filters into the recordselection formula as below. The problem i'm having is that the ReportDocument.HasRecords returns true if the ReportDocument.RecordSelectionFormula doesn't filter out every result.
    For example, I have a list of customers and if I set the selection formula to filter out a specific customer, ReportDocument.HasRecors returns true, if I set the selection formula to filter something that doesn't exist i.e. customer "xk39df", the moment this line of code runs "ReportDocument.RecordSelectionFormula = rsFormula;" - ReportDocument.HasRecors returns the following exception as opposed to "False".
    Message: Missing parameter values.
    Source: CrystalDecisions.ReportAppServer.DataSetConversion
    StackTrace:    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.hasRecords()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_HasRecords()
    ErrorID: MissingParameterFieldCurrentValue
    The strange thing is, it works fine if the recordselectionformula selects a record which exists in the results - all parameters have a current value except for the linked parameters.
    This one has got me stumped!
    foreach (ParameterFieldDefinition parameterField in ReportDocument.DataDefinition.ParameterFields)
                    var query = ReportObjects.Values.Cast<Filters>().Where(objects => objects.ParameterName == parameterField.Name.ToUpper().Trim());
                    foreach (var item in query)
                        parameterField.CurrentValues.Clear();
                        parameterField.CurrentValues.Add(item.ParameterValue);
                        parameterField.ApplyMinMaxValues(item.MinLength, item.MaxLengh);
                        parameterField.ApplyCurrentValues(parameterField.CurrentValues);
                var records = ReportObjects.Values.Cast<Filters>().Where(recordSelection => recordSelection.RecordSelectionFormula.Trim().Length != 0);
                foreach (var item in records)
                    rsFormula += item.RecordSelectionFormula;
                if (rsFormula.EndsWith(" AND "))
                    rsFormula = rsFormula.RTrim(5);
                ReportDocument.RecordSelectionFormula = rsFormula;

    Hi,
    The report has it's own ADO Datasource set in crystal reports, so I just pass the log on information to the report object before doing anything else.
    this.DataSourceConnections[0].SetConnection("ServerName", "Database", "sa", "Password");
    I then do a refresh before applying the parameter values (I do this because the user can preview the report more than one time by using a preview button on the parameter form without re-loading the report object)
    this.Refresh();
    Then I set all parameter values followed by setting the recordselection formula.

  • Resetting Record Selection Formula on report on Crystal Reports XI Server

    We have Crystal reports with recurring schedules running on Crystal Reports XI Server. If I change the Record Selection criteria in Crystal Reports Designer and do a "Save As" to overwrite the previous version of the report on the server, it does not reset the Filter -> Record Selection on each scheduled instance of the report. This means that the new criteria I've added to the base report is effectively ignored.
    I understand why this would be the default behaviour but given that we have a condition that must be added to a large number of reports which are scheduled many times, I need a way to be able to force a reset of the Record Selection to that of the Crystal Report.
    Any ideas how to do this?
    Thanks

    Hello Alan,
    There's no way to alter parameters for an already-created report schedule, as you've noted. 
    As implied in your message, this is so that no updates on a report would affect, and potentially break, already existing scheduled report instances.
    It's recommended to make changes and reschedule.  As you indicate, this may be effort intensive if there are many such scheduled.
    If such changes have to be done regularly, then report redesign to parameterize the filter would be recommended - but I'm assuming this is not your situation.
    Sincerely,
    Ted Ueda

  • CO 1SRJ-001: Too many line items selected via report interface

    Report group/report 1SRJ/1SRJ-001 (CCentres: Rolling Year):  provides an overview for the last 12 periods of actual and plan data.
    When you access line item report RKAEP000 (KSB1 or KSBP) from report Cost Centres Rolling Year (1SRJ-001) using the report/report interface, too much data is selected.
    For example, you enter fiscal year 2009 and month 8 in selection parameters, the report generates results for the last 12 periods:  2008/9 to 2009/8.  But the line item report accessed via report interface selected ALL data for the fiscal years 2008 and 2009.
    I searched and found Note 127643 that described a similar but not exactly the same situation.  Have anyone have any problems with this report?  Any suggestion is appreicated.
    Regards,

    Issue with report 1SRJ-001 (S_ALR_87013631) has been resolved.  The interfaced line item report selects all data records for fiscal years 2008 and 2009, instead of just for the selected last 12 months.  The problem is due to missing restrictions for a characteristic, in this case, the from-period and to-period fields.
    SAP has corrected the problem by issuing an updated version (1999) and the one we were using was the 1995 version.  I imported the updated version of report from client 000 and now it works fine.

Maybe you are looking for

  • Error AU133 Account 'Contra account: Acquisition value' could not be found

    I have this error when running RAPERB2000 program in IDES ECC6.0. I have checked AO90 and this B/S account (199990) is maintain correctly in area 64 for the account determination. This is the job log:- 02.12.2010 23:21:41 Errors occurred during the p

  • HT4527 can I get music that I purchased from itunes but no longer have on any devices

    I have an ipod and new iPhone. The computer that used to be used to sync is no longer working. My ipod got synced to someone else's account. I want to put all the songs that I bought on the new phone. How do I do that? They are paid for so this shoul

  • Maintaining or Editing xml files

    Hi All,         I am migrating a web application from tomcat to SAP WAS CE. In this web application there are some .xml files, porperty files. These xml files contains information like path of the log files, server urls, dabase information. Now the p

  • Oracle XE Course??

    Is there any courses about Oracle Application XE? And in which country?

  • Temperatures graphic processor

    When using a 3d online program the temp. of the graphic processor rises to 78 degrees C. Is this Normal? Can it dammage the graphic card? What should be the max. temp. when using a 3D program (on/offline)? Graphic info: Mac Book Pro 17" GeForce 8600M