Using a datepicker with format mask MM/YYYY gives error on submit

I'm trying to use a datepicker with the format MM/YYYY.
The item is linked to a database column of type DATE.
The items displays correctly (month and year), but when submitting the page, I get an "ORA-01843: not a valid month" error from the built-in DML process.
Shouldn't Apex apply the same date format mask to the item value when trying to save it to the database?
- Morten
http://ora-00001.blogspot.com

Hi Mike,
I can/need to do that for my own PL/SQL processes, but the problem is with the Built-In DML Process....
- Morten
http://ora-00001.blogspot.com

Similar Messages

  • SQL * Loader : Load data with format MM/DD/YYYY HH:MI:SS PM

    Please advice how to load data with format MM/DD/YYYY HH:MI:SS PM into an Oracle Table using SQL * Loader.
    - What format should I give in the control file?
    - What would be the column type to create the table to load data.
    Sample data below;
    MM/DD/YYYY HH:MI:SS PM
    12/9/2012 2:40:20 PM
    11/29/2011 11:23:12 AM
    Thanks in advance
    Avinash

    Hello Srini,
    I had tried with the creation date as DATE datatype but i had got an error as
    ORA-01830: date format picture ends before converting entire input stringI am running the SQL*LOADER from Oracle R12 EBS front-end.
    the contents of my control file is
    LOAD DATA
    INFILE "$_FileName"
    REPLACE
    INTO TABLE po_recp_int_lines_stg
    WHEN (01) = 'L'
    FIELDS TERMINATED BY "|"
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    INDICATOR                POSITION(1) CHAR,
    TRANSACTION_MODE          "TRIM(:TRANSACTION_MODE)",
    RECEIPT_NUMBER               "TRIM(:RECEIPT_NUMBER)",
    INTERFACE_SOURCE          "TRIM(:INTERFACE_SOURCE)",
    RECEIPT_DATE               "TO_CHAR(TO_DATE(:RECEIPT_DATE,'MM/DD/YYYY'),'DD-MON-YYYY')",
    QUANTITY               "TRIM(:QUANTITY)",
    PO_NUMBER               "TRIM(:PO_NUMBER)",
    PO_LINE_NUMBER               "TRIM(:PO_LINE_NUMBER)",
    CREATION_DATE               "TO_CHAR(TO_DATE(:CREATION_DATE,'MM/DD/YYYY HH:MI:SS AM'),'DD-MON-YYYY HH:MI:SS AM')",
    ERROR_MESSAGE                   "TRIM(:ERROR_MESSAGE)",
    PROCESS_FLAG                    CONSTANT 'N',
    CREATED_BY                      "fnd_global.user_id",
    LAST_UPDATE_DATE                SYSDATE,
    LAST_UPDATED_BY                 "fnd_global.user_id"
    {code}
    My data file goes like
    {code}
    H|CREATE|123|ABC|12/10/2012||||
    L|CREATE|123|ABC|12/10/2012|100|PO12345|1|12/9/2012  2:40:20 PM
    L|CORRECT|123|ABC|12/10/2012|150|PO12346|2|11/29/2011 11:23:12 AM{code}
    Below is the desc of the table
    {code}
    INDICATOR             VARCHAR2 (1 Byte)                         
    TRANSACTION_MODE        VARCHAR2 (10 Byte)                         
    RECEIPT_NUMBER             NUMBER                         
    INTERFACE_SOURCE        VARCHAR2 (20 Byte)                         
    RECEIPT_DATE             DATE                    
    QUANTITY             NUMBER                    
    PO_NUMBER             VARCHAR2 (15 Byte)                         
    PO_LINE_NUMBER             NUMBER                         
    CREATION_DATE             TIMESTAMP(0)                         
    ERROR_MESSAGE             VARCHAR2 (4000 Byte)                         
    PROCESS_FLAG             VARCHAR2 (5 Byte)                         
    CREATED_BY             NUMBER               
    LAST_UPDATE_DATE        DATE               
    LAST_UPDATED_BY             NUMBER     {code}
    Thanks,
    Avinash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Date column with format mask 'hh12:mi pm'

    let's say the user input record as shown below :
    trip At01 At02
    1 9:30 AM 12:30 PM
    At02 & At02 are date column with format mask 'hh12:mi pm'. When the user input 9:30 and tab to next item, the column will display as 09:30 AM. Then when user input 12:30 at AT02, it will display as 12:30 PM.
    Anyway, if I enter 1:00 at AT02, it will display as 01:00 AM. Actually I want to display as 01:00 PM. I still can go back to the field to edit it manually but is there a way that I can do as mentioned ?
    Please advise.
    Thanks,
    Shu Wen

    You are going to have to write your own validation logic to do this - You'll have to decide what point AM shoudl be defaulted and what point PM should be used. I don't think that there is a format mask that provides this functionality.

  • How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)

    Hello.
    How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)
    I have text field which has a databind to a date field. When I click on it, we can select the date, it is added on the format (dd,mm,yyyy). When I want to insert this date field to a database It doesnu2019t allow me to do it because it will only accept date field on the format (mm,dd,yyyy)
    I tried to store this format on a date variable and I get a message saying that is impossible to convert a string into a date.
    Regards,
    Jose

    Hi Jose,
    usually you format strings in c# like
    string.Format("{0:yyyyMMdd}", insertyourstring);
    in your case
    string.Format("{0:MM/dd/yyyy}", insertyourstring);
    [look here|http://idunno.org/archive/2004/14/01/122.aspx]
    there are more details
    if everything fails split the string with Mid()
    or ask me
    lg David

  • Problem with Format Masks and Computations

    (I did a quick search on this, but didn't notice another thread on the topic. If there is already one I apologize.)
    We are using APEX version 2.2.1.00.04.
    I had an editable item that had the 999G990D00 format mask. In a computation I used that item and another item (that didn't have a format mask) to calculate a third item. The item I was trying to compute would not populate. It really had me stumped, so I went so far as to completely delete the fields and re-construct everything. When I did so the computation worked. That is until I put the format mask on the item again. I removed the format mask and the computation now works.
    Is this a known issue? Is it a bug? Am I doing something wrong?
    Thanks, Tony

    Tony,
    As Patrick mentioned, all variables in Apex are strings. Whenever you do something with them that effectively requires something other than a string value the database does an implicit type conversion. This often works, but not in cases where the db doesn't know how to do the conversion. For example, if your default database date format is dd-mon-yyyy and you have a string 10/09/2007 the database won't have any idea how to convert it to a date. That same is true for number formats.
    In your case, you used the number format mask in apex to convert a number to a string witht the given format. Apex does not do anything to convert it back to a number when you submit the page (unless you use the built in row processing). If you want to do anything with it as a number, you need to change it back with the to_number function. The second parameter is the format mask of the string you are passing in.
    Hope this helps,
    Anton

  • Problem with format mask and currency

    Hi,
    I am trying to apply a format mask to a report column.
    I want my format to be: 4500 ==> $4,500.00
    I have tried to apply: FML999G999G999G999G990D00, and i get #4,500.00
    Do i have to set a currency parameter somewhere for this format mask to work?
    I have done a select * from nls_database_parameters:
    NLS_LANGUAGE AMERICAN
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET US7ASCII
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    Thanks in advance,
    Immanuel

    Immanuel,
    Here's what I believe is going on:
    1) Your database character set is US7ASCII. US7ASCII cannot store a '£' character.
    2) Although the real NLS_CURRENCY symbol for NLS_TERRITORY UNITED KINGDOM is '£', it's displaying a converted character of '#', due to the above reason.
    3) The currency symbol from the format mask is determined by your NLS_TERRITORY (and hence, your NLS_CURRENCY) settings for the session.
    4) Your application is most likely setup to run with an application primary language of English United Kingdom. Thus, your application will always set NLS_TERRITORY to UNITED KINGDOM.
    To get your desired result, either:
    1) Change your application primary language to en-us
    or simpler yet
    2) Hard-code the $ sign in your format mask.
    Joel

  • Restrict Negative Numbers with Format Mask

    Hi
    Is it possible to restrict negative numbers by using format mask.
    rgds
    shabar

    Hi,
    Have you tried setting the Lowest Allowed Value to 0 ?
    -Arun

  • Seamless repeating pattern - using embedded images with clipping masks

    Hi forum,
    We struggle a bit creating a seemless repeating pattern that includes embedded images with clipping masks applied.
    Our pattern is a 550x550mm black square with various embedded inserted on top. All of these images have Clipping Masks applied to hide unwanted areas.
    These images are placed so they create a seamless repeating pattern and this includes areas that overlap the square.
    Once we create a swatch from this pattern the repeatable area becomes too big as it includes the unwanted areas hidden by the clipping masks.
    Because the repeatable area is now too big it's actually not repeatable.
    We tried various things in order to solve this issue. Pathfinder/crop to delete the unwanted areas in the images etc.
    None of them worked good enough.
    We though of just livetracing the images, but due to the complexity this is not an option.
    Do we really have to do our "cutting" in Photoshop or do you know any fancy tricks for issues like this?
    Appreaciate your insight
    Kenneth

    Kenneth,
    You may try the destructive deed, with the Clipping Mask selected:
    1) In the Transparency palette/panel dropdown list select anything but Normal (Multiply is fine),
    2) Object>Flatten Transparency, just keep the defaults including 100% Vector,
    3) Shudder.
    This should reduce the size to the Bounding Box of the Clipping Path.

  • Problem using Brush tool with layer mask in Photoshop CC.

    Using Photoshop CC, working on a layer mask.  Using the Brush tool to paint white to show the effect works like normal.  Painting black has no effect.  Just started doing this in the last two days.

    Check you Brush blending mode setting in the tools option bar.

  • Using jQuery Datepicker in Muse, but there is an Error ...

    Hello, i want to use an jQuery Date picker in a Muse Template, but there is an error with the Muse jQuery. Compatibility problem?
    If i deactivate businesscatalyst it works, but everything from muse doesnt work (slider ect.)
    Thanks for help, martin

    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • I have antother apple id and im trying to use apple discusons with it but keep getting this error!Please help

    I keep getting this message ! on my other apple account ! I had entered a username before for it and it worked ! But recently I tried and i got this error! What is goin on?
    An account utilizing this email address already exists. Only one account per email address is allowed on Apple Support Communities.

    To use an Apple ID, in the iTunes/App store, requires a payment method be associated with your ID. That can be either a credit card, or if no credit card, you can redeem an iTunes gift card. So, do you have a payment method associated with your account?

  • Firefox will open a 1Mb PDF file. With 30Mb PDF file Firefox gives error "File not found". Both PDFs from Adobe web site. Using PC with XP-sp3. Firefox 3.6.13

    Option in "Tools/Options/Applications/Adobe Acrobat Document" is set to "use Adobe Acrobat in Firefox". If I change the option to "Use Adobe Reader 9.2 (default)" then the large file gets downloaded and then opens in Reader.
    Any help appreciated.

    I originally posted this nearly 2 months ago. Is no-one else having this problem...???
    I upgraded to Firefox V3.6.16; problem still happening.
    Anyone got any ideas please...???

  • Anyone use Captivate 2 with Flash 8? I get errors.

    Trying to open a Captivate 2 file in Flash 8 brings up an
    error message indicating that the Captivate file is probably
    corrupted. Tried generating new Captivate 2 files and get the same
    message every time. Captivate 1 files will open in Flash. Any
    ideas?

    I think that I know what you did. When you had Captive 1 you
    changed a dll file in order for it to work with Flash 8. They
    forgot to mention that if you did this fix back in 1.0 that it
    would corrupt the process in 2.0.
    Go here:
    C:\Documents and Settings\<UserID>\Local
    Settings\Application Data\Macromedia\Flash
    8\en\Configuration\Importers
    Make sure this is the only file in there: RDMFISTUB8.DLL
    That should solve your problem.

  • Form with Hierarchical tree in Windows gives error in Linux

    We have a Windows Forms 10g Release 1 form with a H. Tree item. We want to port it to Linux. We open the Form in Forms 10g Release 2 and compile and save it. Then we move the .fmb to the Linux machine, open it in Linux Forms 10g Release 2 and deploy.
    When we run the form we get an error and form is existed. There is no error message. Form is just existed.
    The versions of Forms 10 Release 2 in Windows and Linux are the same.
    What could be the problem?

    CraigB wrote:
    Then we move the .fmb to the Linux machine, open it in Linux Forms 10g Release 2 and deploy. Why do you need to open the form on Linux in order to deploy it? Why not just use the Form Compiler (frmcmp userid=user/pw@db module=<form_name> module_type=form). If you try to just compile the form do you get any errors?
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Yeah we did that way as well. but same problem comes.

  • **Urgent**: GO_ITEM to pop-up CANVAS with IMAGE in Sun JRE gives error

    Our Forms 10g Environment is this: Forms [32 Bit] Version 10.1.2.0.2 (Production) using Sun JRE i.e. Java Plug-in 1.6.0_06
    Problem is that when we try to navigate to a canvas (from a Button) which has an IMAGE ITEM the form is exited. This happens in every form which has a canvas with an image.
    i.e. In Button, we have code: Go_Item('block123.button1'). Button1 is also in that pop-up canvas.
    Even GO_BLOCK gives the same result.
    If the image is in the same canvas as the button which has GO_ITEM code, then it works.
    Of course this whole things works fine in JInit. But we need to run in Sun JRE.
    Is this a Bug?? Any help would be greatly appreciated.

    christian erlinger wrote:
    Well, as you are on 10.1.2.0.2 I strongly suggest that you apply the latest Patchset (10.1.2.3) the latest CPU Patches and the latest merge Patches. A lot of focus related things are fixed in those patches.
    cheersI will do this and let u know thans.

