Weird errors with a DATE field in a certain row

We have a table with an exp_date field of DATE datatype. One row is giving us mysterious problems.
If I query the row in sqlplus, the exp_date field displays 18-Jun-04. The same query in Oracle SQL Developer displays 19-Jun-04. The same query in TOAD returns a NULL field, and adding "exp_date IS NULL" to the query returns no rows (since it really isn't NULL!).
In sqlplus, if I use trunc() or round() on exp_date, it gets bumped up to 19-Jun-04.
This field for this record is causing some issues in our java classes as well, we're adding some more logging/exception handling to find out exactly what they are.
Any thoughts?
FWIW this is on Oracle 10gR2 (10.2.0.2).
Message was edited by:
dtseiler

what happens if you do the following on all three different environments:
SQL> select to_char(exp_date, 'dd-mon-yyyy hh24:mi:ss') from your_table where your_condition ;
[pre]

Similar Messages

  • Billing report with due date field

    Dear Friends,
    Can you please tell the logic of Billing report with due date field.
    Input.  billing document no, date range, sales organisation
    Output : billing document no, sales organisation, Amount. Due date.
    If any clarification required, Please let me know.
    Thanks in advance
    Ranjan

    Is it VF05 is suffiant for your purpose?
    use further selection criteria tab.
    Amit.

  • No message for validation error "format", type "date", field "date-expired"

    Dear
    Guys,
    i am getting the following error : ((No message for validation error "format", type "date", field "date-expired"))
    When trying to upload adobe connect 7 license to the adobe connect 7 configuration wizard. the problem occurs because my server was install on Arabic Saudi Arabia date format while installation, but if i change the windows date format to US then the problem still occurs, and formatting windows is not possible, could anybody help??
    Regards

    Thank you for replying,
    No i am not on host mode, a have installed it deferent times ago successfully, but the only problem now is that during the installation windows server 2008 the default language, time and date. Was set Arabic Saudi Arabia. And even changing it does not solve the problem, as i mentioned above.

  • Error While using date fields in HIbernate Criteraia

    I am trying a sample applciation using Hibernate with JPA. I am using annotations to map database table with Java class.I am using org.hibernate.Criteria to form where clause. My code looks as follows:
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("PERSISTANCE_UNIT");
    EntityManger em = emf.createEntityManager();
    Session session = em.getDelegate();
    Criteria criteria = session.createCriteria(MyDO.class)
    criteria.add(Restrictions.eq("myDO.date",myDO.getDate()));
    List list = criteria.list();
    I am searching the data base based on the date field (myDO is an instance of MyDO.class which contains the mapping to the data base table). While running the application first time after publishing to server, I am getting the following error. For subsequent running of the application I am not getting any error and the appliaction was running with actual results.
    JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -181, SQLState: 22007
    JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions THE STRING REPRESENTATION OF A DATETIME VALUE IS NOT A VALID DATETIME VALUE
    org.hibernate.exception.DataException: could not execute query
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         at org.hibernate.loader.Loader.doList(Loader.java:2223)
         at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
         at org.hibernate.loader.Loader.list(Loader.java:2099)
         at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
         at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    Can anybody help in fixing the problem.
    Thanks in advance.

    Resolved the issue by setting System date where expected

  • Error while inserting date field data in user nanaged cache group( program)

    Hi,
    I had usermanaged cachegroup, it is working fine as expected when I insert the record on the ttIsql prompt but when I try to insert the record programmatically (using c language ) it gives me the following error for date field
    pthread_kill(??, ??) at 0x90000000217d214
    praise(??) at 0x90000000217cc68
    raise.raise(??) at 0x900000000050c84
    abort() at 0x90000000007ac1c
    getExports.getPtrArrayIf() at 0x9000000030a16c0
    datetime.sbPatCmp() at 0x9000000033033ec
    cacheAgingAPI.hashString() at 0x900000003663eac
    unnamed block in ttBdbOraInputValue(0x7000000476efbb0, 0x73000000000073, 0x70000004866dea8, 0x113d8fdf0, 0xfffffffffffd250, 0x113d8fdf8, 0x113c1def0), line 690 in "bdbConvert.c"
    ttBdbOraInputValue(0x7000000476efbb0, 0x73000000000073, 0x70000004866dea8, 0x113d8fdf0, 0xfffffffffffd250, 0x113d8fdf8, 0x113c1def0), line 690 in "bdbConvert.c"
    bdbBufferStmt(0xf9000000d2845518, 0x834d0, 0x623e8b8, 0x73000000000073, 0x0, 0x0, 0x100000001, 0xfffffffffffd3f0), line 1290 in "bdbTblH.c"
    ttBDbTableHInsert(0xf9000000d2845518, 0x834d0, 0x623e8b8, 0x73000000000073, 0x0, 0x113c1def0), line 991 in "bdbTblH.c"
    sbTblStorLTupInsert(0x7000000415347c8, 0x700000083668090, 0x0, 0x0, 0xfffffffffffd928, 0x113c1def0), line 15648 in "table.c"
    eeDML.sbEeInsertEval(0x70000008385d7c0, 0x7000000833cff98, 0x0, 0x113c1def0), line 5035 in "eeDML.c"
    eeDDL.sbEeStmtEval(0x423ac4c8, 0x7000000833cff98, 0x113c1def0), line 12100 in "eeDDL.c"
    sbSqlCmdExec(0x70000008385d618, 0x0, 0x0, 0xfffffffffffe670, 0x0, 0x0, 0x113c1def0), line 4052 in "cmdExec.c"
    sb_sqlExec(0x113d27f68, 0x0, 0x0, 0xfffffffffffe840, 0x0), line 1470 in "sqlAPI.c"
    cxlSqlExecute(0x113d273d0), line 3436 in "cxlsql.c"
    stmtExecPart2(0x113d273d0), line 1372 in "vsexec.c"
    stmtExecute(0x113d273d0), line 948 in "vsexec.c"
    SQLExecDirect(0x113d273d0, 0xfffffffffffeb20, 0xfffffffdfffffffd), line 172 in "sqlexec.c"
    Can please guide me.
    Regards
    S

    I have tried but still I am not getting, can u check it out weather we have possibilites to work with DB links or shall i remove it.

  • Error  in mapping data fields using BODS Designer

    HI All
    I am trying to map the data from excel sheet to SAP ECC 5.0 using Business Objects data services Designer .
    However after mapping the data Fields when i try to do the Validation It is giving me the error message :
    u201D(Data Flow:New_data Flow) (Query:Query) FROM: The input schemas are not specified for <Query.Queryname >u201D
    If anybody has experienced the same error in the past Please let me know how to resolve this error.
    Thanks in Anticipation

    Hello,
    Please check your "From" tab whether it is having the input table name is there or not. also check the mapping tab it should gives you "Schema.field"  format.
    Kindly revert with your findings.
    thx
    Deep

  • Issue with a date field

    Hi,
    I have a pl/sql page that is the output of a select statement with some conditions.
    One of the condition is like:
    AND MyColumn between (:P1_MyDateItem - 7 , :P1_MyDateItem)
    but as soon as I include an addition or substraction (:P1_datefield - 7) , I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    How can I resolve that error?
    Also,
    I am trying to pass the date field to a second page in a hidden field. In a similar scenario as the one described above, how can I manipulate the date using the hidden field. ie. in my testing, I think it kind of converts the "date" into "char' format?? can I also do the same manipulation "Date-7" but this time using a hidden field instead?
    Thanks

    FabioBui wrote:
    but as soon as I include an addition or substraction (:P1_datefield - 7) , I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
    How can I resolve that error?Try converting it to a date first
    to_date(:P1_datefield, <date_format>)-7
    I am trying to pass the date field to a second page in a hidden field. In a similar scenario as the one described above, how can I manipulate the date using the hidden field. ie. in my testing, I think it kind of converts the "date" into "char' format?? can I also do the same manipulation "Date-7" but this time using a hidden field instead? Yes, if that's what you want to do. A date field is just a text box, made nicer with the jQuery Date Picker.
    so date picker:
    <input type="text" value="12/14/2011" />
    to a hidden item
    <input type="hidden" value="12/14/2011" />
    only difference being the display type.
    Just remember to convert it to a date in your pl/sql code.

  • Help with a date field script

    Sorry if this is a repeat. I was interrupted and found that my browser had crashed when I came back so I'm not sure if the question got asked.
    I need a script for a date field (mm/dd/yyyy) where the user can only fill in a date that is between 12/31/1899 and the current date (whatever the date when the form is opened). I'm getting better at writing these but I haven't been successful with this one. Any help would be greatly appreciated.
    Thanks!

    I have a feeling I already answered this question some time ago... Anyway, you can use this code as the field's custom validation script:
    var minDate = util.scand("mm/dd/yyyy", "12/31/1899");
    var maxDate = new Date();
    event.rc = true;
    if (event.value) {
        var d = util.scand("mm/dd/yyyy", event.value);
        if (d<minDate || d>maxDate) {
            app.alert("Error! The entered date must be between " + util.printd("mm/dd/yyyy", minDate) + " and " + util.printd("mm/dd/yyyy", maxDate));
            event.rc = false;

  • Web services with xsd:date field

    hello everybody.
    i have a curious problem.
    I'l working with PI 7.1
    I made a interface soap to RFC
    In inbound message i have some field with type date.
    When i call web service all field are populated but date fiend no.
    I'm sure from web service client i do the call correctly!
    any suggestion?

    hi,
    When i call web service all field are populated but date fiend no.
    Are you getting  any error message while posting the soap message through the test client.What is the result when you test in message mapping test tab with the same test data.
    Are you able to do the RFC call properly when tested in message mapping?
    Please check if the date format you have mentioned in your structure is correct.
    regards,
    Srinivas

  • Weird error with taglib

    Hello, I'm getting this weird error. Sometimes when I'm using taglibs I get org.apache.jasper.JasperException: /mypage.jsp(11,4) According to TLD or attribute directive in tag file, attribute value does not accept any expressions. I refresh the page, and it displays, refresh again and the error is there again, this keeps happening randomly.
    In this post I found a solution http://forum.java.sun.com/thread.jspa?threadID=683007&messageID=9423383, changing the taglib to the "_rt" works, but some guy says this is not a preferred solution.
    This is my code without the "fix":
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title><fmt:message key="appTitle"/></title> 
        </head>
        <body>      
            <h3><fmt:message key="news"/></h3>
            <c:forEach items="${model.news}" var="news">
                <p>
                    <strong><c:out value="${news.title}"/></strong> - <i> <fmt:formatDate value="${news.daten}" pattern="dd/MM/yyyy"/> </i> - <a href="<c:url value="deleteNews.htm?newsId="/><c:out value="${news.id}"/>">Delete</a> - <a href="<c:url value="editNews.htm?newsId="/><c:out value="${news.id}"/>">Edit</a> <br>
                    <c:out value="${news.content}"/><br>
                    <small>Source:<c:out value="${news.source}"/></small>
                </p>
            </c:forEach>       
            <a href="<c:url value="addNews.htm"/>">Add News</a>       
        </body>
    </html>How can I fix this issue using the normal taglibs?
    Thanks in advance

    You seem to be mixing the versions of JSTL taglibs in your page.
    For the c taglib you are using the JSTL1.1 URI
    For the fmt taglib you are using the JSTL1.0 URI
    Change the import line to use the JSTL1.1 URI, and you should be set
    <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
    (note the subtle change with /jsp in there)
    As I mentioned in the other post, use of the _rt taglib should be restricted to JSP1.2 containers (eg Tomcat4)
    In JSP2.0 containers (Tomcat5+) you should use JSTL1.1, and it should work perfectly, provided your web.xml file is up to date.
    Some other posts on the subject you might find useful, that explain why the JSTL1.0 tags did not accept runtime expressions:
    http://forum.java.sun.com/thread.jspa?threadID=628740
    http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0
    Cheers,
    evnafets (some guy)

  • Purchase order error with future date

    Hi,
    Here one scenario like
    We have created a sales order VA01-->Pur. Order ME21N with current date i.e., 05.09.2008. System able to post perfectly and post MIRO, cutomer invoice and finally released to accounting.
    Now, same sales order VA01-->Pur. Order ME21N with future date i.e., 05.09.2009. System threws error message "Account requires an assignment to a cost object".
    Here my question is, why system is asking this assignment if i gave future date(05.09.2009) and why system is not asking if i gave current date(05.09.2008) ? remaining all are same except date
    Looking forward your comments/thoughts
    thansk
    anifi

    Hi,
    Thanks for your reply
    regards
    Edited by: Anifi on Sep 22, 2008 6:18 AM
    Edited by: Anifi on Sep 29, 2008 2:05 PM

  • Is there a way to import a indd CS4 file with its Data Fields names and properties into CC?

    I have to convert numerous files from CS4 to CC. The CS4 files are using external data from a CSV file. When I open the file in CS4 I can enable the preview and see the data from the CSV file. But when I save the file as indd or idml and try to open it in InDesignCC then I can't see the data as preview. I can see the Data fields (text).I think it's because it doesn't recognize the data fields from the CS4 file. If I delete a data field and remap it I will be able to see the preview for the field I just mapped. the other fields remain the unchanged, like they were just text.
    Any help with this topic will be very appreciated. I have about 70 data fields per document and about 100 documents to go through.
    Update: The symbol for a data field, ex: «fullname_2» change size when I delete and remap it. Explanation: When I open the CS4 file in IndesignCC I can't view a preview of the Data field(s) (almost positive because it's plain text). The data fields show like this «fullname_2». But when I delete that and drag a field from the data field list it shows like this <<fullname_2>>. So definitely, CC is not reading the data fields from InDesign CS4.
    P.S.: The fields above («fullname_2» and <<fullname_2>>  are copy and paste from Indesign CC.

    I'm attaching this image so this forum can notice the difference on the Data fields from CS4 and the ones added on CC

  • How to create a group with multiple data fields

    Post Author: RichS
    CA Forum: Formula
    Using CR XI.  Using CSV input from ODBC text driver.  No problems here.
    There are 3 fields that I want the same group by action.  Is this possible?) 
    If any one of these 3 fields change I want some header information and column fieldnames to display.  The header information I only want displayed on the first page (on the change) and the column fieldnames to display on every page.  I have played around with things like "InRepeatedGroupHeader" and "report group header on each page".  I am not getting all the results that I am looking for though.
    I want report to look like:
    Page header stuff  (to display on every page)  This data consists of some fields that will have static data and will display on every page.  And it consists of 3 non-static fields that I want to group on. 
    Group header stuff that I only want displayed on the first page on a change from one of the 3 fields mentioned above.
    Column headings that I want displayed on every page.
    Details data
    Group footer stuff (details not important for this)
    I get the expected output (column headings displayed on every page, and group header stuff display on the first page on each group change) with one group field.  But I want the group change to happen for all 3 fields.
    It seems simple but I can't find a way to create a "group" so if "field1 or field2 or field3" change, I get the same "group by" action.  I just need to know how to get the expected action.
    I expect that I might have some terms mixed up and/or some important information that would aide you in helping me.  If that is the case please re-post and I will add any missing or mis-stated information.
    Thanks,

    Post Author: V361
    CA Forum: Formula
    I am slightly confused, but perhaps you can create a formula
    Then group on the formula.  If this is not what you want, could you post some sample data, with the desired results.

  • Error while updating Date Field on Process Form.

    Hi,
    I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
    So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
    But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
    ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
    Can anyone suggest any method to update date field on process form?

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

  • Java.lang.NullPointerExecption error with ExecuteWithParam data control

    Hello,
    my application has a database connexion ; with the wizards, I made a Businness Components from Tables ; after that, I've changed the querry of my one and only View (btw, there are 4 entity objects). I put on a view criteria with a bind variable and the query in the xml file view is like this :
    SELECT CRAH.JOURINPUT,
    CRAH.CODEPROJET,
    CRAH.CODEANA,
    CRAH.DUREE,
    CRAH.DESCRIPTION,
    CRAH.IDUSER
    FROM CRAH CRAH
    WHERE Iduser=:VarIduser
    In my jsf page, I've dragged and dropped the ExecuteWithParams data control (in the same view as above) as an ADF Parameter form. I finally create an ADF table by dragging'n'dropping this very same view's datacontrol.
    The problem is when I run, it works!!! but after like 2 click on the execute with parameter button, I get a java.lang.NullPointerExecption for every attribute in the table.
    Could anybody gets me a piece of advice on this ? The thing is it works when I test with the Application Module. What's the problem here ?

    Hello.
    Well, even with a simple EO/VO for a single table, one view criteria and its bind variable, I get the same error. It still works in the AM test run. I get this error message in the embedded OC4J log :
    08/07/09 09:19:20 [757] **** refreshControl() for BindingContainer :oracle_jbo_uicli_binding_JUFormBinding_140
    08/07/09 09:19:20 [758] DCUtil, returning:oracle.adf.model.binding.DCParameter, for AMCADataControl
    08/07/09 09:19:20 [759] Reusing DC transform for AMCADataControl_sessiondef.view_pageDefs_view2PageDef_VOCA1_0_DynamicRegion
    08/07/09 09:19:20 [760] INFO: getDCKey for data.view_view2PageDef yielded view.DataBindings.cpx
    08/07/09 09:19:20 [761] variables variables passivated >>> ExecuteWithParams_CAVAR=FG
    08/07/09 09:19:20 [772] WARNING: data control: oracle_jbo_uicli_binding_JUFormBinding_140 is unknown in: view.DataBindings.cpx
    08/07/09 09:19:20 [773] INFO: getDCKey for data.view_view2PageDef yielded view.DataBindings.cpx
    So, do you think I did something wrong with the data control ? Because the problems core seems to be here. The thing is that they are automaticly created... so is there something else to do ?
    Frédéric

Maybe you are looking for

  • Complaints - Lack of response - Please Help!

    Here is a copy of an email that i have sent to BT twice in the last 4 days,  as yet i have not received a response or even an acknowlegement.  Hi I have a complaint about my BT bill that I tried to resolve with no success via telephone this morning.

  • Store Order Surcharges and Discount to Post to Warehouse Cost Center?

    Dear All In an order from store to warehouse, our setting is such that if there is a logistic charge, it will post to the store's profit center as per below as the Store is the receiving site in the document. From PK     GL             Desc          

  • BIND Failure due to ACL

    Hey; Ok i realise that it is a DNS issue however everything looks alright in server admin; does any one know what the specific issue is with this error and specific steps to fix? Server Log below: May 30 16:09:02 imac named[87612]: starting BIND 9.6.

  • Contract for 3 years,

    hell everyone, would you please advise regarding the doability of the following scenario: we need to create a contract for 3 years, where the price is known for the first year.. but it is not for the remaining two years, it will be decided later.. ho

  • Question about making buttons

    I've been struggling with formatting my website (http://www.lesill.com). I have posted pictures fine, but these are photos offered for sale and I can add paypal carts and add to cart buttons fine. The problem is that the Add to cart buttons, even the