LOV in a Table - "Not a valid Value" - Urgent

Hi All,
I have an LOV inside a Table region. The table has the Add another row button. considering the table has currently 3 rows created and the user enters a dummy value not present in the LOV in the first row and tabs out. The LOV automatically pops up without any values. The issue is when the user closes the pop-up window or clicks on its cancel button. The LOV doesn't validate the data present in the text box. If the Submit button is clicked or the save button is clicked , The framework automatically validates the data present in the text box and throws an error "Not a valid value" .
Now im not sure why but the dummy data entered in the first text box is copied to the second and third text box , and the error is displayed for all the three rows. If there is valid data present in the remaining rows it just over-writes the data with the dummy value.
I have written SOP's in the controller's Process request as well as the process form request but none of them seem to display anything.
So the framework is basically validating this before the controller is called.
Im working on a 11.5.10 instance.
Need help to know if anyone has come across such a situation before.
Thanks ,
Dean

Dean,
Seems to be a looping issue. Also you need to get the exact error row.
Thanks
--Anil                                                                                                                                                                                                   

Similar Messages

  • [BUG] LOV inside AF:table doesn't return value

    Hi,
    I am using JDEV TP4.
    I have a LOV inside a af:table.
    <af:column sortProperty="LaoId" filterable="true"
    sortable="true"
    headerText="#{bindings.Packstuecke0012.hints.LaoId.label}"
    id="collaoid"
    partialTriggers="collagercode">
    <af:inputListOfValues id="laoIdId"
    popupTitle="Search and Select: #{bindings.Packstuecke0012.hints.LaoId.label}"
    value="#{row.bindings.LaoId.inputValue}"
    model="#{row.bindings.LaoId.listOfValuesModel}"
    required="#{bindings.Packstuecke0012.hints.LaoId.mandatory}"
    columns="#{bindings.Packstuecke0012.hints.LaoId.displayWidth}"
    shortDesc="#{bindings.Packstuecke0012.hints.LaoId.tooltip}"
    partialTriggers="lagerCodeId">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Packstuecke0012.hints.LaoId.format}"/>
    </af:inputListOfValues>
    </af:column>
    After selecting a value in the LOV and leave the LOV the id in the corresponding column field doesn't change.
    Same LOV outside of table works fine.
    Any suggestions?
    regards
    Peter

    Hi,
    Ok, I try to explain the problem more detailed:
    1) I have a model driven LOV (af:inputListOfValues) within a af:table column
    2) LOV is based on view and shows the id "LagerCode"
    3) Navigate to view object in the model select "Attributes" on the left side and double-click on the attribute "LagerCode"
    4) This opens the dialog "edit Attribute: LagerCode"
    5) navigate to register "UI-Hints"
    6) And here is the important step: UNSELECT the checkbox "Query List Automatically".
    7) Run the application and open the LOV --> The LOV list is empty (because of step 6)
    8) Execute "search" in the LOV and select any value
    9) PROBLEM: No value is returned to af:inputListOfValues
    If I do the same steps with a LOV outside of af:table everything is OK.
    If I do NOT UNCHECK the checkbox "Query List Automatically" in step 6 than the LOV list is queried as soon as the LOV dialob opens. In this case the selected value from the LOV list will be returned to af:inputListOfValues.
    I hope you are able to follow my steps and you can reproduce the problem.
    regards
    Peter

  • Pivot table not displaying the values correctly

    Hi,
    I have created a pivot table in which i am using 2 tables. I pulled columns from table A and one column from table B in the measures section to get the grand total. All the rows are comming fine but, its not returning any values for tableB's column(if i pull it into measures).
    If the column stays under rows section, the report is comming out fine.
    I need the total to be displayed in the report.
    Can some body help me with this.
    Thanks

    Hi David,
    i have set the column's aggregation to sum, and it is comming out correctly in the grand total, how ever, i have some of the coulmns which i am taking the %
    col3= (col2/col1)*100
    col1- aggregation set as Sum, col2 and col3 is set as default
    The values for col3 are comming finr in report , where as it is not returning correct value for garnd total row.
    ex: row w--- col1 col2 col3
    row1-----6630 1130 17.04
    row2 6114 994 16.26
    total 23317 3739 56.40(should be 16.2..)
    For col3 it is calculating like this(3739-total of col2/ 6630 -first row of col1 *100)
    Instead of taking total , it is taking the first row.
    I tried different aggregations, but was still unable to get the correct value. Can you please let me know if i am missing anything.
    Can we define custom aggregations.
    Thanks
    Gayatri
    Edited by: user12589255 on Aug 3, 2011 2:55 PM

  • OWHS table not getting any value in PLD

    I am trying to make a pld in which i want to pull the database table owhs and place the warehouse address i am not getting any value in the PLD however there is adress in the ware house field still its not getting me any result
    Please help
    Regards,
    manish

    Hi Manish....
    Even if you get the OWHS table you wont get the address format as you desire. That is complete concatenated address. It will be like city, street, country like that.....
    Regards,
    Rahul

  • LOV in Picklist is not reflected with Value Set maintained.

    Value set A is contained the latest/updated list of Responsibility Center. Wheres one of the Picklist in Employee Self Service(OTL) which showing the lists of Responsiblity Center which query/calling the values maintained in Value Set A. However, the list of values does not contain the latest information which being maintained in Value Set A. On the other hand, when query from backend table for the Picklist function, the updated value in Value Set A is there.
    Additional Infomation: Apache and application was bounced but the result still the same.
    Please advice. Thanks.

    Hi Hussien,
    For your information, it is Release 12.1.1, db version is 10.2.0.4 and platform version is Oracle Solaris on SPARC (32-bit).
    The article that you have provided does not applicable. This is only happen to the Cost Center LOV in the picklist which does not reflected even there is no end date in Value Set maintained.
    Please advice. Thanks.
    Regards,
    CF

  • POPUPKEY_FROM_LOV in multi update table not sending correct value.

    Hi,
    I have a query (report) region based on 10 different tables and working fine for updating multiple records at a time with APEX_ITEMs and process.
    Now I changed one of the item from TEXT to POPUPKEY_FROM_LOV. Now when I select a value in the LOV it's not populating the corresponding item (populating different item in the table). How do I tie the item with it's corresponding LOV value. Any help would be appreciated.
    Thanks,
    SP

    Scott,
    Here is the part of the code...
    select      APEX_ITEM.HIDDEN(10,W.ID) WATCH_ID,
         EMP.watch_cd WATCH_CD,
         star_no star_nos,
         EMP_NAME,
         APEX_ITEM.HIDDEN(1,AA.ID) A1,
         APEX_ITEM.CHECKBOX(2,AA.PRESENT_FOR_DUTY) A2,
         EMP.employee_position_cd TITLE_CD,
         EMP.employee_no,
         APEX_ITEM.TEXT(3,AA.ABSENCE_CD,3,3) A3,
         APEX_ITEM.TEXT(4,AA.ABSENCE_EXPLANATION,10) A4,
         APEX_ITEM.TEXT(5,CPD_UNIT_DETAIL_NO,5) A5, --vehicle_no,
    APEX_ITEM.POPUPKEY_FROM_LOV(6,(CASE WHEN (((select
    CPD_UNIT_DETAIL_NO from
    pps_emp_unit_history h
         where CPD_EMPLOYEE_ID = EMP.id
    and (end_date is null or end_date >= :P1_AA_DATE)
    and h.current_status_cd in ('UDAPP','UDFDAPP','UDDBAAPP','UDEND')
    and h.id = (select max(y.id) from pps_emp_unit_history y
              where y.cpd_employee_id = EMP.id
    and y.current_status_cd in
    ('UDAPP','UDFDAPP','UDDBAAPP','UDEND'))
    and effective_date <= :P1_AA_DATE) is NOT null)
    and (EMP.CPD_UNIT_ASSIGNED_NO = :P1_UNIT_NO )) THEN
    NULL
         ELSE
              (select watch_beat from pps_employee_watch w
              where w.CPD_EMPLOYEE_ID = EMP.id
              and id = (select max(id)
    from pps_employee_watch w2
    where w2.cpd_employee_id = EMP.id))
         END),'BEAT_CODES',3) A6, --watch_beat,
    APEX_ITEM.TEXT(7,additional_info,15) addtl_assignment
    from      cpd_employees emp, pps_employee_watch w,
         cpd_units cu, et_facilities ef,
         employee_positions ep,pps_aa_sheets aa
    where emp.id = w.cpd_employee_id
    and cu.cpd_unit_no = :P1_UNIT_NO
    and EMP.watch_cd = nvl(:P1_WATCH,EMP.watch_cd)
    and emp.employee_position_cd = ep.cd
    AND w.id = aa.pps_employee_watch_id (+)
    and emp.status_i = 'Y'
    and emp.cpd_employee_i = 'Y'
    and emp.organization_id = '1461'
    and ef.cpd_unit_no = :P1_UNIT_NO
    and (((select CPD_UNIT_DETAIL_NO from pps_emp_unit_history h
         where CPD_EMPLOYEE_ID = emp.id
    and (end_date is null OR end_date >= :P1_AA_DATE)
    and h.current_status_cd in ('UDAPP','UDFDAPP','UDDBAAPP','UDEND')
    and h.id = (select max(x.id) from pps_emp_unit_history x
         where x.cpd_employee_id = emp.id
    and x.current_status_cd in ('UDAPP','UDFDAPP','UDDBAAPP','UDEND'))
    and h.effective_date <= :P1_AA_DATE) = :P1_UNIT_NO))

  • External table not able to drop--Urgent Please

    hi all
    I created external table asd in my schema
    but now asd not able to drop
    giving error table or view does not exist ?
    Regards

    Hi Rob
    I was using plsql developer and i created table like lower case 'asd'
    It can drop from tode but not from plsql developer
    but i i created table Upper ASD now can drop from plsql developer
    Is this the bug of Plsql developer or what ?
    Regards

  • LOV validation issue: "Select a valid value"

    Hi,
    I have a lov problem in oaf: "Select a valid value".
    It is a common problem, but somehow I cannot figure it out.
    LOV
    - LovApplicationId (of type "formValue")
    - LovApplicationShortName (of type "messageStyledText")
    - LovApplicationName (of type "messageStyledText")
    (based on combination of fnd_application and fnd_application_tl)
    BASE PAGE
    Two relevant items.
    First one is "ApplicationId" of type "formValue" connected to view attribute "ApplicationId". (connected to EO attribute in VO)
    Second one is "ApplicationName" of type "MessageLovInput" connected to view attribute "ApplicationName" (calculated in VO)
    Two lovMappings.
    First mapping:
    LOV Region Item = LovApplicationName
    Return Item = ApplicationName
    Criteria Item = ApplicationName
    Use for validation = no
    Second mapping:
    LOV Region Item = LovApplicationId
    Return Item = ApplicationId
    Criteria Item = <null>
    Use for validation = yes
    For example.
    If I select "Inventory" in the LOV and click on the apply button in the base page, I am getting the error "Select a valid value".
    If I select "Inventory Optimization" in the LOV and click on the apply button in base page, no error. And when I look in database the record is saved in my custom table with the correct application_id.
    I have read many forum threads on this issue, but I cannot figure it out, what is wrong.
    Please help me out.
    Kind regards,
    Cor

    Hi Haroon,
    This doesn't solve the problem.
    It is true the exception I am getting doesn't show up anymore.
    But the application_id isn't saved to the database.
    First thing I would expect in this case, that the mappings are not set properly.
    But if I choose for the value "Inventory Optimization", the application_id is saved to the database.
    If I choose for the value "Inventory" the application_id is not saved to the database.
    So it is possible the get rid of the error in the screen, but the underlying problem is still there...
    I have checked some core pages, similar to the one I have.
    So an UPDATE page (rectification: instead of CREATE).
    I have set all attributes the same, but the problem still occurs in my case.
    Very strange.
    I would make no difference running the page from jdeveloper or put the files on the application server and run it from Oracle, would it?
    It makes no sense. But...
    Kind regards,
    Cor

  • When LOV does not return the value

    Check that you are not calling setText(String) on the web bean to set the default value. It causes your bean to no longer draw the value from the underlying VO. One of the symptoms is that selecting a value from the LOV modal window will not return that value to the base page. (The value from the LOV will actually be set on the VO, but the UI won't reflect it.)
    Setting the default value in the model layer is prefered. You can do this by overriding the create(AttributeList nameValuePair) method of OAEntityImpl or OAViewRowImpl.
    If, for some reason, you need to set the default value from the client side, you need to call setText with the pageContext, e.g., setText(pageContext, "myDefault");

    Hello
    Upon giving your question further thought I think that you would be better off if you added an 'id' column to table T1 and referenced this 'id' column in table T2 . Something like
    Table_T1(id number, c1 varchar2(100)
    and
    Table_T2(.other_columns.. ,t1_id)
    Your LOV will now be select c1 display,id return from table_t1The column t1_id will be defined to use this LOV.
    You will need no other modifications to the form on table_t2
    Varad

  • LOV does not return the value (1)

    Avoid calling setText on the web bean to set the default value. It causes your bean to no longer draw the value from the underlying VO. One of the symptoms is that selecting a value from the LOV modal window will not return that value to the base page. (The value from the LOV will actually be set on the VO, but the UI won't reflect it.)
    Setting the default value in the model layer is prefered. You can do this by overriding the create(AttributeList nameValuePair) method of OAEntityImpl or OAViewRowImpl.
    If, for some reason, you need to set the default value from the client side, you need to call setText with the pageContext, e.g., setText(pageContext, "myDefault");

    Hi RamKumar,
    Thanks for your reply.. I have already done that but no luck :(
    Regards,
    Hemanth J

  • Updating Items with DTW : error valid value

    hello,
    When I try to update one item with DTW I got one valid format error like this :
    "" is not a valid value for field "SellItem" the valid value are 'Y' 'Yes' 'N' 'No' application-defined or object-defined error65171.
    and this is my CSV file :
    RecordKey     ItemCode     ItemName     ItemsGroupCode     BarCode     SalesVATGroup     PurchaseItem     SalesItem     InventoryItem
        1;               AB1072;     IDE_CISL_HOBBY_1033;                  101     ;        5010356990356     ;  C4     ;Y     ;Y     ;Y
    So the same error came for the Last Three fields.
    Did someone have a solution ?
    JPL

    Hi Jean Pierre,
    Try entering the following values:
    yes: tYES
    no: tNO
    Case sensitive!
    Hope it helps,
    Adele

  • INSERT INTO EMP VALUES (7698, 'BLAKE', 'MANAGER',  ORA-01843: not a valid m

    One problem occured creating tables from old demobld.script:
    all inserts where accepted, but this one:
    INSERT INTO EMP VALUES
    (7698, 'BLAKE', 'MANAGER', 7839,
    TO_DATE('1-MAY-1981', 'DD-MON-YYYY'), 2850, NULL, 30);
    COMMIT;
    Changing the month into FEB helped.
    Bug?
    ORACLEXE running on Windows XP Home Edition.
    No problems with installing.
    Cheers,
    Huub.

    OK - I'm guessing that your OS uses Dutch language and locale settings and you did not ichange these settings when you installed XE. <g>
    On my XE system, I did the following:
    SQL> connect hr/hr
    Connected.
    SQL> alter session set nls_date_language='DUTCH'
    2 /
    Session altered.
    SQL> select to_date('1-MAR-1981','DD-MON-YYYY') from dual;
    select to_date('1-MAR-1981','DD-MON-YYYY') from dual
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> select to_date('1-OCT-1981','DD-MON-YYYY') from dual;
    select to_date('1-OCT-1981','DD-MON-YYYY') from dual
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> select to_date('1-OKT-1981','DD-MON-YYYY') from dual;
    TO_DATE('1-OKT-198
    01-OKT-81
    SQL> alter session set nls_date_language='ENGLISH';
    Session altered.
    SQL> select to_date('1-MAR-1981','DD-MON-YYYY') from dual;
    TO_DATE('1-MAR-198
    01-MAR-81
    SQL>
    So - I guess you want to change the NLS_DATE_LANGUAGE (or other NLS setting) to English when you want to load english month format.

  • ORA-01843: not a valid month, external table select fails on date column

    Hi,
    I created an external table as follows:
    CREATE OR REPLACE DIRECTORY sales_feeds AS '/backup/oracle/feeds';
    Directory created.
    CREATE TABLE salesfeed_external_table
              PROD_ID               NUMBER
            , CUST_ID               NUMBER
            , TIME_ID               DATE
            , CHANNEL_ID            NUMBER
            , PROMO_ID              NUMBER
            , QUANTITY_SOLD         NUMBER(10,2)
            , AMOUNT_SOLD           NUMBER(10,2)
    ORGANIZATION EXTERNAL
            TYPE ORACLE_LOADER
            DEFAULT DIRECTORY sales_feeds
            ACCESS PARAMETERS
                    RECORDS DELIMITED BY newline
                    FIELDS TERMINATED BY ','
            LOCATION ('salesfeed.dat')
    REJECT LIMIT 0
    Table created.I then create that external flat file salesfeed.dat as folows
    set echo off
    set feedback off
    set linesize 100
    set pagesize 0
    set head off
    set sqlprompt ''
    set trimspool on
    spool on
    spool /backup/oracle/feeds/salesfeed.dat
    select PROD_ID||','||CUST_ID||','||TIME_ID||','||CHANNEL_ID||','||PROMO_ID||','||QUANTITY_SOLD||','||AMOUNT_SOLD
    FROM salesfeed where rownum = 1;
    spool off
    exit
    cat salesfeed.dat
    18,3131,21/03/1998 00:00:00,3,999,1,2600.76Note only one row at the moment (diagonising)
    Try to read it
    select * from salesfeed_external_table
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-30653: reject limit reachedThe log shows:
    cat SALESFEED_EXTERNAL_TABLE_1302.log
    LOG file opened at 11/24/11 12:16:02
    Field Definitions for table SALESFEED_EXTERNAL_TABLE
      Record format DELIMITED BY NEWLINE
      Data in file has same endianness as the platform
      Rows with all null fields are accepted
      Fields in Data Source:
        PROD_ID                         CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        CUST_ID                         CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        TIME_ID                         CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        CHANNEL_ID                      CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        PROMO_ID                        CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        QUANTITY_SOLD                   CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
        AMOUNT_SOLD                     CHAR (255)
          Terminated by ","
          Trim whitespace same as SQL Loader
    error processing column TIME_ID in row 1 for datafile /backup/oracle/feeds/salesfeed.dat
    ORA-01843: not a valid monthI checked my nls date format etc:
    select * from nls_session_parameters;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   ENGLISH
    NLS_TERRITORY                  UNITED KINGDOM
    NLS_CURRENCY                   £
    NLS_ISO_CURRENCY               UNITED KINGDOM
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD/MM/YYYY HH24:MI:SS
    NLS_DATE_LANGUAGE              ENGLISH
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH24.MI.SSXFF
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH24.MI.SSXFF
    NLS_TIME_TZ_FORMAT             HH24.MI.SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH24.MI.SSXFF TZR
    NLS_DUAL_CURRENCY              ¤
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSEAny ideas?
    Thanks,
    Mich
    Edited by: Mich Talebzadeh on 24-Nov-2011 04:19

    Thanks
    The following now works
    CREATE TABLE salesfeed_external_table
              PROD_ID               NUMBER
            , CUST_ID               NUMBER
            , TIME_ID               DATE
            , CHANNEL_ID            NUMBER
            , PROMO_ID              NUMBER
            , QUANTITY_SOLD         NUMBER(10,2)
            , AMOUNT_SOLD           NUMBER(10,2)
    ORGANIZATION EXTERNAL
            TYPE ORACLE_LOADER
            DEFAULT DIRECTORY sales_feeds
            ACCESS PARAMETERS
                    RECORDS DELIMITED BY newline
                    FIELDS TERMINATED BY ','
                    MISSING FIELD VALUES ARE NULL
                    (         PROD_ID
                            , CUST_ID
                            , TIME_ID DATE  'dd/mm/yyyy HH24:MI:SS'
                            , CHANNEL_ID
                            , PROMO_ID
                            , QUANTITY_SOLD
                            , AMOUNT_SOLD
            LOCATION ('salesfeed.dat')
    REJECT LIMIT 0
    select * from salesfeed_external_table;
       PROD_ID    CUST_ID TIME_ID             CHANNEL_ID   PROMO_ID QUANTITY_SOLD AMOUNT_SOLD
            18       3131 21/03/1998 00:00:00          3        999             1     2600.76Regards,
    Mich

  • XMLTable default values for timestamp results in ORA-01843: not a valid month

    When I try to provide a default for a timestamp value in the XMLTABLE function, I am greeted with an error - ORA-01843: not a valid month - no matter how I provide that default value. Whether there is a value present in the XML or not is irrelavant for this bug to occur. It appears to be an incomplete fix of bug number 9745897 (thread).
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default sysdate) x;
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default systimestamp) x;
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default to_char(systimestamp, 'YYYY-MM-DD"T"HH24:MI:SS') ) x;
    Edit: A little more followup.
    This works:
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt date default sysdate) x;
    This also works, except for its just the date, and not the date/time
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt timestamp default sysdate) x;
    This doesn't work
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt timestamp default systimestamp) x;
    ORA-01861: literal does not match format string

    Hi,
    First of all, let's check the manual for the DEFAULT clause :
    XMLTABLE SQL/XML Function in Oracle XML DB
    The optional DEFAULT clause specifies the value to use when the PATH expression results in an empty sequence (or NULL). Its expr is an XQuery expression that is evaluated to produce the default value.
    According to the documentation, the DEFAULT clause should specify an XQuery expression.
    However, that is wrong, the actual implementation only expects an expression that resolves to a string, the content is not interpreted.
    So, bottom line is if we don't directly specify a string, the expression will be implicitly converted to one, and we all know how bad things can go when implicit conversions occur, especially when dates or timestamps are involved.
    Now let's focus on how the DEFAULT clause affects the query evaluation.
    When a DEFAULT clause is specified, Oracle rewrites the projection differently and do not use the native xs:dateTime format to convert the value  :
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp default systimestamp
      ) x
    becomes :
    SELECT CASE EXISTSNODE(VALUE(KOKBF$),'/DOC/DT')
             WHEN 1 THEN CAST(TO_TIMESTAMP(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(VALUE(KOKBF$),'/DOC/DT')),50,1,2)) AS timestamp )
             ELSE CAST(TO_TIMESTAMP(TO_CHAR(SYSTIMESTAMP(6)),'SYYYY-MM-DD"T"HH24:MI:SSXFF') AS timestamp )
           END  "DT"
    FROM TABLE("SYS"."XQSEQUENCE"(EXTRACT("SYS"."XMLTYPE"('<DOC><DT>2013-08-14T15:08:31</DT></DOC>'),'/DOC'))) "KOKBF$"
    See the red part : it doesn't use the format parameter, so the conversion relies on the session's NLS settings.
    When there's no DEFAULT clause, the TO_TIMESTAMP function uses an explicit format :
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      COLUMNS dt timestamp --default systimestamp
      ) x
    rewritten to :
    SELECT CAST(
             TO_TIMESTAMP(
               SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(VALUE(KOKBF$),'/DOC/DT'),0,0,20971520,0),50,1,2)
             , 'SYYYY-MM-DD"T"HH24:MI:SSXFF'
             AS timestamp --default systimestamp
           ) "DT"
    FROM TABLE("SYS"."XQSEQUENCE"(EXTRACT("SYS"."XMLTYPE"('<DOC><DT>2013-08-14T15:08:31</DT></DOC>'),'/DOC'))) "KOKBF$"
    so yes, maybe there's a bug here.
    Edit: A little more followup.
    This works:
    select x.*
    from
    xmltable('/DOC' passing xmltype('<DOC></DOC>')
      COLUMNS dt date default sysdate) x;
    Actually no, it doesn't work. Granted, maybe it doesn't produce any error, but the result is incorrect.
    As explained, the conversion relies on the session NLS (NLS_DATE_FORMAT in this case) :
    SQL> show parameters nls_date_format
    NAME                                 TYPE        VALUE
    nls_date_format                      string      DD/MM/RR
    SQL>
    SQL> select sysdate from dual;
    SYSDATE
    16/08/13
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC></DOC>')
      4    COLUMNS dt date default sysdate) x;
    DT
    13/08/16
    Oracle first converts SYSDATE to a string using current NLS_DATE_FORMAT, resulting in '16/08/13'
    Then this string is converted to a DATE using the xs:date format 'YYYY-MM-DD' resulting in 13/08/0016 (August 13, 0016) which is incorrect.
    The obvious workaround to this issue is to control how Oracle implicitly converts from string to date/timestamp format :
    SQL> alter session set NLS_TIMESTAMP_FORMAT= 'YYYY-MM-DD"T"HH24:MI:SS';
    Session altered.
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC><DT>2013-08-14T15:08:31</DT></DOC>')
      4    COLUMNS dt timestamp default systimestamp
      5    ) x;
    DT
    2013-08-14T15:08:31
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC></DOC>')
      4    COLUMNS dt timestamp default systimestamp) x;
      COLUMNS dt timestamp default systimestamp) x
    ERROR at line 4:
    ORA-01861: literal does not match format string
    SQL> select x.*
      2  from
      3  xmltable('/DOC' passing xmltype('<DOC></DOC>')
      4    COLUMNS dt timestamp default cast(systimestamp as timestamp)) x;
    DT
    2013-08-16T12:32:58

  • (XSRWLD06) A column value is not a valid member of its target dimension

    We are facing a strange issue that all the records gets rejected when attempted to load the cube. The error message is - (XSRWLD06) A column value is not a valid member of its target dimension
    This cube is simple and has only one dimension and one measure. The dimension has only 2 records and mapping appears to be correct.
    Really confused and unable to find the cause of the problem. Pls can you help
    Query used to populate the dimension
    ==========
    SELECT DISTINCT /*+ bypass_recursive_check */ T1."ACCFLAG_DESC" ALIAS_3, T1."ACCFLAG_DESC" ALIAS_4, T1."ACCFLAG_DESC" ALIAS_5, NULL ALIAS_6, 3 ALIAS_7 FROM NEDDWOWNER."OWNERSHIP_ACCOUNTS" T1 WHERE (T1."ACCFLAG_DESC" IS NOT NULL) UNION SELECT DISTINCT /*+ bypass_recursive_check */ T2."ACCFLAG_DESC" ALIAS_8, CAST (NULL AS VARCHAR2 (60) ) ALIAS_9, T2."ACCFLAG_DESC" ALIAS_10, NULL ALIAS_11, 0 ALIAS_12 FROM NEDDWOWNER."OWNERSHIP_ACCOUNTS" T2 WHERE (T2."ACCFLAG_DESC" IS NOT NULL) ORDER BY 1 ASC NULLS LAST
    ===========
    Query used to populate the cube
    ==========
    SELECT /*+ bypass_recursive_check cursor_sharing_exact no_expand no_rewrite */ T5_ACCFLAG_DESC ALIAS_13, SUM(T8_ES_CBSCCO_AJ_GBP) ALIAS_14 FROM ( SELECT /*+ no_rewrite */ T1."OWA_SEQ_ID" T8_OWA_SEQ_ID, T1."ES_CBSCCO_AJ_GBP" T8_ES_CBSCCO_AJ_GBP FROM NEDDWOWNER."VW_ACCOUNTS_MON_CUB_LOAD" T1 ) T8, ( SELECT /*+ no_rewrite */ T1."OWA_SEQ_ID" T5_OWA_SEQ_ID, T1."ACCFLAG_DESC" T5_ACCFLAG_DESC FROM NEDDWOWNER."OWNERSHIP_ACCOUNTS" T1 ) T5 WHERE (T8_OWA_SEQ_ID = T5_OWA_SEQ_ID) GROUP BY (T5_ACCFLAG_DESC) ORDER BY T5_ACCFLAG_DESC ASC NULLS LAST
    ===========
    Rejected Record
    Consumption 0
    Production 0
    Error:
    (XSRWLD06) A column value is not a valid member of its target dimension.

    Hi - This is still unanswered. Will the datatype of the source column mapped to the member and the fact table create the problem? As we are in the middle of evaluating different OLAP products, any inputs on the issue, will be really helpful...

Maybe you are looking for

  • Disc is not being read and is not stuck

    MacBook is not reading my disc and now it is stuck inside.  How do I get it out?

  • Ipod touch 5th gen internal device error

    Hi I purchased an ipod touch 5th gen today and have had no luck getting my music onto it from itunes. Everytime I attempt to sync it either reads "internal device error" or "could not sync with this ipod as it was unable to be read from". I have trie

  • Reading Windows text file in Fortran?

    Is there a way to make the f90 compiler read Windows text files properly? I made a simple test with a text file created on a Windows system containing these three lines: This is a Windows text file. It has some extra control characters. Unix does not

  • Constant Crashes, Not NVidia though

    Well i have been experimenting with some editing and i can play around for the most part, but it always force quits on me and says its going to send a crash report to adobe, this is getting really annoying, especially since i upgraded my computer jus

  • Content Repository cannot be addressed from the frontend

    I have created a Archive Link content repository using transaction OAC0 and when I test it using RCMST, then I get the error "Repository cannot be addressed from the frontend" in logs accessed through SLGI. There's also an error like : Component: ods