Error: Unparseable date with OracleXMLSave

Hi,
Error:
oracle.xml.sql.OracleXMLSQLException: java.text.ParseException: Unparseable date: "03/18/2099"
int oracle.xml.sql.dml.OracleXMLSave.insertXML(org.w3c.dom.Document)
void b2b.RcvQueueListener.saveCsmToTso(oracle.xml.parser.v2.XMLDocument)
void b2b.RcvQueueListener.<init>()
void b2b.RcvQueueListener.main(java.lang.String[])
I've tried to save a row in the database with OracleXMLSave:
I use JDeveloper 3.1.1.2 with XDK 2.? and a local Oracle 8.1.6 unde NT.
// XML Doc:
<ROWSET>
<ROW NUM="1">
<CSM_NO>A29912</CSM_NO>
<CRE_DAY_CSM>03/18/2099</CRE_DAY_CSM>
<CSM_VOL_GRO_FRZ>59.89</CSM_VOL_GRO_FRZ>
</ROW>
</ROWSET>
// Set java enviroment:
Locale.setDefault(java.util.Locale.US);
// Save Data with XSU like:
OracleXMLSave sav =
new OracleXMLSave(cn.getConnection(), "consignment_t");
sav.insertXML(csmData);
Same Error when trying to...
(1) set date format for OracleXMLSave:
> sav.setDateFormat("DD/MM/YYYYY");
(2) set database parameter:
> nls_date_format='DD/MM/YYYY';
> nls_language='AMERICAN';
(3) set registry (winnt)
> nls_lang=AMERICAN_AMERICA.WEISO8859P1
Help would be appreciated.
Thanks in advance!
Matthias.

setDateFormat() is expecting a format mask that is valid for the java.text.SimpleDateFormat object.
So, just do:
setDateFormat("d/M/yyyy");
null

