Invalid date format after APEX upgrade

We are currently working on upgrading our applications from 1.6 to the new APEX 3.2 version. After the upgrade of one of our systems I have a tabular form that is returning the error 'Invalid date format found'. The date that is getting entered into the system is being displayed and choosed via a sql popup. The code for the pop up is
SQL CODE
create or replace view next_weeks as
with t as (
select
trunc(sysdate) + (rownum - 1) / 2 d
from
dual
connect
by rownum <= 28)
, call_info as (
select
c.call_identifier, c.callback_date, c.callback_cancelled
from uid_csr_schedule c
select
to_char(d, 'fmDy MM/DD/YYYY AM') l
, to_char(d, 'dd-mon-yy hh:mi:ss AM') v
,to_char(d, 'mm/dd/yy hh:mi:ss AM') o
from
t
where
((select count(callback_date) from call_info ci where ci.callback_date = t.d
and (ci.callback_cancelled is null or ci.callback_cancelled !='Y'))) <
(select csr_calls_per_period from uid_sch_system_default)
minus
select
to_char(d, 'fmDy MM/DD/YYYY AM') l
, to_char(d, 'dd-mon-yy hh:mi:ss AM') v
,to_char(d, 'mm/dd/yy hh:mi:ss AM') o
from
t
where
(select count(callback_date) from call_info ci where ci.callback_date = t.d
and (ci.callback_cancelled is null or (ci.callback_cancelled !='Y')))
=(select override_amt from uid_sch_call_override
where (to_char(begin_date,'dd-mon-yy') || ' ' || upper(period)) = to_char(t.d, 'dd-mon-yy AM'))
union select
to_char(d, 'fmDy MM/DD/YYYY AM') l
, to_char(d, 'dd-mon-yy hh:mi:ss AM') v
,to_char(d, 'mm/dd/yy hh:mi:ss AM') o
from
t
where
((select count(callback_date) from call_info ci where ci.callback_date = t.d
and (ci.callback_cancelled is null or ci.callback_cancelled !='Y'))) >=
(select csr_calls_per_period from uid_sch_system_default)
and
(select count(callback_date) from call_info ci where ci.callback_date = t.d
and (ci.callback_cancelled is null or (ci.callback_cancelled !='Y')))
<
(select override_amt from uid_sch_call_override
where (to_char(begin_date,'dd-mon-yy') || ' ' || upper(period)) = to_char(t.d, 'dd-mon-yy AM'))
order by o
The form then has the item set as a popup with a date format mask of dd-MON-yy hh:mi:ss AM. The popup displays fine and the date is shown in the field but the error is received when I try to save the information. If I change the application global setting of date format mask to dd-MON-yy hh:mi:ss AM then this error goes away however, it creates problems on all the rest of my pages that use this date in the where clause of the queries. Is there a way to solve the problem above without having to change the globalization parameter or do I need to change this parameter and then redo those queries?
Thanks for your help!
Amber

Amber,
It's interesting that the problem goes away if you set the global date format to be the same as the column level. The column level should trump the global setting. What process is returning the error? Are you sure it's the MRU or could it be something custom?
You could consider adding a process before the MRU fires that uses alter session to change the date format.
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/

Similar Messages

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Date Format in TDS Upgrade Utility Import

    Hi
    Could any know the exact date format in TDS Upgrade Utility in excel file.  I tried with various formats like 01/04/2008, 20080401
    Its getting error: String was not recognized as valid Date Time. And also if you know any suggestions and solution regarding utility upgrade. please tel me.
    Thanks and Regards,
    Sudhir B.

    Hi Sudhir,
    Try: 2012-01-01 to see.
    Thanks,
    Gordon

  • AD 11g Trusted Recon is failing due to invalid Date format for Start Date

    We are using OIM 11g with AD 11g connector.
    we have mapped "whenCreated" attribute of AD to "Start Date" in OIM. We ran Trusted Recon, the recon failed due to invalid date format.
    we got the following error :
    Caused By: oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - 10/19/2012 10:33:30 AM against Date format yyyy/MM/dd HH:mm:ss z for key Start Date
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.convertReconFieldsToOIMFields(ReconOperationsServiceImpl.java:1610)
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEvent(ReconOperationsServiceImpl.java:548)
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEvent(ReconOperationsServiceImpl.java:535)
    at sun.reflect.GeneratedMethodAccessor9326.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    Thanks.

    Caused By: oracle.iam.reconciliation.exception.InvalidDataFormatException: Invalid data - *10/19/2012 10:33:30 AM* against Date format yyyy/MM/dd HH:mm:ss z for key Start Date
    Error is because of invalid date format.
    You need to bring data in required format. As I remember you can configured it in one of the AD configuration lookup.

  • Date format in apex 4.1

    hello
    we have custom table for an apex application. In that table we have DATE type for column1(for eg)
    When column1 is inserted via APEX, we use standard apex date picker and DD-MON-RRRR format. After we insert and when we refreshh the apex page to see
    we see values like 10-OCT-10 not 10-OCT-2010,,
    any idea or fix..
    I tried in the source sql select  statement [for that region]  with to_date(column1,'DD-MON-YYYY') ..but was not successful
    Also i followed same for insert statment with no luck
    please advise
    kp        

    Hi,
    As you mentioned, its a date field in column, there are two approaches.
    Method1: Go to your report attributes, click the pencil icon next to it and look
    In Column Attributes Block:Number/Date Format
    Method2: As its a date field, change like this in your report query
    to_char(column1, 'DD-MON-YYYY')

  • Invalid date format causes system to crash

    Hello experts. I'm not sure where to even start looking to resolve this problem.
    In the shopping cart if a user changes the delivery date to an incorrect format it causes the system to hang. For example if the user enters a date in the past such as 03/01/2006 the correct error msg is returned.  However, if they enter an invalid format like <b>0/28/2006, 0328/2006</b> a pop-up box with the "invalid date" msg continuously appears. Even after pressing "ok" it pops up over and over again.
    The only way out is to terminate the application. Any help will be appreciated. Thank you

    Hi Jocelyne,
    SP contains a lot of notes including the one you want.
    If you do not want to test back all impacts generated by all the notes you do not want, you have to use option 2 which corrects only the bug you have now.
    Kind regards
    Yann

  • How to convert Date format in Apex?

    Hi All,
    I have created a Date picker item in Apex as "dd-mm-yyyy", Now when they select this date picker it has to convert into "Day,Month DD, YYYY".
    I have trired like this but it is not wroking, can any one help me to get this to be done.
    Under the item we have option as#
    Default value: to_char(to_date(:P1_ENG_DATE,'dd-mm-yyyy'),'Day,Month DD, YYYY')
    Deafult value as -PL/Sql type.
    Thansk,
    Anoo..

    Hi Tauceef,
    I am having proble now, currently i am apex version 3.0 in that i am un able to find the option "Use application date format"
    How i can reolsve this problem in this version.
    I will be very greatful if u can help me out to resolve this problem.
    Note: Team is not willing to upgarde the apex version.
    Thanks,
    Anoo..

  • ORA-01017: invalid username/password; after Oracle Upgrade 9.2.06 to 10.2

    Hi
    I did an oracle Upgrade from Oracle Upgrade 9.2.06 to 10.2 as per SAP Documentation.
    and after the upgrade was successful i changed the password of SAPABT (sapowner)
    and now it is giving an error in work folder  <b>dev_wo</b>
    while connecting can any one help please ?
    Tue Feb 06 18:55:20 2007
    C  Client NLS settings: AMERICAN_AMERICA.WE8DEC
    C  Logon as OPS$-user to get SAPABT's password
    C  Connecting as /@ABT on connection 0 (nls_hdl 0) ... (dbsl 640 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 WE8DEC                                                    1   044FAB58   045000D4   044FF95C
    C  Attaching to DB Server ABT (con_hdl=0,svchp=044FF8A8,svrhp=04503F14)
    C  Starting user session (con_hdl=0,svchp=044FF8A8,srvhp=04503F14,usrhp=08C48D68)
    C  Now '/@ABT' is connected (con_hdl 0, nls_hdl 0).
    C  Got SAPABT's password from OPS$-user
    C  Disconnecting from connection 0 ...
    C  Close user session (con_hdl=0,svchp=044FF8A8,usrhp=08C48D68)
    C  Now I'm disconnected from ORACLE
    C  Connecting as SAPABT/<pwd>@ABT on connection 0 (nls_hdl 0) ... (dbsl 640 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 WE8DEC                                                    1   044FAB58   045000D4   044FF95C
    C  Starting user session (con_hdl=0,svchp=044FF8A8,srvhp=04503F14,usrhp=08C48D68)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
    [dboci.c      4473]
    C  *** ERROR => CONNECT failed with sql error '1017'
    [dbsloci.c    11297]
    B  ***LOG BY2=> sql error 1017   performing CON [dbsh#3 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#3 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 1017   performing CON [dblink#2 @ 419] [dblink  0419 ]
    B  ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dblink#2 @ 419] [dblink  0419 ]
    M  ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c   1284]

    SQL> connect / as sysdba
    Connected.
    SQL> SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
    OWNER
    OPS$CTSINTCOSNW5\ABTADM
    SQL> SELECT OWNER, TABLE_OWNER, TABLE_NAME FROM DBA_SYNONYMS WHERE SYNONYM_NAME
    = 'SAPUSER';
    OWNER                          TABLE_OWNER
    TABLE_NAME
    OPS$CTSINTCOSNW5\SAPSERVICEABT OPS$CTSINTCOSNW5\ABTADM
    SAPUSER
    SQL>
    Followed the note 400241       Problems with ops$ or sapr3 connect to Oracle       
    Problem got solved via the
    Updating BR * Tools
    brconnect -u / -c -f stats -t all -f collect -p 4 in  Oracle Database Guide 4.3.6 BRCONNECT
    Call BRTOOLS, Select Additional Functions --> Change password for database user.
    in my case it is sapabt user
    Thanks for the quick reply

  • Invalid date format for 'Created' field in the getVersions web service Response.

    Hi all,
    I am trying to get all versions for selected document by calling getVersions method Versions.asmxweb service, but getting ‘Created’ date attribute value is in the format "29-05-2012 12:01"
    but I am expecting either one of the following date formats.
     1.      yyyy-MM-dd HH:mm:ss  or  yyyy-MM-ddTHH:mm:ssz
     2.      MM/dd/yyyy HH:mm a   (a means AM/PM)
     3.      MM/dd/yyyy
     4.      yyyyMMdd HH:mm:ss
    where do I need to change?
    what are all the formate will be support by SharePoint?
    please find attached response xml of getVersions call.
    <results xmlns="http://schemas.microsoft.com/sharepoint/soap/">
        <list id="{6A6F6CD1-2E9C-44CC-B1F5-56G7JB5C8778}"/>
        <versioning enabled="1"/>
        <settings url="http://hbngjfgj47s20/reg/_layouts/LstSetng.aspx?List={7S6F6CD1-2E9C-44CC-B1F5-KO9J8Y7Y6H78}"/>
        <result version="@0.3" url="http://vmesxsrv47s20/register/Shared Documents/Parent/child/my_doc" created="29-05-2012 12:01" createdRaw="2014-12-02T12:46:02Z" createdBy="my_dom\agi_sharepoint"
    createdByName="AGI_Sharepoint" size="288" comments=""/>
        <result version="0.1" url="http://hbngjfgj47s20/register/_vti_history/1/Shared Documents/Parent/child/my_doc" created="29-05-2012 10:01" createdRaw="2014-12-02T10:55:18Z" createdBy="my_dom\my_sharepoint"
    createdByName="my_sharepoint" size="288" comments=""/>
        <result version="0.2" url="http://hbngjfgj47s20/register/_vti_history/2/Shared Documents/Parent/child/my_doc.txt" created="29-05-2012 11:01" createdRaw="2014-12-02T10:59:25Z" createdBy="my_dom\my_sharepoint"
    createdByName="my_sharepoint" size="288" comments=""/>
    </results>
    Kindly help me on this.

    Hi,
    According to your post, my understanding is that you want to change date format for ‘Created’ field in the getVersions web service.
    Per my knowledge, you can get the date format for ‘Created’ field as “MM/dd/yyyy HH:mm a”.
    For more information, you can refer to:
    Versions.GetVersions Method (Versions)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Invalid Date format

    Hi All, My issue is that I download data to excel from a web report and then I try to use the date fields to do some calculations, but when I do so, the fomula doesn't accepts the formats. When I check the format it shows 'Text format' for these fields. Then to do the calculation I have to convert the date fields in excel to date format and then use them. Is there a way I can get the dates downloaded in date format and then I can do the calculations without doing any processing in excel. Thanks
    Puneet

    Dear Peri,
    This is a common problem, when carrying out BDC.
    For example, while recording you met with the field --> MKPF-BUDAT.
    Go to SE11 --> MKPF --> Search for BUDAT --> Double click on the Data Element i.e. BUDAT --> Double Click on the domain DATUM --> You can see under the block Output Characteristics : Output Length = 10.
    While declaring the TYPES Structure, make it CHAR(10).
    Consider this technique as the Rule-of-Thumb while doing BDC.
    Regards,
    Abir
    Don't forget to award points *
    Regards,
    Abir
    Don't forget to award Points *

  • Custom Date Format in Apex 3.2

    Can I define a custom date format at global level. I am able to select the following date formats only. However, I want to specify a custom date format i.e YYYYMONDD.
    12-JAN-04
    12-JAN-2004
    12-JAN
    04-JAN-12
    2004-01-12
    Monday, 12 January, 2004
    12-JAN-2004 14:30
    12-JAN-2004 14:30:00
    12-JAN-2004 02:30PM
    January
    16 hours ago
    Thanks in advance for the help.
    CM

    Hi,
    You can type to field your custom format.
    Br,Jari

  • Invalid date format form Spool PDF

    Hi,
    When iam excuting a program thourgh batchjob iam getting Spool PDF there iam getting the invaid date format as 11-05-2283 78:42:87 .I feel this may be problem from output device.
    Please let me know where should we check the same.
    Thanks

    Hi,
    The job is running for a custom program.Not only the particular Job some of the other Jobs also giving the same date format.
    If it is spool attributes problem then where should we check this? or Printer settings problem? even that time format is not exist every where in world .
    Thanks..

  • Saved Interactive Reports after APEX Upgrade

    Hi,
    When you do an APEX Upgrade are saved interactive reports kept?
    Martin

    I have been experiencing lost saved "as Named Report" Interactive reports, whenever I migrate the application from test to prod.
    To clarify how we operate.
    We have a test APEX environment that is separate to production. The Test app has a different App_id but uses the same schema name. In test the application Id is 1xxx (eg 1201) and in test 2xxx (2201). I export Test 1201 and then import into Prod changing the App_id to overwrite 2201. I always lose the saved reports. I just tried an experiment of creating the saved report in Test and seeing if it migrates to prod, but of course it does not.
    How should I operate the two different Test and Prod environment to be "best practice" and not lose "as Named Report" Interactive report saved by the end-user?
    thanks Peter

  • Custom error message for invalid date format

    Hi,
    I am using af:selectInputDate component for date. When i enter wrong date format it comes up follwoing pop up error message:
    The value "12/13/2009" is not a valid date. Valid example ""29/11/2005".
    However i dont want to show this standard message but a customised error message like "the value is not in correct format...".
    Can anyone help me how can i show customised message.

    Hi Kiran
    Try these options
    1) Change your <b>Internet Explorer</b> [The Browser which you are using] language
    2) In Application Level, ie in Webdynpro
    a)Go to <b><Your project name>>Webdynpro>Applications--><Your Application>
    Double click on your Application name</b>b) Go to Application Properties TAB, Add a New Application Property
    c) Click on "<b>Browse</b>" and Select <b>DefaultLocale</b> and mention the Value as
    <b>en_US</b> [If you didnt mention any thing here by default it will take browser's language]
    3)In your Portal check the language setting of particular user in identity management
    Warm Regards
    Chaitanya.A

  • Invalid data format on EXPORTING table  to SQL-FLAT FILE (Insert type)

    Hi there!
    Writing from Slovenia/Europe.
    Working with ORACLE9i (standard version) on Windows XP with SQL-deloper 1.0.0.015.
    FIRST SQL.-DEVELOPER IS GOOD TOOL WITH SOME MINOR ERRORS.
    1.) Declare and Insert data EXAMPLE
    drop table tst_date;
    create table tst_date (fld_date date);
    insert into tst_date values (sysdate);
    insert into tst_date values (sysdate);
    2.) Retriving date with SQLPLUS
    SQL> select to_char(fld_date,'DD.MM.YYYY HH24:MI:SS') FROM TST_DATE;
    23.10.2006 11:25:23
    23.10.2006 11:25:25
    As you see TIME DATA IS CORRECT.
    When I EXPOPRT data TO SQL-insert type I got this result IN TST_DATE.SQL file:
    -- INSERTING into TST_DATE
    Insert into "TST_DATE" ("FLD_DATE") values (to_date('2006-10-23','DD.MM.RR'));
    Insert into "TST_DATE" ("FLD_DATE") values (to_date('2006-10-23','DD.MM.RR'));
    As you seel I lost TIME DATA.
    QUESTION!
    HOW CAN I SET PROPER DATE FORMAT IN SQL-DEVELOPER BEFORE I EXPORT DATA TO FLAT FILE.
    Best regards, Iztok from SLOVENIA
    Message was edited by:
    DEKUS

    A DATE-Field, is a DATE-Field and not a
    DATE-TIME-Field.
    The export-tool identifies a DATE-Field and exports
    the data into date-format.This is not true. Oracle DATE fields include a time element.
    To the original poster - I believe this is a bug in the current version.
    See this thread for possible workarounds Bad Export format --- BUG ???
    Message was edited by:
    smitjb

Maybe you are looking for

  • How do I update my nano on iTunes 7?

    This might be a silly question, but I cannot find where to update it. Any help will be appreciated.

  • Can we have a group name in oracle database???

    Hello, what i want to know is that can we have a group name, a set of all usernames for a database, the whole purpose is to simplify the grant statement, rather then doing this grant select to <user1>      grant select to <user2>      grant select to

  • Not so Smart app

    Having a nightmare with the BT SmartTalk app. It works great until you need to change or remove a user and then you end up tearing your hair out. I have the app on my iphone and it works fine. I added my son as a household member so that he could hav

  • Problem for payment term

    Hi user the future we would like to use only the following payment blocks for blocking vendors:           Skip account A          Blocked for payment C          Paid manually D          Bank details missing Is it possible to deactivate the other paym

  • FM/BAPI for Product substitution List

    Hello All, I have a requirement wherein the user will enter substitution materials for a particular material. I have to update these substitution materials in APO so that it will be reflected in tcode /N/SAPAPO/RBA04(Maintain Product Substitution Tab