Urgent::Issue with advanced tables....

Hi
i am new to OA framework
i have view instance (associated with a custom table..i want to insert data into this table using advanced table)with X view attributes..
among them one is primary key.i set that using a sequence value..
rest all.. i made them as columns of an advanced table..
two among the above are form values..
now i added a footer for adding a row in advanced table region...
when i click on the add another row ...i am getting this error...please check it...i am stuck here since long time..
Error: Cannot Display Page
You cannot complete this task because one of the following events caused a loss of page data:
* Your login session has expired.
* A system failure has occurred.

i added this code in my controller....
if ((tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
&& (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))) {
am.invokeMethod("createRecordInv");
and in my am i wrote this..
public void createRecordInv()
try
ARTransactionLineVOImpl vo = getARTransactionLineVO1();
if (!vo.isPreparedForExecution())
{   vo.executeQuery();     }
if (vo != null)
vo.setMaxFetchSize(0);
ARTransactionLineVORowImpl row1 = ( ARTransactionLineVORowImpl)vo.createRow();
if (vo.getFetchedRowCount() == 0)
vo.insertRow(row1);
else
{ vo.insertRowAtRangeIndex(vo.getFetchedRowCount(),row1); }
row1.setNewRowState(row1.STATUS_INITIALIZED);
OADBTransaction transaction = getOADBTransaction();
Number CdArScheduleId = transaction.getSequenceValue("CLE_CD_CASH_DOC_AR_INVS_ALL_S");
ARTransactionLineVORowImpl TransDetailsVORow = (ARTransactionLineVORowImpl)vo.getCurrentRow();
TransDetailsVORow.setCdArScheduleId(CdArScheduleId);
catch(Exception ex)
{ ex.getMessage();  }
i am getting NULL POINTER EXCEPTION.....
i set some of the values in advanced table prgramatically later using PPR...
is it ok....
just look into this n let me know if im wrog some where....

Similar Messages

  • Issues with Advance Table Add Row New Row not work in some scenarios.

    Hi,
    Wondering if there's any issue with Advanced Tables where it does not create any rows. I don't know if anyone tried this or not. I have one OA Page with Advanced Table and a button that when clicked open a new OA Page in a POP-UP Window. The pop-up page conatins one textbox where u enter a data and this gets saved in one of the VO's transient attribute. Now on the ase page if you don't click a button to open a pop-up page you can Add New Rows in the Advanced Table by clicking Add Row Button. But as soon as you open a popup window and close it Add New Rows button doesn't work and is not creating any new rows. Basically page stops working. Both the POP-UP and the base page share the same AM but have different controllers.
    POP-UP page is a custom page that I open giving the Destination URI value in the button item and target frame _blank.
    I even tried creating rows programmatically for Advance Table but this too doesn't work once u open a pop-up. Also I have used pageContext.putTransactionValue in the pop-up page and am checking and removing this in the base page.
    Any help is appreciated.
    Thanks

    anyone

  • Urgent issue with Intrastat

    Hi All, we  have  very  urgent issue  with  intrastat report ''VE01''.
    There  is  many documents  with error Log-''The statistical value of the document item is zero.''.
    The pricing  settings looks OK and its impossible  to
    correct  those  documents with error.
    Any Idee how I could  correct them for  them  to  get  the  green status?
    Points  will be added  if  helpful
    Thanks and regards
    Luis

    Hello Luis,
    please check the VBRP-BRTWR. If this fiels is zero then you get an entry in the incompletion log.
    the message could be also occur if the GRWR is zero.
    Please check your pricing setting.
    Hope this will help to solve the problem.
    I f you are satisfied with the answer, please don't forget to give Reward Points.
    regards
    Claudia

  • Hello Gurus..... ISSUE with child Table update

    I have an issue with child table update
    I have created a GTC with one parent table and two child tables. I'm able to update the parent table and the values are found in db, but the ISSUE is the child Table values are not updating the db.
    please give me a solution
    regards
    Srikanth

    If you are keeping referential integrity in the database, not in the application, it is easy to find the child and parent tables. Here is a quick and dirty query. You can join this to dba_cons_columns to find out on which columns the referential constraints are defined. This lists all child-parent table including SYS and SYSTEM users. You can run this for specific users of course.
    select cons1.owner child_owner,cons1.table_name child_table,
    cons2.owner parent_owner,cons2.table_name parent_table
    from dba_constraints cons1,dba_constraints cons2
    where cons1.constraint_type='R'
    and cons1.r_constraint_name=cons2.constraint_name;

  • [Urgent] Issue with Selected rows in Advanced table

    [I have searched archive and found lots of mails on same issue but none were conclusive so i am asking this again]
    Hi All,
    I have created an advanced table and i want to have functionality of deleting selected rows.
    For implementation of this functionality, i have created a selectflag transient attribute [varchar2] and linked it to multiple select item of Advanced table but the table always returns null for selectflag attribute irrespective of row being selected or not.
    One thing i have noticed is that i can't supply 'checked value' and 'unchecked value' property in advanced table multiple select item. Is that the issue?
    Can anybody please guide, its quite urgent.
    Regards
    Lokesh

    Hi Reetesh,
    Thanks for the reply.
    Yes, you are right i am using same AM at 2 different places.
    Let me just elaborate a little about my implementation:
    I have a Page layout region and within this page layout, i have a query bean which performs results based search.
    Within this query bean, i have added an Advanced table within that query bean to display the results.
    Now coming to multiple AM issue:
    1. Page Layout region must have one AM or its an error.
    2. If i donot add an AM to advanced table, it doesn't return rows.
    So do i need to have 2 diferent AM's for this implementation?
    Regards
    Lokesh

  • Performance issues with pipelined table functions

    I am testing pipelined table functions to be able to re-use the <font face="courier">base_query</font> function. Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? The <font face="courier">processor</font> function is from [url http://www.oracle-developer.net/display.php?id=429]improving performance with pipelined table functions .
    Edit: The underlying query returns 500,000 rows in about 3 minutes. So there are are no performance issues with the query itself.
    Many thanks in advance.
    CREATE OR REPLACE PACKAGE pipeline_example
    IS
       TYPE resultset_typ IS REF CURSOR;
       TYPE row_typ IS RECORD (colC VARCHAR2(200), colD VARCHAR2(200), colE VARCHAR2(200));
       TYPE table_typ IS TABLE OF row_typ;
       FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
          RETURN resultset_typ;
       c_default_limit   CONSTANT PLS_INTEGER := 100;  
       FUNCTION processor (
          p_source_data   IN resultset_typ,
          p_limit_size    IN PLS_INTEGER DEFAULT c_default_limit)
          RETURN table_typ
          PIPELINED
          PARALLEL_ENABLE(PARTITION p_source_data BY ANY);
       PROCEDURE with_pipeline (argA          IN     VARCHAR2,
                                argB          IN     VARCHAR2,
                                o_resultset      OUT resultset_typ);
       PROCEDURE no_pipeline (argA          IN     VARCHAR2,
                              argB          IN     VARCHAR2,
                              o_resultset      OUT resultset_typ);
    END pipeline_example;
    CREATE OR REPLACE PACKAGE BODY pipeline_example
    IS
       FUNCTION base_query (argA IN VARCHAR2, argB IN VARCHAR2)
          RETURN resultset_typ
       IS
          o_resultset   resultset_typ;
       BEGIN
          OPEN o_resultset FOR
             SELECT colC, colD, colE
               FROM some_table
              WHERE colA = ArgA AND colB = argB;
          RETURN o_resultset;
       END base_query;
       FUNCTION processor (
          p_source_data   IN resultset_typ,
          p_limit_size    IN PLS_INTEGER DEFAULT c_default_limit)
          RETURN table_typ
          PIPELINED
          PARALLEL_ENABLE(PARTITION p_source_data BY ANY)
       IS
          aa_source_data   table_typ;-- := table_typ ();
       BEGIN
          LOOP
             FETCH p_source_data
             BULK COLLECT INTO aa_source_data
             LIMIT p_limit_size;
             EXIT WHEN aa_source_data.COUNT = 0;
             /* Process the batch of (p_limit_size) records... */
             FOR i IN 1 .. aa_source_data.COUNT
             LOOP
                PIPE ROW (aa_source_data (i));
             END LOOP;
          END LOOP;
          CLOSE p_source_data;
          RETURN;
       END processor;
       PROCEDURE with_pipeline (argA          IN     VARCHAR2,
                                argB          IN     VARCHAR2,
                                o_resultset      OUT resultset_typ)
       IS
       BEGIN
          OPEN o_resultset FOR
               SELECT /*+ PARALLEL(t, 5) */ colC,
                      SUM (CASE WHEN colD > colE AND colE != '0' THEN colD / ColE END)de,
                      SUM (CASE WHEN colE > colD AND colD != '0' THEN colE / ColD END)ed,
                      SUM (CASE WHEN colD = colE AND colD != '0' THEN '1' END) de_one,
                      SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
                 FROM TABLE (processor (base_query (argA, argB),100)) t
             GROUP BY colC
             ORDER BY colC
       END with_pipeline;
       PROCEDURE no_pipeline (argA          IN     VARCHAR2,
                              argB          IN     VARCHAR2,
                              o_resultset      OUT resultset_typ)
       IS
       BEGIN
          OPEN o_resultset FOR
               SELECT colC,
                      SUM (CASE WHEN colD > colE AND colE  != '0' THEN colD / ColE END)de,
                      SUM (CASE WHEN colE > colD AND colD  != '0' THEN colE / ColD END)ed,
                      SUM (CASE WHEN colD = colE AND colD  != '0' THEN 1 END) de_one,
                      SUM (CASE WHEN colD = '0' OR colE = '0' THEN '0' END) de_zero
                 FROM (SELECT colC, colD, colE
                         FROM some_table
                        WHERE colA = ArgA AND colB = argB)
             GROUP BY colC
             ORDER BY colC;
       END no_pipeline;
    END pipeline_example;
    ALTER PACKAGE pipeline_example COMPILE;Edited by: Earthlink on Nov 14, 2010 9:47 AM
    Edited by: Earthlink on Nov 14, 2010 11:31 AM
    Edited by: Earthlink on Nov 14, 2010 11:32 AM
    Edited by: Earthlink on Nov 20, 2010 12:04 PM
    Edited by: Earthlink on Nov 20, 2010 12:54 PM

    Earthlink wrote:
    Contrary to my understanding, the <font face="courier">with_pipeline</font> procedure runs 6 time slower than the legacy <font face="courier">no_pipeline</font> procedure. Am I missing something? Well, we're missing a lot here.
    Like:
    - a database version
    - how did you test
    - what data do you have, how is it distributed, indexed
    and so on.
    If you want to find out what's going on then use a TRACE with wait events.
    All nessecary steps are explained in these threads:
    HOW TO: Post a SQL statement tuning request - template posting
    http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
    Another nice one is RUNSTATS:
    http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551378329289980701

  • Complex Urgent Issue with insertRowAtRangeIndex

    Hi,
    I have an advanced table based on a VO and EO. I have a footer on that table which has an Add Row button. That Add Row button calls a method in the AM which basically inserts a new row into the VO and hence it appears in the table. The code for that method in the AM is pasted below.
    Now this table and Add Row button etc. were already existing. My job was to add a new detail table to this table. I followed the instructions in the dev guide and was able to successfully add a detail table to this table. I also had to initialize some rows in the detail table when the user clicks the above add rows button.
    In the below code, getBtvlPosSupplierPlantAddressesVO is my VO for the main table.
    getAsiSupplierAddressOpCosVO2 is my VO for the detail table. "AsiSupplierAddressOpCosVO2" is the View Instance which is connected to BtvlPosSupplierPlantAddressesVO through a View Link.
    getAsiPosSupplierOpCosVO1 is my VO from where I get the data to initialize the rows in AsiSupplierAddressOpCosVO2.
    I am getting the following error on the statement - plantAddressVO.insertRowAtRangeIndex(plantAddressVO.getFetchedRowCount(), plantAddressVORow);
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value 3 for rangeIndex passed to method ViewRowSetIteratorImpl.insertRowAtRangeIndex. Explanation: index outside range
    Now the main table property of "Records Displayed" is 2, hence I am getting the above error when I am trying to add THIRD row using the Add Rows button.
    If I change the "Records Displayed" property to 5, then I will get this error when I try to add Row number 6.
    PLEASE PLEASE HELP. I HAVE NO CLUE WHY THIS IS HAPPENING. I AM TIRED OF DEBUGGING!
    **********Extra Info - May not be relevant to the Issue ****************
    For new rows in AsiSupplierAddressOpCosVO2, I have put status as STATUS_NEW because the detail table has a checkbox and if I don't do STATUS_NEW for the rows, then only the rows for which user clicks on the checkbox will be stored in the DB. I wanted all rows to be stored, for consistency purpose.
    **********Extra Info - May not be relevant to the Issue ****************
    public void addPlant(Number suppRegId)
    BtvlPosSupplierAddressesVOImpl plantAddressVO = getBtvlPosSupplierPlantAddressesVO();
    plantAddressVO.setMaxFetchSize(0);
    BtvlPosSupplierAddressesVORowImpl plantAddressVORow = (BtvlPosSupplierAddressesVORowImpl)plantAddressVO.createRow();
    plantAddressVORow.setAddressId(getOADBTransaction().getSequenceValue("btvl.btvl_pos_supp_address_id_SEQ"));
    plantAddressVORow.setAddressType("PLANT");
    plantAddressVORow.setSupplierRegId(suppRegId);
    plantAddressVO.insertRowAtRangeIndex(plantAddressVO.getFetchedRowCount(), plantAddressVORow);
    AsiSupplierAddressOpCosVOImpl addressOpCosVO = (AsiSupplierAddressOpCosVOImpl)this.getAsiSupplierAddressOpCosVO2();
    addressOpCosVO.executeQuery();
    AsiPosSupplierOpCosVOImpl suppOpCosVO = (AsiPosSupplierOpCosVOImpl)this.getAsiPosSupplierOpCosVO1();
    int rowCount = suppOpCosVO.getRowCount();
    RowSetIterator SupplOpCoListIter = suppOpCosVO.createRowSetIterator("SupplOpCoListIter");
    AsiPosSupplierOpCosVORowImpl OpCoRow = null;
    if(rowCount > 0)
    SupplOpCoListIter.setRangeStart(0);
    SupplOpCoListIter.setRangeSize(rowCount);
    for(int i = 0; i < rowCount; i++)
    OpCoRow = (AsiPosSupplierOpCosVORowImpl)SupplOpCoListIter.getRowAtRangeIndex(i);
    AsiSupplierAddressOpCosVORowImpl addressOpCoRow = (AsiSupplierAddressOpCosVORowImpl)addressOpCosVO.createRow();
    addressOpCoRow.setSuppAddrOpcoId(getOADBTransaction().getSequenceValue("BTVL.ASI_SUPP_ADDR_OPCO_ID_S"));
    addressOpCoRow.setAddressId(plantAddressVORow.getAddressId());
    String OpCoCode = OpCoRow.getSupplierOpcoCode();
    String OpCoName = OpCoRow.getSupplierOpcoName();
    addressOpCoRow.setSupplierOpcoCode(OpCoCode);
    addressOpCoRow.setSupplierOpcoName(OpCoName);
    addressOpCoRow.setNewRowState(Row.STATUS_NEW);
    addressOpCosVO.insertRow(addressOpCoRow);
    SupplOpCoListIter.closeRowSetIterator();
    plantAddressVORow.setNewRowState(Row.STATUS_INITIALIZED);
    }

    Hi
    Since you have added the detail table as routine customization than you also initialize the row as routine customization, as you said that the getAsiSupplierAddressOpCosVO2 is the VO for detail table than the row this VO is required to initialize, as Sumit advised already, you should go with addition of new code rather modifiying/using the existing code , you can give a try to below code after modifying it according to ur requirement
    OAViewObject vo = (OAViewObject)findViewObject("AsiSupplierAddressOpCosVO2");
    if(!vo.isPreparedForExecution())
    vo.clearCache();
    vo.executeQuery();
    vo.last();
    vo.next();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState((byte)-1);
    // than here you can set the default values
    like row.setAttribute("ViewAttribute",vaue);
    Thanks
    Pratap

  • Multiselection issue in advanced table on OAF page

    Hi,
    I have a advanced table on OA Page. To this advanced table, I had added the multi selection table action.
    To the multiselect, i have attached a View Instance and a view attribute.
    There is text input field in the advanced table. If user makes changes to it, an event "updateDate" fires.
    In CO:
    if(event.equals("updateDate")){
    System.out.println("A");
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] param = {rowReference} ;
    am.invokeMethod("DetailsCheckBox", param);
    In AM:
    public void DetailsCheckBox(String rowReference) {
    System.out.println("B");
    oracle.jbo.Row row = findRowByRef(rowReference);
    DetailsVOImpl ivo =
    (DetailsVOImpl) findViewObject("DetailsVO1");
    String chkbox = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect original: "+chkbox);
    if ((chkbox == null)||(chkbox.equals("N"))){
    ivo.setCurrentRow(row);
    row.setAttribute("Multiselect","Y");
    String chkbox1 = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect : "+chkbox1);
    // ivo.reset();
    The issue is that if there are 5 rows getting displayed in the advanced table and i make changes to any of first 4 rows, the checkbox gets checked on page but if i make changes to last row the checkbox is not checked on page, even though the statement String chkbox1 = (String)row.getAttribute("Multiselect"); returns 'Y' in AM.
    Please help. Its urgent.

    Hi Gyan,
    Multiselect attribute is checked for Always Updateable.
    and have done sop for other attributes also, dey are coming for 5th row only.
    also if my VO query returns 27 rows, and advanced table displays 10 rows at a time then pnly 10th row gives this issue. It works fine even for 20th row.
    Observed one more thing, if i first update any other row and then the last row, it works fine.

  • Rebate related issue with database table VKDFS & VBAK

    Hi everybody,
    I am facing the problem with the tables VKDFS and VBAK.
    In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
    In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
      select        * from  vkdfs into table ivkdfs
             where  fktyp  in r_fktyp
             and    vkorg  in s_vkorg
             and    fkdat  in s_fkdat
             and    kunnr  in s_kunnr
             and    fkart  in s_fkart
             and    vbeln  in s_vbeln
             and    faksk  in s_faksk
             and    vtweg  in s_vtweg
             and    spart  in s_spart
             and    netwr  in s_netwr
             and    waerk  in s_waerk.
    After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
    SVBAK[] = IVKDFS[]
    select * from vbak into table ivbak
      for all entries in svbak
      where vbeln = svbak-vbeln
      and   knuma in s_knuma
      and   auart in s_auart
      and   submi in s_submi
      and  (vbak_wtab).
    So, its filtering from VBAK.
    But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
    So, my program fails to display the report regarding to that agreement number.
    As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
    VKDFS-SD index: billing initiator table.
    I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
    Please let me know the solution if you people have any .
    Its an urgent and sev 1 tickets
    eagerly waiting for solution or some information.
    Thanks&Regards.
    J.

    Hi everybody,
    I am facing the problem with the tables VKDFS and VBAK.
    In my program the report has to display the details of the agrement numbers concerning to the sale or billing doucmnets later on it has to create a credit memo for that particular customer.
    In the coding the program in very beging step, it is fetching all sales documents from VKDFS as per selections like following.
      select        * from  vkdfs into table ivkdfs
             where  fktyp  in r_fktyp
             and    vkorg  in s_vkorg
             and    fkdat  in s_fkdat
             and    kunnr  in s_kunnr
             and    fkart  in s_fkart
             and    vbeln  in s_vbeln
             and    faksk  in s_faksk
             and    vtweg  in s_vtweg
             and    spart  in s_spart
             and    netwr  in s_netwr
             and    waerk  in s_waerk.
    After this whatever the sales orders fetched here, for those all again its fetching from VBAK table as following.
    SVBAK[] = IVKDFS[]
    select * from vbak into table ivbak
      for all entries in svbak
      where vbeln = svbak-vbeln
      and   knuma in s_knuma
      and   auart in s_auart
      and   submi in s_submi
      and  (vbak_wtab).
    So, its filtering from VBAK.
    But the exact issue is that, there is one sales order which is available in VBAK but does not available in VKDFS table.
    So, my program fails to display the report regarding to that agreement number.
    As per my analysis I came to know that there are no entries in VKDFS table against to the sales orders in VBAK concerning agreement numbers.
    VKDFS-SD index: billing initiator table.
    I want to know how come this VKDFS table is updating against to VBAK table. If possible how to make this entry in that table against to the values in VBAK. But it should not effect other tables.
    Please let me know the solution if you people have any .
    Its an urgent and sev 1 tickets
    eagerly waiting for solution or some information.
    Thanks&Regards.
    J.

  • PL-SQL procedure to fix Recycle Algorithm issues with Advanced Outbound

    Dear all,
    A customer is using Oracle Advanced Outbound 11.5.9. and we have an issue with recycle Algorithm.
    The issue is that for some cases we get outcome 32, 37 which is cache expired in table iec_g_return_entries and not the original outcome that agent has entered.
    Fortunately the original outcome exists in table jtf_ih_interactions so we have created a workaround in PL-SQL to update table iec_g_return_entries from jtf_ih_interactions using some common outcomes.
    Now after a long time the issue still exists and the customer want this workaround to be optimized, so that it takes all the values from recycle algorithm tables and not just the common outcomes and conditions.
    As I can see, there are so many condition in the algorithms and it is quite hard to catch all the conditions and create an PL-SQL procedure to update the iec_g_return_tables.
    Has anyone done something similar?
    Thanks a lot,
    Christos

    Dear all,
    A customer is using Oracle Advanced Outbound 11.5.9. and we have an issue with recycle Algorithm.
    The issue is that for some cases we get outcome 32, 37 which is cache expired in table iec_g_return_entries and not the original outcome that agent has entered.
    Fortunately the original outcome exists in table jtf_ih_interactions so we have created a workaround in PL-SQL to update table iec_g_return_entries from jtf_ih_interactions using some common outcomes.
    Now after a long time the issue still exists and the customer want this workaround to be optimized, so that it takes all the values from recycle algorithm tables and not just the common outcomes and conditions.
    As I can see, there are so many condition in the algorithms and it is quite hard to catch all the conditions and create an PL-SQL procedure to update the iec_g_return_tables.
    Has anyone done something similar?
    Thanks a lot,
    Christos

  • Issue in Advance Table Region - Plz help!

    Hi All,
    I have a custom page in which I am using a advanced table region.
    The issue is this that the value in advanced table row [Two Fields are there both are MessageTextInput] is getting populated automatically as the page render. Is this is seeded functionality of advanded table???
    If you how to overcome this..
    I have to display row with no value i.e blank. I got to know that if the attribute which is attached to the column of row has value then it show on frontend automatically and if i delete the row then i got it blank.
    Regards,
    Ajay

    IF the values in present in the underlying table, then it will appear in the advanced table as well due to the VO that you are using.
    To create a blank row. You will have to create a new row in the VO and set it as the current row.
    If u want it to be done automatically. You can do this:
    1. select your advancedTable region and choose New--> footer
    2. Select the tableFooter and then right click and select New-- > addTableRow
    3. in the addTableRow item that u just created in step 2 , u can play around with the properties. For auto row insertion, without writing any code set the Insert Rows Automatically property to true and change the Rows to Add property to change the number of blank rows added. The default is 1

  • Issue with Multiple Tables in Report

    Post Author: dwessell
    CA Forum: General
    Hi,
    I'm using Crystal Reports 2k8.
    I'm doing a report with three tables, CQ_HEADER, SO_HEADER and SALESPERSON. Both the CQ_HEADER and the SO_HEADER tables link to the SALESPERSON table via a SPN_AUTO_KEY field.
    However, I always receive duplicates in my result set, due to the joins made, and I don't receive results that are valid in one table, and empty in another (Such that it only counts a CQ, if there is a SO associated with it. Here's the query that's produced by CR.
      SELECT "CQ_HEADER"."CQ_NUMBER", "CQ_HEADER"."ENTRY_DATE", "CQ_HEADER"."TOTAL_PRICE", "SALESPERSON"."SALESPERSON_NAME", "SO_HEADER"."ENTRY_DATE", "SO_HEADER"."TOTAL_PRICE"
    FROM   "CQ_HEADER" "CQ_HEADER" INNER JOIN ("SO_HEADER" "SO_HEADER" INNER JOIN "SALESPERSON" "SALESPERSON" ON "SO_HEADER"."SPN_AUTO_KEY"="SALESPERSON"."SPN_AUTO_KEY") ON "CQ_HEADER"."SPN_AUTO_KEY"="SALESPERSON"."SPN_AUTO_KEY"
    WHERE  ("CQ_HEADER"."ENTRY_DATE">={ts '2007-12-01 00:00:00'} AND "CQ_HEADER"."ENTRY_DATE"<{ts '2007-12-18 00:00:00'}) AND ("SO_HEADER"."ENTRY_DATE">={ts '2007-12-01 00:00:00'} AND "SO_HEADER"."ENTRY_DATE"<{ts '2007-12-18 00:00:00'})
    ORDER BY "SALESPERSON"."SALESPERSON_NAME"
    There is no link between the SO_HEADER and the CQ_HEADER.  Can anyone make a suggestion as to how I could go about structuring this such that it doesn't return duplicate values?
    Thanks
    David     

    Hey,
    I understand you used Retainsameconnection property true for all the OLEDB connections you used in the package if not make sure its for all the connection including file connection as well.
    Additionally, you can try to set Delayvalidation property to true for all the dataflows and control flows in the connection and try running the package for 10MB file.
    I hope this will fix the intermittent failure issue you are facing with SSIS.
    (Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker)
    Thanks,
    Atul Gaikwad.

  • Issue with Temp tables in SSIS 2012 with RetainSameConnection=true

    Hello,
    We have few packages written in 2008 and are being upgraded to 2012. Our package mostly uses temp tables during the process.  During initial migration, we faced issue with handling temp table in the OLE Db destination provider and found a solution for
    the same under 
    usage of Temp tables in SSIS 2012
    Most of our packages execute fine now. 
    we came across a different issue recently. For one of our package, which merges 3 feeds into a temp table and then executes a stored procedure for processing, the package fails intermittently.
    Below are properties of SSIS and its components, which you might be interested
    * Retainsameconnection for the OLE Db connection manager set to True
    * properties of OLEDB Destination 
    AccessMode : SQL Command
    CommandTimeOut : 0
    SQLCommand : Select * from #tmp
    * using SSIS 2012 and SQL OLEDB Native Provider 11 (Provider=SQLNCLI11.1)
    * one of the feed is 10MB
    During investigation using profiler, found that though I use RetainSameConnection, I often  could see that more than one SPId is used during the scope of SSIS execution and when ever this happens, package fails with below error message 
    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E14 Description: "Statement(s) could not be prepared.".
    An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E14 Description: "Invalid object name '#tmp'."
    Now, Why SSIS uses a different SPId during its execution when RetainSameconnection is set to True (note : I have only one OLEDB connection in that package)? 
    To simulate the issue, Instead of 10MB file, I used a 500KB file and execute the package twice and all went fine.
    Is it because of 10 MB file taking long time to process causing the time out of that OLEDB destionation forcing the SSIS to go for another connection? but remember, CommandTimeout is set to infinite(0) for that OLEDB destination. 
    Much appreciated your response. 

    Hey,
    I understand you used Retainsameconnection property true for all the OLEDB connections you used in the package if not make sure its for all the connection including file connection as well.
    Additionally, you can try to set Delayvalidation property to true for all the dataflows and control flows in the connection and try running the package for 10MB file.
    I hope this will fix the intermittent failure issue you are facing with SSIS.
    (Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker)
    Thanks,
    Atul Gaikwad.

  • URGENT: Issue with hierarchy level keys and report drill down

    Hi,
    BASIC STRUCTURE:
    I have created a subject area with 3 facts (FACT_A, FACT_B, FACT_C) and 4 dimesnions (TIME_DIM,DIM_2,DIM_3,DIM_4). Each fact table also has additional aggregate tables aggregated along levels of the time dimension. Also our timw dimension has aggregated dimension tables like TIME_DIM_WEEK, TIME_DIM_MONTH, TIME_DIM_QUARTER and TIME_DIm_YEAR.
    GOAL:
    All 3 facts have the same measures M_1 and M_2 in them but may not have data for the same dimension values selected.
    For example
    For month JAN 2000 FACT_A.M1=100$ and no data exists for JAN 2000 in FACT_B and FACT_C. Then in the report
    for JAN2000 it should show FACT_A.M1= $100, FACT_B.M1 = 0 and FACT_C.M1 =0. In this case I should be able to drill down to the lowest level.
    ISSUE:
    The time dimension TIME_DIM has the following levels - Total -> Year -> Quarter -> Month -> Week -> Day
    However I am having an issue with drill down in the reports whenever I pull metrics from more than 1 fact at a time. I have defined the level keys but not sure if I need to do anything in addition since I am using aggregates.
    I have to fix this issue quickly. Please help me.

    Alastair,
    All the fact tables have aggregated facts as sources.
    I have checked the levels set for each of the sources to the time dimesnion table in BMM and they look okay. So the Time dim table in BMM has 4 source tables
    Time_Day (level set to day, table key is "day"),
    Time_month (level set to month, table key is "Fiscal_Month_Code"),
    Time_Quarter(level set to quarter, table key is "Fiscal_Quarter_Code") and
    Time_Year(level set to year, table key is :Fiscal_Year_Code").
    Note: No time week aggregate added as logical source.
    Again the time dim hierarchy based off of this table has levels: Total -> Year ->quarter -> Month -> week -> day
    The levels keys set for each level are
    Year -> Primary key is Year_Name (YYYY)(Checked as chronological key) and another key is Year_Num (YYYY)(Checked as chronological key)
    Quarter->Primary Key is Quarter_Name (YYYY Qn), another key is Quarter_Number (Format n where n can assum values 1,2,3,4). Both keys are set as chronological keys
    Month -> Primary key is Month_Name (MON YYYY), another key is Month_Num (Format n where n can assume values from 1 to 12) Both keys are set as chronological keys
    Week -> Primary Key is week name (YYYY Wk nn, where nn can have values from 1 to 53), another key is week num (nn, where nn can have values from 1 to 53)
    Day -> primary key set to day (date format)
    Issue1: When I try to drill to lower levels it throws out an error saying report cannot find any data because filters may be too restrictive even though I see data at higher level
    For ex: If I drill down to Year: 2010 and Qtr: 2010 Q2 and M1:$100 when I click on Qtr to drll to month level it throws me the error
    Issue2: when I add year and qtr colums to the report I see data as below which is incorrect
    Year_Name Qtr_Name data:FACTA_M1 Data: FactB_M1
    2009 2009 Q1 $10 $5
    2009 2009 Q2 $20 $80
    2009 2009 Q3 $20
    2009 2009 Q4 $30
    2010 2010 Q1 $100
    2010 Q2 $101
    2010 Q3 $102 $230
    2010 Q4 $103
    2011 Q1 $10
    In the above example year_name is not showing up for 2010 Q2 and after. However if I change the primary key for level 'Quarter' by having key consist of year name and quarter name instead of just quarter name the issue doesnt occur and drill down works great. The only issue is when I drill from qtr it first shows year name and quarter name instead of showing the next level which would be month name.
    Sorry about the long message but I thought you might notice something in how I have set up the keys.
    Thanks

  • Urgent : Issue with deleting Line Item in ME22N

    Hi all,
    I have an issue with deleting line item in ME22N for some Purchase Orders.
    When I try to delete the line item, a warning message comes up saying that " Quantity invoiced or delivered is less than the quantity ordered". And I am unable to proceed further and save the PO. Could anyone let me know as why this is happening?
    Thanks in advance.
    Regards,
    Adapala.

    Hi
    there is no need of group key.
    if any of these 3 are done, payment will be done in total.
    1.In setup all company codes for payment transactions , DESELECT seperate payment per business area check box
    2.In setup paying company codes for payment transactions , DESELECT seperate payment for each reference check box.
    3.In the Vendor Master got to payment transactions tab and below the payment method , there will be individual payment checkbox. DESELECT that check box.
    try again with first two with DESELECT options , i will check out with DME.
    Cheers

Maybe you are looking for

  • Mid 2010 MacBook Pro no backlight following keyboard spill.

    I am new here.  Can I get help with a mid 2010 MacBook Pro?  It appears to have a LED backlit screen.  A keyboard spill left me with a display problem.  In bright light at the right angle you can see that the display is still working, but there is ze

  • Open VI Reference

    I have built an application with LabVIEW 7.1 and I randomly get Open VI Reference errors whey I dynamically load VIs. The application I created loops on a series of VIs, dynamically loaded them as they are called. The problem is that I randomly get t

  • SYSTEM_NO_TASK_STORAGE error

    hi am new in basis. am facing one problem production server  .pls help me my server is sap 4.7ee database 9i os is windows 2003. RAM is 4gb swap is 12 max but is using 9.3 gb swap record Mon Jun 11 11:21:41 2007  interval  10   sec. Com charg Com cha

  • ICR - Process 002 - Business Area

    Hi Ralph, how can I reconcile for business area in ICR Process 002? In the standard table (FBICRC002A), there is not present field Business Area. Can yuo help me? Thank you so much. Best regards Giampaolo

  • Is it possible to sell a textbook in US store as a non-US user?

    Hello, I am preparing a textbook in Turkey. Is it possible to publish it on US store? I am wandering because I couldn't see textbooks in the store when I sign in to the store. Thanks