ORA-1839 date not validfor month

I am getting ORA-1839 date not valid for month specified for fallowing query
select      message_id,value_dt from tms_view_fx1
where     TRUNC(to_date('20061124','YYYYMMDD') - TO_DATE(value_dt,'YYYYMMDD')) >=1
what will be the solution please help

Well the real solution is to stop using a string datatype to hold date values.
Your problem is that you have values in that column which either do not hold dates or else hold dates in a different format to the one you sre using in that mask. As a work around you will need to build a user defined function to trap the exception and use that in your query instead.
Cheers, APC
P.S. Why are you using TRUNC()? If you don't include a time element in the string the date is TRUNC-ed already.

Similar Messages

  • ORA-01839: date not valid for month specified

    Hi
    I got this error while executing the mapping.
    We are using 9.0.2.56 version of OWB.
    Error details shown in audit viwer is
    "PER_EMPP_CREATIONTIMESTAMP"("PER_EMPPROFILING_STG_01_i") := "DEDUP_MAP_INPUTS_ENDDATE_PAR"("DEDUP_i");
    1752 Records are selected and 1749 Records are inserted.
    The attributes given above are date attributes itself.
    It the defined attributes are not date attributes then none of the rocords should have got inserted.
    The mapped attribute from the source is aslo a date attribute.
    I feel this as a strange error. where its not showing error for other records.
    Sorry if this is a silly doubt.
    Unable to fix it.
    any help is highly appreciated.
    Thanks in advance
    Nanda Kishore

    Hi I was able debug the error.
    The error was in a transformation.
    Its looks very strage for me with the error shown in the audit viewer.
    When the error is in a tranformation why is it showing differently in audit viewer.
    it just wasted a days effort for me in debugging.
    Had it been shown that the error is in Transformation probably I would have not spent that much time.
    The audit tables should show that the error is in transformation.
    Did any one face this before and how was it solved.
    Just share with me if the same thing has happened to others.
    Thanks
    Nanda Kishore

  • Not valid month Error Ora 01843

    hi
    This is an error while running a report 6i. in Oracle 8i Environment.
    "Not valid month Error Ora 01843"
    This report is working fine in Production. But it is not working in Development Database.
    Development database is the image of Production system.
    Any reason for this Error?

    Dear Naseer C ,
    We got similar experiences for several time.
    We quried like that.
    Selet moth from table;
    08-AUG-1988
    08-08-1988
    08-08-88
    We changed several time until diappear the message.
    Hopefully, it will help you.
    Best regards,
    S!G

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • Stock report with value and qauntity for given date not month wise

    Hi gems,
    can any body give me the standard report for Stock value and qauntity for given date not month wise at storage location level

    Hi
    check the report S_P00_07000139 with the option inventory and raw material report- detail and selection date (from, to date same). List will give opening & closing balances with goods movment and their values.
    Thanks

  • ORA-01821: date format not recognized Error in PL/SQL report-4.0

    Hi,
    I am using Apex 4.0 and i have a Classic report(function returning query) which selects a date column.
    The query runs at the backend and gives the output.
    But when i run the report on the page, i get the error
    report error:
    ORA-20001: Error fetching column value: ORA-01821: date format not recognizedThe values for the date column are like this 14-MAR-13,01-FEB-13 etc... Everything seems to be right.
    But I have no idea why this error occurs.
    Thanks
    Divya

    Aren't these errors annoying! But there's a data / format mismatch for sure. What I need to see -- and what will tell you what is wrong -- is
    1) exactly what the data is and
    2) exactly what the format string is that is being used to convert it.
    The values for the date column are like this 14-MAR-13,01-FEB-13 etc... Question: Is this the source data or the target data ( what it's supposed to look like after being converted)?
    Let's start there:
    What is the source? Is it a DB column? Is it type date or VARCHAR2 or what?
    If VARCHAR2, then give us an example of the data that is failing.
    What is the format -- I assume there is one -- being used to convert the data?
    Are you doing a TO_CHAR or a TO_DATE?
    Give us lots of detail, please. Then it should be easy to solve.
    Regards,
    Howard

  • IW69 report not fetching all transaction data of current month.

    Dear Guru Ji,
    While doing testing IW69 report, i noticed that it is not displaying current month data. It is only get the data uptil last date of past month data in DEV & QA client.
    I wonder why this is happening?
    I tried using Malfunction start date & notification reference date input. But still the same result.
    Please guide me, what is going wrong?

    Hi,
    The selection option 'notification date' is based on notification date (VIQMEL-QMDAT). Transaction IW69 is used to display notification items - when there is no item data in the notification nothing will be returned.
    -Paul

  • With SPD adding 1 month to date not working?

    I have a calculated column [1stDayofMth] =DATE(YEAR([Start Date]),MONTH([Start Date]),1) which appears to be working fine.
    My SPD WF uses the [1stDayofMth] column and does a few calculations to find the next 2 months 1st days
    [Month 1 Resume Date] = [1stDayofMth] + "1 Months" 
    [Month 2 Resume Date] = [1stDayofMth] + "2 Months"
    These dates are used to pause the workflow. The problem when I log the results to history these calculations are not the 1st day of the next month on some list items?
    eg (text from workflow history)
    1stDayofMth="11/1/2014 12:00:00 AM"
    Month 1 Resume Date="11/30/2014 11:00:00 PM"  |  Month 2 Resume Date="12/31/2014 11:00:00 PM"  |  Month 3 Resume Date="1/4/2015 11:00:00 PM"
    The [1stDayofMth] column is set to "Date Only" and is showing as only the date, my logging was set to show the String and I can see the time is included as well. Is this the cause?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    As a band-aid I inserted a 2nd add for 2 hours to the date which will move it from the 30th at 11:00pm to the 1st at 1:00am. 
    I haven't done a lot of digging but it looks like the issue of adding 1 month to the 1stDayofMonth is only occurring on months with 30 days?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Error: ORA-16532: Data Guard broker configuration does not exist

    Hi there folks. Hope everyone is having a nice weekend.
    Anyways, we have a 10.2.0.4 rac primary and a 10.2.0.4 standby physical standby. We recently did a switchover and the dgbroker files automatically got created in the Oracle_home/dbs location of the primary. Now need to move these files to the common ASM DG. For this, I followd the steps from this doc:
    How To Move Dataguard Broker Configuration File On ASM Filesystem (Doc ID 839794.1)
    The only exception to this case is that I have to do this on a Primary and not a standby so I am disabling and enabling the Primary(and not standby as mentioned in below steps)
    To rename the broker configuration files in STANDBY to FRA/MYSTD/broker1.dat and FRA/MYSTD/broker2.dat, Follow the below steps
    1. Disable the standby database from within the broker configuration
    DGMGRL> disable database MYSTD;
    2. Stop the broker on the standby
    SQL> alter system set dg_broker_start = FALSE;
    3. Set the dg_broker_config_file1 & 2 parameters on the standby to the appropriate location required.
    SQL> alter system set dg_broker_config_file1 = '+FRA/MYSTD/broker1.dat';
    SQL> alter system set dg_broker_config_file2 = '+FRA/MYSTD/broker2.dat'
    4. Restart the broker on the standby
    SQL> alter system set dg_broker_start = TRUE
    5. From the primary, enable the standby
    DGMGRL> enable database MYSTD;
    6. Broker configuration files will be created in the new ASM location.
    I did so but when I try to enable the Primary back I get this:
    Error: ORA-16532: Data Guard broker configuration does not exist
    Configuration details cannot be determined by DGMGRL
    Form this link,(Errors setting up DataGuard Broker it would seem that I would need to recreate the configuration....Is that correct ? If yes then how come Metalink is missing this info of recreating the configuration... OR is it that that scenario wouldnt be applicable in my case ?
    Thanks for your help.

    Yes I can confirm from the gv$spparameter view that the changes are effective for all 3 instances. From the alert log the alter system didnt throw u pany errros. I didnt restart the instances though since I dont have the approvals yet. But I dont think thats required.

  • About error ORA-01208: data file is an old version - not accessing current

    Hi friends,
    After getting an error ,what i have stated below, my database instance was crashed everytime. I have seen alert.log file nothing is there and this error never come in pattern maner it will come anytime during week.
    I have check with my application client they were doing nothing during this time even they have sent me their log i found no writing process was running and no jobs were running during this time.
    My oracle version is 10.2.0.3 and os version is W2k.
    Thanks in advance.
    PM
    Thu Oct 04 21:45:37 2007
    Errors in file d:\oracle\admin\prd347\bdump\prd347_ckpt_1296.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old version - not accessing current version
    Thu Oct 04 21:45:37 2007
    Errors in file d:\oracle\admin\prd347\bdump\prd347_ckpt_1296.trc:
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old version - not accessing current version
    _________________________________________________________________

    Hi,
    I am attaching this CKPT Trace file which might helpful to you all.
    V10 STYLE FILE HEADER:
    Compatibility Vsn = 169869312=0xa200000
    Db ID=2446524247=0x91d2ff57, Db Name='PRD347'
    Activation ID=0=0x0
    Control Seq=654516=0x9fcb4, File size=491520=0x78000
    File Number=7, Blksiz=16384, File Type=3 DATA
    Tablespace #7 - CCDM_DATA_SMALL_T01 rel_fn:7
    Creation at scn: 0x0781.e33c8c09 12/13/2004 15:16:45
    Backup taken at scn: 0x0000.00000000 01/01/1988 00:00:00 thread:0
    reset logs count:0x201c7917 scn: 0x0000.00000001 reset logs terminal rcv data:0x0 scn: 0x0000.00000000
    prev reset logs count:0x0 scn: 0x0000.00000000 prev reset logs terminal rcv data:0x0 scn: 0x0000.00000000
    recovered at 09/25/2007 12:17:31
    status:0x4 root dba:0x00000000 chkpt cnt: 211627 ctl cnt:211626
    begin-hot-backup file size: 0
    Checkpointed at scn: 0x079b.81db9e4f 10/04/2007 21:45:15
    thread:1 rba:(0x33cee.2.10)
    enabled threads: 01000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    Backup Checkpointed at scn: 0x0000.00000000
    thread:0 rba:(0x0.0.0)
    enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    External cache id: 0x0 0x0 0x0 0x0
    Absolute fuzzy scn: 0x0000.00000000
    Recovery fuzzy scn: 0x0000.00000000 01/01/1988 00:00:00
    Terminal Recovery Stamp 01/01/1988 00:00:00
    Platform Information: Creation Platform ID: 7
    Current Platform ID: 7 Last Platform ID: 7
    DATA FILE #7:
    (name #18) E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF
    creation size=0 block size=16384 status=0xe head=18 tail=18 dup=1
    tablespace 7, index=7 krfil=7 prev_file=0
    unrecoverable scn: 0x0000.00000000 01/01/1988 00:00:00
    Checkpoint cnt:211628 scn: 0x079b.81dba014 10/04/2007 21:45:20
    Stop scn: 0xffff.ffffffff 10/03/2007 02:00:10
    Creation Checkpointed at scn: 0x0781.e33c8c09 12/13/2004 15:16:45
    thread:0 rba:(0x0.0.0)
    enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    Offline scn: 0x0000.00000000 prev_range: 0
    Online Checkpointed at scn: 0x0000.00000000
    thread:0 rba:(0x0.0.0)
    enabled threads: 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000 00000000 00000000 00000000 00000000
    Hot Backup end marker scn: 0x0000.00000000
    aux_file is NOT DEFINED
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old version - not accessing current version
    error 1242 detected in background process
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 7 failed verification check
    ORA-01110: data file 7: 'E:\ORADATA\PRD347\CCDM_DATA_SMALL_T01_01.DBF'
    ORA-01208: data file is an old versio n - not accessing current version
    ------------------------------------------------------------------------------------------------

  • ORA-08176: consistent read failure; rollback data not available

    Hi,
    We implemented UNDO management on our servers and started getting these errors for few of our programs.:
    ORA-08176: consistent read failure; rollback data not available
    These errors were not coming when we were using the old rollback segments and we have not changed any code on our server.
    1. What is possibly causing these errors?
    2. Why did they not surface with rollback segments but started appearing when we implemented AUM and Temporary TS (instead of fixed TS used as temporary TS).
    Our environment:
    RDBMS Version: 9.2.0.5
    Operating System and Version: Windows 2000 AS SP5
    Thanks
    Satish

    NOt much in the alert.log. I looked at the trace file, it also does not have much information:
    ORA-12012: error on auto execute of job 7988306
    ORA-20006: ORA-20001: Following error occured in Lot <4407B450Z2 Operation 7131> Good Bad rollup.ORA-08176: consistent read failure; rollback data not available
    ORA-06512: at "ARIES.A_SP$WRAPPER_ROLLUPS", line 106
    ORA-06512: at line 1
    *** SESSION ID:(75.13148) 2004-11-23 09:16:14.281
    *** 2004-11-23 09:16:14.281
    ORA-12012: error on auto execute of job 7988556
    ORA-20006: ORA-20006: Following error occured in Lot <3351A497V1 Operation 7295> For No FL Rollup, Updating T_GOOD.ORA-08176: consistent read failure; rollback data not available
    ORA-06512: at "ARIES.A_SP$WRAPPER_ROLLUPS", line 106
    ORA-06512: at line 1
    *** SESSION ID:(75.16033) 2004-11-23 09:28:10.703
    *** 2004-11-23 09:28:10.703
    The version we have is :
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
    PL/SQL Release 9.2.0.5.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for 32-bit Windows: Version 9.2.0.5.0 - Production
    NLSRTL Version 9.2.0.5.0 - Production
    Thanks
    Satish

  • Data recognition, some months not recognized...?

    I love the "data recognition"-feature, so I can create events directly from mail.app on the recognized date.
    BUT, for some reason dates in the months of december, march and may are not recognized?? I have tested several times, made sure format is correct, tried the english versions (I'm in denmark), but it is always the same. March, May and December dates, not recognized!
    Anyone had similar issue or answer for this??

    how to contact apple with a language-specific issue?
    Have you filed a bug report yet by any chance?

  • First date of the month

    How to calculate the first date of the month on basis of YYYYMM month format ?
    Sanjay

    Hi User,
    If you try using
    SELECT TO_DATE ('201211' || '01', 'ÝYYYMMDD')
      FROM DUAL;We get error as
    >ORA-01821: date format not recognized
    Just Try doing this,
    Convert to CHAR format and Use the Date Function to convert to Date.
    SELECT TO_DATE (TO_CHAR (:STRING || '01'), 'YYYYMMDD')
      FROM DUAL;Input :
    String - 201112
    Output :
    Date
    12/1/2011
    Thanks,
    Shankar

  • Be careful if you change your Data Plan mid month to save money.

    I have been contacted two times now by phone by Verizon representatives that were overwhelmingly concerned about the amount of money I was spending on my monthly cell phone bill.  Their solution, both times, was for me to switch to a different data plan for the month if I see that I am going to run over my allowance.  For the past few months, I had switched my account to the 6 GB plan because I knew that there was a potential for me to run over because of some work that I was doing.  On the 14th of February I looked at my usage and we had only used 2 GB of data for the month and only had 6 days left in my cycle so I decided to switch back to the 4 GB plan to save money.  Remember, this methodology was recommended by Verizon themselves to save money.
    Lets do some math.  I have used ~2 GB of data on a 6 GB plan.  I switched back to the 4 GB plan with only 6 days left in my cycle.  Anyone with any math skills at all would see that I should have ~2 GB of data to use.  This is not the case with Verizon.  AFTER SWITCHING, I was informed that I only had 0.9 GB of data left because they had prorated my data plan.  It is pertinent to mention at this point that you can only switch one time in a month.  Guess what?  I ran over.  Now it is going to cost me more than it would have because I followed their suggestion.  The worst part is, I will be paying more for the 4 GB plan (with the overrun) than I would have had I left it at the 6 GB plan and for the cycle I will only have used ~ 3 GB of data.  Somehow it almost seems illegal to sell someone 4 GB of data and charge them an overage fee for using 3 GB.
    I called Verizon about this and was very politely told, "So what? and is there anything else I can help you with?"  If this isn't a rouse to make money, there has never been one.
    If a Verizon rep reads this and would like to assist, I would be grateful, but I doubt anyone even cares.  Hank Williams said it best, "I was gettin' s******, but I wasn't gettin' kissed."
    Benny

    BigRedGonzo wrote:
    It asked if I wanted to make the change retroactive to the beginning of the cycle.  I told it I did.  What since would it make to not do so?
    Not sure. The only thing I can think of is if you changed it after the billing cycle closed on the time period where you had the overages.

  • Want to schedule WebI report for End date of Prior Month

    Hello Experts,
    We have WebI report created on top of Bex Query, We have key date as prompt for the report. Can we schedule the webi report for key date as last date of prior month, so if current month is February, my key date should be Jan 30 2011. I am not sure if this is possible?
    Thanks,
    Ravi

    You need to apply two FM to get the end day of the month.
    First you need to apply FM MONTHS_PLUS_DETERMINE. This will give you the date after 3 months.
                CALL FUNCTION 'MONTH_PLUS_DETERMINE'
                  EXPORTING
                    MONTHS        = 3   " << for 3 months
                    OLDDATE       = l_start_Date   " << 12/01/2007
                 IMPORTING
                   NEWDATE       = l_3_Date. " << 02/01/2008
    Then call the FM RP_LAST_DAY_OF_MONTHS . this will give you the end date of the month
      CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
        EXPORTING
          day_in            = l_3_Date  " << 02/01/2008
        IMPORTING
          last_day_of_month = l_3_Date  " < 02/29/2008
        EXCEPTIONS
          day_in_no_date    = 1
          OTHERS            = 2.
    Call both FMs again to get your another date(after 4 months).
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Comprssor won't start. Error message at startup is "Compressor quit unexpectedly"

    I have Compressor v4 and it won't start. Error message at every startup is "Compressor quit unexpectedly" See below I'm on a Mac Pro Running Lion 10.7.4 Processor 2 x 3 GHz Quad-Core Intel Xeon Ram 4 GB 800 MHz DDR2 FB-DIMM I also have the previous v

  • [VIA] Add warning message when installing wrong front USB cable

    I've just updated the BIOS on my MS6390 motherboard from 1.4 to 1.8 and on boot up I now get the message Warning - Wrong front USB cable (or words to that efftect). I disconnect the front USB cable on the mother board and the message goes away. The f

  • Activating DW CS3 upgrade? (title edited by moderator to avoid repetition with content)

    Just received a new copy of DW CS3 thinking I could install the older version and use it to do my website.  Turns out its an upgrade is there anything I can do to get it activated?

  • Remember Window Size

    Often I will look for a file using Spotlight. The Finder window that pops up with results is always too small and I have to expand it to see all of the columns in that window. Is there a way to fix this so I don't have to manually resize the window?

  • Need a clever solution

    I have to call the same function with different number of parameters based on the number of parameters passed. Values can not be defaulted. However, there are fixed number of parameters, let us say 10. But one can send any number of parameters anywhe