Similar Messages

  • Error Unparseable date: "1999-05-03"

    Hi All,
    I am getting an unparseable date error. The database returns date of format "1999-05-03". I would like to format the date to yyyyMMdd format. My code is as follows
    Date effectiveDt = new Date();
    String dateFormat = "yyyyMMdd";
    DateFormat format = new SimpleDateFormat(dateFormat);
              format.setLenient(false);
    effectiveDt = (Date)format.parse(rs.getDate("ear_date_fr").toString());I tried another way by converting the date returned by the databse to SQL date and it still gives problem...
    effectiveDt = (Date)format.parse(formUtil.returnSqlDate(rs.getDate("ear_date_fr").toString()).toString());formUtil.returnSqlDate code is actually as follows:
    public static java.sql.Date returnSqlDate(String formDate) {
         java.util.Date utilDt = null;
         SimpleDateFormat df1 = new SimpleDateFormat("yyyyMMdd");
         try {
              utilDt = df1.parse(formDate);
         catch (ParseException pxp) {
              return null;
         return new java.sql.Date(utilDt.getDate());
    }any help appreciated..
    hepzi leon soon

    If i use the following:
    effectiveDt = rs.getDate("ear_date_fr");it returns the date good... like: 1999-05-03
    but I just wanted to change the format to 19990503
    that is where it is giving me error
    at this moment i am settling down for the above mentioned format... i will appreciate of it could format the way I wanted it..
    thanks a million
    Hepzi

  • DateTrans Error: Unparseable date: ""

    hello,
    I've a source field datesource type date and
          a target field datetarget type string
    datesource = yyyymmdd and i need in datetarget = ddmmyyyy.
    i'm using the function dateTtrans, however the follow error occurs:
    Runtime exception during processing target field mapping /ns1:file/Inv/InvSum/EDate. The message is: Unparseable date: "" com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns1:file/Inv/InvSum/EDate. The message is: Unparseable date: ""
    thanks very much

    If you feel that 00000000 is not passed properly to the target then instead of the DateTransform function why dont you try for multiple substring functions in the mapping logic for the target date.......looking at your req you will need three substring functions and two concat functions....
    Ultimately your requirement is to convert yyyymmdd to ddmmyyyy then it can be even achieved using substring functions....the reason for using DateTransform function is that it is simple, has capability to insert date separator.....
    So if you feel for 0s the o/p is wrong then you can consider substring logic (it works for date ---> date mapping and have just tested it)....and it works for 20090630 as well as 00000000
    Regards,
    Abhishek.

  • CachedRowset Error Getting Date with Time

    We are using CachedRowSet and while getting Date from Oracle, it is missing the Time. i.e. It is just returning the Date and not the time.
    e.g. If the DB has 26-01-2005 10:00:00 it is returning just 26-01-2005 and not the time. It is all 0:0:0.
    What should be done in this case? Is this a bug or what?

    That's getTimestamp.Even tried that, but still getting time as 2005-02-09
    00:00:00.0, and where as in the DB it is 2/9/2005
    7:30:00 PMI simply cannot believe this to be true. But if indeed it is, then you have found a bug in Oracle's driver and would suggest you open a case with them to work out. One more thing to try though - what happens if you call getString instead? I don't know for sure if timestamp columns can be retrieved via getString, but if they can, what does it display? Also, are you sure you're getting the right row (correct query) and column versus what you're showing elsewhere (where you claim the DB shows 7:30:00 PM)? Are you getting the column via passing an integer, or a String column name, to the getTimestamp method? If an integer, maybe you're passing the wrong value (and therefor getting the wrong column value).

  • Error mingling data

    I've read a few topics about this error mainly being reported while syncing iCal but mine seems to be a much bigger problem. Contacts [over 100 I refuse to insert manually, this is one of the reasons I got the phone. It SHOULD be seemless in this regard] , mail accounts, and iCal will NOT sync over. I just purchased it [the phone] last night and I have so far:
    -updated to newest iTunes
    -repaired permissions
    -completely restored/updated iPhone
    -selected "erase/replace data on phone"
    -have attempted syncing each by themselves [only contacts or only mail] with and without selecting "erase data on phone"
    -erasing the "sync history" or whatever that was in iCal prefs.
    -so far the only thing that will sync are pictures and music [no movies to sync]
    Funny thing is, I don't even have a mail account or any data [other than a few meetings/appointments] in iCal setup in my computer. Though I know I WILL set up a Yahoo/Gmail account in the future because my current email accounts don't have POP access. Even though it might seem pointless, syncing no data should NOT produce an error like this because if it does, it might just blow up if I try to actually sync an account to it.
    I have searched the forum for this info but so far I only see people having this error for iCal. Any help would be greatly appreciated. Thank you.
    Edit: I should note that not selecting "erase data on phone" does not produce any errors but nothing is synced over.
    Message was edited by: Mikey U.

    bit of ical data, just a couple of appointments. The error always says "error mingling data with the iphone".
    Nothing gets synched, just have the one contact I have inserted manually into my iphone since I've had it. Ohhhhh about 120 contacts roughly.
    And the strange url? I just prefer using brackets instead of parenthesis and for whatever reason this forum sees brackets as meaning there has to be some code in it, even though there is no legit html or bb code in between. Just text between brackets. So i'll fix that up.
    edit: well it seems I can't edit the original post so that ridiculous code is there to stay. Oh Apple, you try to make things simple but it ends up frustrating most people. (a touch sensitive multi-button mouse, I get a call every single day about people not understanding the concept of using the right click. but I digress)
    After visiting the local "genius" bar they have concluded that it was Limewire that caused damage to the disk and most likely DiskWarrior will sort my issues out. Personally I think the Limewire excuse is ridiculous since I actually have never used the version on my laptop after I initially downloaded it. I figured I would keep that contained on my desktop though have never bothered to delete it from the laptop. I have ran DW recently though I suppose another pass is worth it (never thought of it) so after I do that I will let you guys know though nobody cares.
    Message was edited by: Mikey U.
    Message was edited by: Mikey U.

  • UNPARSEABLE DATE "0"

    Hi,
    when I Go to Operator,it gives me an error UNPARSEABLE DATE "0" and then the operator window opens.
    what is this error unparseable date "0"? How i can solve this?
    Thanx,
    katukota

    Hi katukota,
    Its coz you have a filter defined in Operator that ODI doesn't recoginze. Please follow the below steps.
    1. Open ODI Operator.
    2. Click on the "Filter" button under the menu bar to open a window called "Define Filter".
    3. In this window, clear the 2 "From" and "To" fields.
    4. Close ODI Operator and all other open ODI GUI applications.
    5. Reopen ODI Operator.
    6. Uncheck the "Filter" checkbox in order to disable filtering.
    7. Close ODI Operator and all other open ODI GUI applications.
    8. Reopen ODI Operator.
    Thanks,
    G

  • BI4.1 SP3 unparseable date error while scheduling

    Hi,
    We currently updated BI4.0 sp4 to BI4.1 sp3 on our test environment.
    Im getting "Unparseable date" error only with scheduling on reports with a date prompt on BI4.1 SP3. On refreshing reports with date prompts without error.
    The same report with date prompt scheduled on BI4.0 SP4 version. It schedules without error.
    Could anyone help on this.
    Thanks,
    Youqin

    Hi,
    looks a little bit like this:
    http://service.sap.com/sap/support/notes/1981477
    Maybe you should open an Incident with the SAP Support to take a closer look into the issue and maybe to confirm that this is the Bug from above.
    Regards
    -Seb.

  • Date Transformation  - "Unparseable date error"

    Hi,
    I am getting an "Unparseable date error", my source date format (from IDOC) is 27102006, in the target format it should be along with the time stamp like 27102006132010.  I tried using the date transformation function and I am getting the following error:
    “RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /SiebelMessage/ListOfAssetManagement/ListOfAssetMgmt-Asset/AssetMgmt-Asset/InstallDate. The message is: Unparseable date: "27102006" “.
    solicit ur inputs!!!
    Thanks & Regards
    Viji

    Hi,
    Check your  java code in Message  Mapping,  Check out  whether  you  have  declared the data typr  exactly and again  import the java code  and activate the objects.
    Regards
    Agasthuri Doss

  • Unparseable date error

    hi,
    i 've developed and application, in which at some point it compares dates. i have used win2k (english) version for development evn.
    when the qa is testing it on non english w2k, they are getting unparseable date error.
    ===========
    WARNUNG: java.text.ParseException: Unparseable date: "Fri Feb 01 10:04:25 CET 2003"
    ===========
    the formatter i have used is "EEE MMM d HH:mm:ss z yyyy". so could this error be just because of non enlish version of w2k??? or something else??
    thanks a in advance.
    ri

    Ok, so now I have found out where the problem was and I was able to correct it... here is how it went...
    What was the code doing and why the error was there...
    1. Code was stording a String as returned by new Date.toString(), which is always with locale en_US
    2. When comparing the dates code was retreving the date from the file.
    3. It was parsed using new SimpelDateFormate(String pattern).parse(dateobjcreatedfromStringobj) which returns the date with default OS Locale.
    4. So now I had en_US date string being parsed by default OS Locale.
    new SimpelDateFormate(String Pattern, new Locale("en","US")).parse(dateobjcreatedfromStringobj)5. This is what was generating unparseable date exception.
    6. This was making the development comp to generate no exception as it is of locale en_US. And making the testing comp generate exception.
    Hope this help out all the readers.
    Thank you all.
    Ri

  • Unparseable date error in 10.3.4.1

    I have a report which is having Date Range Input parameters.
    While running the report with the Date Range Input Parameter as NULL. It gives error on commnad prompt
    [012810_052358158][][EXCEPTION] java.text.ParseException: Unparseable date: ""
    at java.text.DateFormat.parse(DateFormat.java:335)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.setBindVariables(AdvancedQueryBoundValue11.java:600)
    at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getXML(AdvancedQueryBoundValue11.java:477)
    at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:408)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:231)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Same report is working fine is Date Input parameters have some date value.

    fix the query to handle the null parameter for Date.
    use NVL and use the columns from the table
    or sysdate
    or put a default value in the BIP report parameter.

  • Load data error: Database selection with invalid cursor (sm21)

    hi experts,
    when I execute processchar, it occur some system error:
    "Database selection with invalid cursor ",
    "Documentation for system log message BY 7 :
    The database interface was called by a cursor (in a FETCH or CLOSE
    cursor operation) that is not flagged as opened. This can occur if a
    COMMIT or ROLLBACK was executed within a SELECT loop (which closes all
    opened cursors), followed by another attempt to access the cursor (for
    example, the next time the loop is executed). "
    the error msg occur when apply bw support package19.
    data from DSO to CUBE, Transferred Recodes is not zero, but Added Recodes is zero.
    Request status always yellow, process is running.
    current sys info: BI7 and BW19, BASIS17,PI_BASIS17, the database is oracle10g R2.
    thanks for your help.

    I have solved this issue, The Oracle checkpoint not complete.
    thanks,
    xwu.

  • Error while importing data with DTW

    Hi Guys,
    I received an error when i try to upload data with DTW
    method '~' of object '~' failed65171
    When i click on run simulation again,
    I received another error 65172.
    There's two different error.
    Can anyone help?

    Hi,
    This error means that your Obscommon user is corrupt and you  cannot connect to the SBO-Common database to download the  OBServer.dll that is stored in the temporary directory.
    For more information, see SAP Note 858475, 642564, or 614946.
    Thanks & Regards,
    Nagarajan

  • Error on Data Flow Task MSSQL 2012 Clustered "Description: The version of Lookup is not compatible with this version of the DataFlow. "

    We have an SSIS package that runs on clustered MSSQL 2012 Enterprise Nodes that is failing.  We use a job to executer the package.
    Environmental information:
    Product - Microsoft SQL Server Enterprise: Core-based Licensing (64-bit)
    Operating System - Microsoft Windows NT 6.1 (7601)
    Patform - NT x64
    Version - MSSQL Version 11.0.3349.0
    Package is set to 32 -bit.  All permissions verified.  Runs in lower environments, same MSSQL version.  All environments are clustered.  In the failing environment, all nodes are at the same service pack.  I have not verified if all
    nodes in the failing environment have SSIS installed.  Data access is installed.  We have other simpler packages that run in this environment, just not this one.  Time to ask the community for help!
    Error:
    Source: Data Flow Task - Data Flow Task (SSIS.Pipeline)     Description: The version of Lookup is not compatible with this version of the DataFlow.  End Error  Error:  Code: 0xC0048020    
    Description: Component "Conditional Split, clsid {7F88F654-4E20-4D14-84F4-AF9C925D3087}" could not be created and returned error code 0x80070005 "Access is denied.". Make sure that the component is registered correctly.  End Error 
    Description: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "Conditional Split;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; All Rights
    Reserved; http://www.microsoft.com/sql/support;0".  End Error 
    (Left out shop specific information.  This is the first error in the errors returns by the job history for this package. )
    Thanks in advance.

    Hi DeveloperMax,
    According to your description, the error occurs when you execute the package with Agent job on clustered MSSQL 2012 Enterprise Nodes.
    As per my understanding, I think this issue can be caused by you use SQL Server Agent to schedule a SQL Server Integration Services package in a 64-bit environment. And the SSIS package is referencing some 32-Bit DLL or 32-Bit drivers which are available
    only in 32-bit versions, so the job failed.
    To fix this issue, we should use the 32-bit version of the DTExec.exe utility to schedule the 64-bit SQL Server Agent to run a package. To run a package in 32-bit mode from a 64-bit version of SQL Server Agent, we can go to the Job Step dialog box, then
    select “32 bit runtime” in the Advanced tab.
    Besides, we should make sure that SQL Server Integration Services is installed on the failing environment.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • Error Occuring While Processing Data With DIAdem 8.1Excepti​on EAccessVio​lation in module ntdll.dll at 000111DE. Access violation at address 7C9111DE in module 'ntdll.dll​". Read address 37363430

    Hello,
    We are having an issue running Diadem 8.1 on a new HP XW 9400 with Windows XP SP2. 3 errors have been occuring with frequent crashes, they are:
    1) "1Exception EAccessViolation in module ntdll.dll at 000111DE. Access violation at address 7C9111DE in module 'ntdll.dll". Read address 37363430.
    2) The instruction at "0x7c9111de" referenced memory at "0x352e302d". The memory could not be "read".
     3) ---Error---   DIAdem
    Error in Autosequence - processing in line: 74 (IARV_VAR_GET)
    Runtime Error while executing command "Iarv2Txt$ := FR(T9,L1)"
    Error type: ACCESS VIOLATION
    Error address: 000101DE
    Module name:ntdll.dll
    We are using the same scripts and version 8.1 on a variety of Dell desktop computers (W2K and XP SP2) without any issue, looking for suggestions as this affects no other software on the HP XW 9400 other than DIAdem. Appreciate any suggestions.
    Message Edited by swillh on 06-25-2007 08:55 AM

    Christian,
    I will answer your questions in the text below. Thanks for your help.
    Hi swillh,
    I also would like to help you.
    Unfortunately, The reported access violation in the central Windows ntdll.dll is very unspecific.
    May be the following questions will help you to provide me more info.
    1. You mentioned that the aut's and - I think - also the accessed text file reside on a server.
    Is there a stable network connection?
    The server can sometimes be a little slow but the connection is good. This computer is using the same connection that the prior computer utilized without issue.
    Are the files accessed by multiple clients simultaneously?
    It is possible that more than one computer can be accessing the same file, but again, this has never been an issue. We are reading the files only, not writing to them.
    The processing routines we are running have used for over 5 years without any issues until adding this computer.
    Is the text file read by one client while another client is writing the same file?
    No, files are "read only"
    2. Have you already tested opening the file with the FileOpen command before calling FR?
    Yes
    Do you see any chance to convert the aut to a vbs file? This gives you more alternatives in accessing text files.
    3. What do you mean with "processing ATD's with 30 or more channels of data"? Where is the relation between ATD files and data channels?
    Processing Crash Dummy data with file sets low in channel count (15 channels) result in successful processing without any crashes or access errors.  When processing dummies with more than 20 channels we sometimes encounter these issues. The higher channel count may be the only common factor I can find in these faults.
    Steve
    Message Edited by swillh on 07-09-2007 08:44 AM

Maybe you are looking for

  • ICal cant edit events in Gmail cal

    I feel like this is old news based on what I read already but it was all posts at least 3 years old and not EXACTLY the same situation. I've got my GMail calendar tied to iCal. Changes made on on end (whether in Google Calendar or within iCal) update

  • Error is ocrring while running the page of an ADF application

    Hi, i am facing this error while running a page of an ADF application. can anybody help?? javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than th

  • How to populate bind variable in view objects where clause in ADF faces

    I've got a page with 2 input items. The user manually enters the first value. On the second input item I have created a LOV for the item which opens in a popup. How do I restrict the data returned in the LOV using the value entered in the first input

  • I can't find Book1_4.xsd

    Hi in Oracle® BPEL Process Manager Developer's Guide ( page 132) in Step 2: Configuring Partner Links and File Adapter Services, I can't find Book1_4.xsd .can you help me that where is this file? i stop in this step and i can't continue this example.

  • How to change the language of the Adobe Audition CC 2014?

    How to change the language of the Adobe Audition CC 2014?