Error 10000 Date format issue

Hi all,
Has anyone seen the following error please or has a troubleshooting hint: -
"[NT AUTHORITY\SYSTEM (15/10/2012 18:35:12) - Service request cancelled due to an error.
Error Code: 10000
Error Description: Failed to create lease requisition.
Fault code: soap:Server
Fault string: Service Form Field: 'WarningDate2' has Date format issue.
Fault details: REQ_0024Service Form Field: 'WarningDate2' has Date format issue.
CIAC = 3.01
Date and Time format on the CCP, CPO, vmware and SQL servers all Italian (dd/mm/yy)
This only happens when we add a Lease Time on the request.
Do they all have to be set to the US format for this to work?
If this is a regional setting thing, do I have to change the format on all of the servers (CIAC components)?
Cheers
md

This test program might help...
import java.util.*;
import java.text.*;
public class ExpandYear
    public static void main(String[] args) throws ParseException
     SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
     SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
     String test1 = "3/21/00";
     System.out.println("test1: " + test1 + " to : " +
                  sdf_4dyear.format(sdf_2dyear.parse(test1)));
     String test2 = "4/9/99";
     System.out.println("test2: " + test2 + " to : " +
                  sdf_4dyear.format(sdf_2dyear.parse(test2)));

Similar Messages

  • Error in date format returned in FM: RH_READ_OBJECT

    Hi All,
    I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
    It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
    It is strange because it does not happen all the time just in some particular scenarios.
    Do you have any idea about this issue? Is there any note related to this?
    Below a link to a debug screenshot:
    [http://tinypic.com/view.php?pic=1zegppt&s=7]
    Thanks!

    Hi Viji and thanks for your answer!
    I checked checked user default settings and we have the same date format as anther user who is working ok.
    Also I do not think it is a user settings related error because this is the result returned by a standard FM in debug mode so the value in the screenshot should be in internal Sap format which is: YYYYMMDD.
    Any other idea on this?
    Thanks!

  • JDBC Error with DATE format

    Hello,
    we had created a scenario file to jdbc. while sending file to Oracle DB, it shows error as "ORA-01861: literal does not match format string". we checked the literals and white spaces. still we have same problem. so i have doubt on DATE format. we are sending date from PI system as yyyyMMdd which is not supported by Oracle i think. So please provide the DATE format accepted by Oracle and how to pass from SAP PI mapping. it will be appreciable if provide Steps to do in mapping or UDF code sample.
    Also in response status we get the error "ORA-00917: missing comma ".  So plz let me know how to solve this issue.
    Thanks in Advance.

    Hi
    The date format for oracle is dd-MON-yyyy.
    Please refer to blog below
    /people/santhosh.kumarv/blog/2008/10/10/life-is-all-about-days-date-in-xi
    /people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function
    Regards,
    Deepak.
    Edited by: Deepak  Shah on May 21, 2010 3:35 PM

  • Date Format issue in my report.

    Hello Experts-
    I created a report with a date prompt, which we need to enter two dates, start date and end date.
    I followed the steps as they were in this link
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    I changed the condition in the prompt to Date'1900-1-1' instead of TIMESTAMP'1900-1-1- 00:00:00
    I.e.,
    CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE Date' 1900-01-01' END
    and
    CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE Date '2999-12-31' END
    I stored those two dates in two presentation variables start_date, end_date
    In my report, I imposed a filter on my table that, date coulmn in my table is between Date'@(start_date}' and Date'@{end_date}'
    But when I am running the report with entering two dates, I am getting this error:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 12/1/2010 does not match the specified format. (HY000)*
    I entered 12/01/2010 as start date and 12/02/2010 as end_date
    Can you please guide me in this issue.

    I think your date format is in different format with the date format u stored in presentation variable so better check the date format of the case function u wrote it in you variable that will solve the problem.

  • Date Formatting Issue

    Hi ,
    I Have Procedure where it take input parameter date value
    for eg
    PROCEDURE P_GET_EMP_DATE(V_DATE IN DATE)
    IS
    V_BEGIN_DATE DATE;
    BEGIN
    SELECT max(BEGIN_DATE) into V_BEGIN_DATE FROM
    emp where TRUNC(APPT_DATE) =V_DATE+90;
    END;
    now my doubt is APPT_DATE is storing the date format in 12/16/2002
    but V_DATE which iam passing to the procedure is in the format
    '14-jul-2008' . When i execute the procedure its compiling and executing
    successfully.
    but when i try to test the single sql manually i get the following error
    ORA-00932: inconsistent datatypes: expected DATE got NUMBER .
    i know to fix the issue we have to do like this
    TO_DATE(TRUNC (APPT_DATE),'YYYY/MM/DD') < = TO_DATE('2007/03/31','YYYY/MM/DD') + 90;
    my doubt is how pl/sql engine interpreting the dates and returning the results
    though there are errors in the query.does it automatically doing formatting
    and type conversions ?

    You seem to be a bit confused about how to work with Oracle dates...
    Basically, we humans represent dates as strings in particular formats: 14th July 2008, 14/07/2008, 07-14-2008, etc.
    Oracle stores dates in its own particular format.
    In order for us to communicate with Oracle's dates, we either manipulate something that's already stored in the database as a date (eg. sysdate or a date column) OR we use the to_date and to_char functions, which convert a string to an oracle date format and vice versa.
    When working with dates in Oracle, you should stick to using the date format. If you're working with things already stored in dates, then great - you've got nothing to worry about conversion wise (and more specifically, never to_date something that's already in the date format!). You only have to worry if you have to specify a particular date as a string - then the to_date function comes into play.
    If you're wanting to output a date, you can either rely on your nls_date_format parameter setting (ok for ad-hoc queries, bad for coded queries!!) or you can explicitly state the format you want it to appear in using to_char.
    Hopefully that's clarified things for you

  • Date format issue in oracle database

    Hi,
    Back end : Oracle 11.2.0.2.0
    Front end : Forms 11g
    In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
    Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
    In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
    The Nls_date_format parameter at database level is set as 'DD-MON-RR'
    Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
    pls help us to solve the issue.
    Regards.
    sathish k

    892913 wrote:
    Hi,
    Back end : Oracle 11.2.0.2.0
    Front end : Forms 11g
    In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
    Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
    In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
    The Nls_date_format parameter at database level is set as 'DD-MON-RR'
    Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
    pls help us to solve the issue.
    Regards.
    sathish kWell the solution is right in front of you. As you say, your database environment is set to DD-MON-RR so your database is set to use 2 digit years (something most people moved away from with the millenium bug more than 10 years ago now). You can either change all your code to use RRRR as you've found, or change your database NLS setting to DD-MON-RRRR and change your front end application to pass you a date with 4 digit years so you get e.g. '20-dec-2009'.
    So many people worked hard to resolve the millenium bug issues all those years ago, but still we have people, all these years later, who want to reintroduce the problem. So sad.

  • Date format issue in Web Analysis...

    Hi,
    I am creating a report by connecting to a couple of relational tables. I'm using SQL Spreadsheet and SQL Subscription objects. I'm creating a Date filter using SQL Subscription object (list box) using the data source created by the SQL Spreadsheet. My database default date format is 'DD-MON-YYYY'. But in the list box it shows as 'YYYY-MM-DD HH24:MI:SI". When this value is selected, I get a "Literal mismatch error" since it doesn't match with the value stored in the database.
    Why the format in WA is showing in this format even though it is fetchting it from my database in which the format is 'DD-MON-YYYY'. Is this related to WA date format settings? I cannot find anywhere in WA studio where I can set date formats. Is this something to be set in the server or webanalysis.properties file?
    PS: I tried to work around this by storing the date value as character in the database but then I am not able to sort them ascending or descending order.I also tried creating the web analysis relational database connection which creates a virtual cube. But even there when I build the report using Data Source Navigator, it is showing date in 'YYYY-MM-DD HH24:MI:SI'.
    H

    Hi,
    Let me provide you the details of the report.
    A concurrent program has been created with executable as XDODTEXE (XML publisher report).
    In the data definition, we have embed one query which fetches transaction date and due date from some tables based on some conditions.
    Now, we have to show these date columns in report output which will be in EXCEL format.
    We want these date outputs to be printed in dd/mm/yyyy format. That is the reason we had given-
    TO_CHAR(TO_DATE (SUBSTR(transaction_date,1,10), 'DD/MON/RRRR'),'DD/MM/RRRR') in the SQL query.
    Problem in output is- In date columns, data after 12th is fine i.e. in format dd/mm/yyyy, it is printing properly.
    But before 12th, it is printing in format mm/dd/yyyy as mentioned below-
    01/10/2012--wrong format, it should be 10/01/2012
    01/11/2012--wrong format, it should be 11/01/2012
    01/12/2012--wrong format, it should be 12/01/2012
    13/01/2012--correct format (dd/mm/yyyy)
    14/01/2012--correct format (dd/mm/yyyy)
    How can i send you the attachment, is there any way/any email id?
    Rgds-
    Sumir

  • Error in date format when  I load a CSV file

    I am using Oracle G10 XE and I am trying to load data into my database from comma separated files.
    When I load the data from a CSV file which has the date with the following format "DD/MM/YYYY", I received the following error "ORA-01843: not a valid month".
    I have the NSL_LANG set to AMERICAN. I have tried the following command: "ALTER SESSION SET NLS DATE FORMAT="DD/MM/YYYY" and this does nothing. When I try to run "SELECT SYSDATE "NOW" FROM DUAL;" I get the date in this format "10-NOV-06".
    I will appreciate any help about migrating my data with date fields in format DD//MM/YYYY.
    Sincerely,
    Polonio

    See Re: Get error in date when I load a CSV file

  • Uk date format issue with ASP and Access Database

    I have an Asp form which updates records in an Access
    database. Problem is
    that the date format in the database record is dd/mm/yyyy
    (UK), when
    the record is displayed on the form it is mm/dd/yyyy(US)
    which after I
    update the record in the database the date has changed to the
    new format.
    I have tried everything I can to change the format but to no
    avail...anyone any ideas how I can resolve this issue?
    Thanks
    Steve

    stevo.s wrote:
    > Hi
    >
    > I have tried changing the format on the date field on
    the server behaviours
    > panelto ddmmyyy. Also have tried to set the form field
    format to ddmmyy. I have
    > also tried to use a function I got from a posting
    somehwere on the net to no
    > avail. <%function ddmmyyyy(varDate)
    > ddmmyyyy = Day(DateValue(varDate)) & "/" &
    Month(DateValue(varDate))
    > & "/" & Year(DateValue(varDate))
    > end function
    >
    > I believe that this is a recognised issue with
    Dreamweaver and Access but
    > can't seem to grasp the work around! Problem being I am
    teaching myself through
    > books and internet articles and can be weeks at a time
    without being able to
    > look at the issue..each time I come back to it it is
    like starting all over
    > again! I was hoping that somewhere out there there is a
    simple solution the
    > issue perhaps a date picker with the built in
    functionality to address the
    > issue...I am keen to understand how to deal with the
    issue rather than just
    > change my database date field to fudge the problem as I
    am in the UK and when I
    > eventually start to use the application I would like
    there to be some
    > consistency with dates and that users are familiar with
    the format.
    >
    > Any help gratefully received!
    Its not Dreamweaver, or Access, its your servers locale, its
    set to US
    format, not the UK.
    On your page at the top use:
    <% Session.LCID = 2057 %>
    This will force the page into using UK formatted dates. Use
    it on any
    page that needs to format the page correctly.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Date Format Issue with Interactive Form

    Hi, here is the scenario:
    -We just upgraded to SP17 from SP15
    -I'm using Livecycle Designer 8.0
    When we were on SP15, this was not an issue.  I was wondering if anyone encountered this problem and if so, if there is a workaround?
    I create an interactive form to start a guided procedure process.  Im passing the data from my desktop Interactive form to another callable object in GP to send an email with the PDF attached.  This all works correclty. 
    My date/time fields are set to type DATE with a display pattern of YYYY-MM-DD.  When I create the form in the GP administrator to my desktop and open the PDF, the date format is correct. However, when I submit the form to start the process, the incomming date fields to be mapped to my second Callable Object have change in format from "2009-02-18" to  "Wed Feb 18 00:00:00 EST 2009".
    This is true in the new form I receive via email, and also in NWA->monitoring->guided procedures when I check the instances.  The input mapping is already set to the false formatting.
    When I open the form from the second callable object with the incorrect date format (in designer), the date's display patterns are set to YYYY-MM-DD but are not being displayed as such.
    New discovery....I tried to create a Business Logic callable object and format the date.  I created a string input and date output and mapped them accordingly.  When I perform a "TEST" from the design time and use the input "Wed Feb 18 00:00:00 EST 2009", the string is automatically converted to 18/02/2009 in the output, which is what I want to occur.  The only problem is when I run the actual process, the same "Wed Feb 18 00:00:00 EST 2009" is being output instead of the 18/02/2009 in the TEST.
    Anyone have any ideas?
    Thanks.
    Edited by: Warren Clements on Feb 26, 2009 2:20 AM

    This test program might help...
    import java.util.*;
    import java.text.*;
    public class ExpandYear
        public static void main(String[] args) throws ParseException
         SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
         SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
         String test1 = "3/21/00";
         System.out.println("test1: " + test1 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test1)));
         String test2 = "4/9/99";
         System.out.println("test2: " + test2 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test2)));

  • Date Parameters and List of Values (error message date format cannot be nul

    I'm new to BI Publisher. I began with a simple report that has 4 parameters. The parameters are center code, sales date, customer number, and job number. I am trying to create a list of values on my customer number based on the center code and sales date entered by the user. My query for my LOV is:
    select customer_nbr
    from ticket
    where center_cd = :center
    and trunc(trans_date) = :salesDate
    salesDate is defined as a date parameter with a format of MM-dd-yy. It's default value is 04-10-07.
    When I attempt to view my report after adding the LOV, I receive the error:
    Date format can not be null.
    What am I doing wrong? Also, I would like the salesDate to default to the current date. I have tried using sysdate as the default value. This isn't working. The salesDate defualts to null when it is set to sysdate.

    "Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
    Page 4-9, Adding Parameters and Lists of Values
    Oracle® Business Intelligence Publisher
    Report Designer's Guide
    Release 10.1.3.4
    Part No. E12187-01

  • Date format issue in Excel

    Hi,
    I have a date in XML file which is in the format of YYYY-MM-DD. When i output to excel, the date needs to come as MM/DD/YYYY. I am able to format the dates as MM/DD/YYYY, but if there is a 0 in the Month or Date, it is coming as M and D instead of MM or DD.
    Eg: 2008-11-01 comes as 11/1/2008 in the excel, want it to come as 11/01/2008
    Any solution for this? I tried using subst-ringing the parts and lpad-ing with 0s, but the zeroes get stripped when you come to excel. I am not able to lpad with space, since the field is inexplicably, automatically changing to number type and gives "Cannot convert to number" error.

    Hi ,
    Its a strange requirement but still lookig for answers..
    1) Tried the User Profile and it the file is being generated in the format the use has.  However
         if we open the excel file ( Right click and say format Cells---->In this case it shows GENERAL).....The user wants the cell
         always in the date format so that can have sort and other macros...
    To Reiterate................
    1) We have to generate the Files in the date format that the user profiel has and also the excel file should show the date cells in date format but not general....

  • Date Format issue while Connecting to Oracle8i and Oracle10g

    Hi All,
    While playing around with JDBC drivers, I came across this weird issue. I have a Local machine with Japanese Locale and I have 2 Database Servers that too with Japanese Locales and Oracle 8i and Oracle 10g each. Now, I connect to these database using JDBC drivers for 8i and perform "select sysdate from dual". Then, m getting dates with 2 different format. While 8i being returning Date with 'DD-MON-RRRR' format, 10g returns date with 'DD-MM_RR' format.
    Initially I thought it might be because of some VM Locale thing but when I connected to 10g DB from 8i Oracle client, this behaviour did not changed. Which mean in this case also the date format returned ny the query was different.
    Guys F1! F1! (Help! Help!) Appreciate your help to understand this process. Links and suggestions welcome... :)

    I guess u did not read the whole content. I mentioned this but the difference in behaviour with respect to JDBC drivers made me post this in Java forum.
    As I mentioned, it has something to do with the jdbc driver or oracle server itself. Agreed, but what that "something little to do" is the maiin question.
    I mentioned that I want to understand this process about how JDBC driver works with Client VM specific Locale settings while interacting with Oracle Database.
    Don't you think it could be interesting to know, what it is which brings this difference in results. Its all about clarifying the small bits & pieces which stays unanswered if one overlooks. Its own perception, I felt like asking question, no offense right!

  • Error i date format

    Hi,
    In my procedure i am using cursor in which i am using the date format TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi').
    the default date format is 5/20/0010 12:00:00.000 AM.
    when i am using the TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi') in individual select statement it is working fine but when i am running the procedure giving me invalid month error.
    Please help me regarding this.
    Thanks in advance.
    Regards,
    Sruthi.

    I really suspect if thats the one causing the error. I tried this
    alter session set nls_date_format = 'mm/dd/yyyy hh24:mi:ss'
    create or replace procedure p
    as
      cursor c is
      select TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi')
        from dual;
    begin
      open c;
      close c;
    end;
    begin
      p;
    end;
    /And it woks properly for me. So just check if you are looking at the wrong place.

  • Date format issues

    Hello,
    I have a problem when executing the following statement from vb.net application.
    update TEST_REC_2 set nk_rec1_rec2 = 506736003, jrnl_timestamp = '2007-06-01-14.54.32', jrnl_gdg = null, jrnl_verb = null, jrnl_jsn = '2203384', jrnl_program_name = 'dstor001', jrnl_dbname = 'jeff', jrnl_user_id = 'ibmuser' where p_k = 506736002.
    The error I got is ORA-01861: literal does not match format string. I know the problem is with the date format in column jrnl_timestamp . But I cannot change the statement, its coming from the Message Queue.
    Is there any option to make this work??

    You have got 2 options :-
    1. Set NLS_DATE_FORMAT in the session and then update with your specific date format
    alter session set nls_date_format='YYYY-MM-DD-HH24.MI.SS';
    update TEST_REC_2
    set nk_rec1_rec2 = 506736003,
    jrnl_timestamp = '2007-06-01-14.54.32',
    jrnl_gdg = null, jrnl_verb = null, jrnl_jsn = '2203384', jrnl_program_name = 'dstor001', jrnl_dbname = 'jeff', jrnl_user_id = 'ibmuser'
    where p_k = 506736002
    2. Modify the SQL to include "to_date"
    update TEST_REC_2
    set nk_rec1_rec2 = 506736003,
    jrnl_timestamp = to_date('2007-06-01-14.54.32','YYYY-MM-DD-HH24.MI.SS'),
    jrnl_gdg = null, jrnl_verb = null, jrnl_jsn = '2203384', jrnl_program_name = 'dstor001', jrnl_dbname = 'jeff', jrnl_user_id = 'ibmuser'
    where p_k = 506736002
    Choose the right approach based on what you can and what you can't.

Maybe you are looking for