Maybe you are looking for

  • Help: Can no longer see old time machine backups

    Hello everyone and thank you for your help. I have two computers, a Power Mac G5 tower and a Mac Book Pro both backing up using time machine to a USB drive connected to my Time Capsule. Previously my backup drive was connected via usb to my airport e

  • Is there an easy way to replace spry menus with jQuery menu system?

    I just learned that Adobe is no longer using spry or that spry does not work on mobile devices. My entire site (built in CS5.5 moved to CS6) is built with 3 different spry menu systems. I have been told about jQuery, and many other menu system option

  • Select Query Hangs / No DB Locks / Query Plan is good

    I have below query in application which hangs ( Only sometimes ) and there are some session which also try to insert data into this tables also starts getting hanged. SELECT DISTINCT F2 || ' - ' || F3 || ' - ' || F4 FROM Table1 WHERE F4 = 6160 AND F1

  • How to use Xcode Tools with a Command Line Project

    I'm using Xcode 3.2.6, C compiler.  I've had an application for years that is command-line on the terminal, compiling with a makefile.  Now I want to actually use the performance tools included with Xcode, such as threads, time profiler, etc.  How do

  • FF update is blocking me from uninstalling FF browser

    I have FF 3.6.0 Apparently there is an update to this version. I received a message telling me to allow for install od update. So I had it installed, with the message that the next time I started FF up, the update would be installed. So I boot up the