Invalid Date for my Procedure

Hi Friends,
I have a procedure RTG_Rerun_mtd_negative(v_revdate in date).
When I run it:
SQL> exec rtg_rerun_mtd_negative('20-AUG-10');
BEGIN rtg_rerun_mtd_negative('20-AUG-10'); END;
ERROR at line 1:
ORA-01843: not a valid month
ORA-06512: at "APPS.RTG_RERUN_MTD_NEGATIVE", line 79
ORA-06512: at line 1How do I troubleshoot this please....
Thanks a lot,
Ms K

TO do a correct conversion from string into a date, you need to add the proper format mask and be aware of the environment variables.
Check out the next examples to see a few traps that can happen with your input string.
/*  current date ?/
SQL> select sysdate, TO_DATE ('20-AUG-10', 'DD-MON-YY') param from dual;
SYSDATE   PARAM
20-AUG-10 20-AUG-10
SQL>
/* seems to be identical. right?
Well yes. But what would happen if anyone enters 99 as the year? I would expect 1999.
SQL> alter session set nls_date_format = 'DD-MON-YYYY';
Session altered.
SQL>  select TO_DATE ('20-AUG-99', 'DD-MON-YY') param from dual;
PARAM
20-AUG-2099
/* better use RR as the format mask */
SQL> select TO_DATE ('20-AUG-99', 'DD-MON-RR') param from dual;
PARAM
20-AUG-1999
/+ still better you 4 digits for the year instead of 2
SQL> select TO_DATE ('20-AUG-99', 'DD-MON-RRRR') param from dual;
PARAM
20-AUG-1999
SQL> Not lets check out the months. AUG seems pretty clear. Should be August the 8th month of the year.
Well not all peaple speak english...
SQL> alter session set nls_date_format = 'DD-MON-YYYY';
Session altered.
SQL> select TO_DATE ('20-AUG-99', 'DD-MON-RRRR') param from dual;
select TO_DATE ('20-AUG-99', 'DD-MON-RRRR') param from dual
ERROR at line 1:
ORA-01843: not a valid month
SQL>
/* Ok, lets check out how the moth is called in spain. */
SQL>  alter session set nls_date_format = 'DD Month  YYYY';
Session altered.
SQL> select TO_DATE ('20-08-99', 'DD-MM-RRRR') param from dual;
PARAM
20 Agosto      1999
SQL>
/* another way to make the original AUG working with spanish language settings would be to to use the third parameter of the to_date function */
SQL> select TO_DATE ('20-AUG-99', 'DD-MON-RRRR', 'nls_date_language=AMERICAN') from dual;
TO_DATE('20
20-AGO-1999
SQL> So your conversion of a string to date depends on several factors. You might not have ful control over all of them. There be as specific as it is possible in your environment. Try to avoid NLS-dependent logic like using names for a month. Use numbers instead.

Similar Messages

  • Invalid Date Is Accepted by JHS / ADF

    Just found out that when you enter an invalid date, for example : 32-25-2007, the date is accepted and no exception is thrown. While debugging I found out that the ParseException that gets thrown in the parse method of the JhsDateFormatter is lost in the ADF framework somewhere.
    This feature appears when using Jdev 10.1.2.1 / Jhs 10.1.2.1 (build 27) : View=JSP ; Model=ADF BC.
    I solved it by using the following workaround :
    - created : MyJhsDateFormatter extends JhsDateFormatter
    - override method : parse(String formatString, String parseThisString)
        public Object parse(String formatString, String parseThisString)
            throws ParseException
            final String method = "Object parse(String formatString, String parseThisString)";
            _log.debug(method);
            Object obj = null;
            try
                obj = super.parse(formatString, parseThisString);
            catch (ParseException pe)
                // message :  JHS-00114: Date 32-12-2005 must be of format dd-MM-yyyy
                throw new JhsJboException("JHS-00114",
                    new String[]
                        parseThisString,
                        ((formatString != null) ? formatString
                                                : getDefaultFormatString())
            return obj;
        }- changed the custom property JHS_FORMATTER for ViewObject attributes
    - run application and ... feature is gone ; )

    Paskal,
    Thanks for the fix. Unfortunatelym just too late for inclusion in 10.1.2.2.
    We will publish shortly a small runtime patch for this bug.
    Steven Davelaar,
    JHeadstart Team.

  • Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).

    Hi,
    I have a file where fields are wrapped with ".
    =========== file sample
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    ==========
    I am having a .net method to remove the wrap characters and write out a file without wrap characters.
    ======================
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    ======================
    the .net code is here.
    ========================================
    public static string RemoveCharacter(string sFileName, char cRemoveChar)
                object objLock = new object();
                //VirtualStream objInputStream = null;
                //VirtualStream objOutStream = null;
                FileStream objInputFile = null, objOutFile = null;
                lock(objLock)
                    try
                        objInputFile = new FileStream(sFileName, FileMode.Open);
                        //objInputStream = new VirtualStream(objInputFile);
                        objOutFile = new FileStream(sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString(), FileMode.Create);
                        //objOutStream = new VirtualStream(objOutFile);
                        int nByteRead;
                        while ((nByteRead = objInputFile.ReadByte()) != -1)
                            if (nByteRead != (int)cRemoveChar)
                                objOutFile.WriteByte((byte)nByteRead);
                    finally
                        objInputFile.Close();
                        objOutFile.Close();
                    return sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString();
    ==================================
    however when I run the bulk load utility I get the error 
    =======================================
    Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).
    ==========================================
    the bulk insert statement is as follows
    =========================================
     BULK INSERT Temp  
     FROM '<file name>' WITH  
      FIELDTERMINATOR = ','  
      , KEEPNULLS  
    ==========================================
    Does anybody know what is happening and what needs to be done ?
    PLEASE HELP
    Thanks in advance 
    Vikram

    To load that file with BULK INSERT, use this format file:
    9.0
    4
    1 SQLCHAR 0 0 "\""      0 ""    ""
    2 SQLCHAR 0 0 "\",\""   1 col1  Latin1_General_CI_AS
    3 SQLCHAR 0 0 "\",\""   2 col2  Latin1_General_CI_AS
    4 SQLCHAR 0 0 "\"\r\n"  3 col3  Latin1_General_CI_AS
    Note that the format file defines four fields while the fileonly seems to have three. The format file defines an empty field before the first quote.
    Or, since you already have a .NET program, use a stored procedure with table-valued parameter instead. I have an example of how to do this here:
    http://www.sommarskog.se/arrays-in-sql-2008.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Can I exit from paintComponent?  ...or... how can I check for invalid data?

    I'm writing a calendar applet for a programming class and I've nearly completed it but I'm stuck at checking for valid data.
    What seems to be happening is that paintComponent() is being called before actionPerformed.
    In actionPerformed (when they click the button), it checks to make sure they entered a valid month (1 to 12). If the didn't it dispalys a message, but if they did it calls repaint().
    But even if repaint() isn't called, Java still seems to call it before actionPerformed and I get exceptions.
    So I tried checking inside of paintComponent() by using a simple if(...) return; but that doesn't seem to do anything... it just keeps going through with the method.
    So -- Once the user presses my button I want to make sure the data is valid before repainting the screen. How can I do this?

    I validate it in actionPerformed which is called by
    the action listener... that is what you meant right?
    The problem is that it seems paintComponent() is being
    called before I can validate the data with
    actionPerformed(). I need to stop paintComponent()
    from always being calledMVC. (Model, View, Controller)
    Initially the internal value of the data (the model) should be valid (or null with a check in the paintComponent method)
    paintComponent (the view part) shows the state of the valid data.
    You press the button.
    actionPerformed is called (the controller).
    It checks the value and, if valid, writes it to the data (model), then updates the view.
    At no point will the view have to render invalid data, because the model is only updated after actionPerformed checks the value.
    The pattern may be applied with different classes performing the three roles, or different methods in the same class (sometimes it's easier that way for simple cases).
    Pete

  • 'Invalid data' error for outbound 850

    We are transforming a OAG process_po_007 to EDI 850.xml in BPEL and enqueing the message to B2B out queue. We are receiving 'Invalid Data' error in B2B log. Following is the 850.xml file. Also I am attaching some portion of the B2B.log at the end. Any help will be appreciated.
    Thanks
    Saumitra
    ----------------------------------------------850.xml--------------------------------------------------------------
    <?xml version="1.0" ?><Transaction-850 xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:ns1="http://www.edifecs.com/xdata/100" XDataVersion="1.0" Standard="X12" Version="V4010" CreatedBy="ECXEngine_899" CreatedDate="2007-04-19T14:17:00" xmlns="http://www.edifecs.com/xdata/100">
    <ns1:Segment-ST>
    <ns1:Element-143>850</ns1:Element-143>
    <ns1:Element-329>00001</ns1:Element-329>
    </ns1:Segment-ST>
    <ns1:Segment-BEG>
    <ns1:Element-353>00 </ns1:Element-353>
    <ns1:Element-92>AB</ns1:Element-92>
    <ns1:Element-324>Purchase Ord</ns1:Element-324>
    <ns1:Element-328>Release Number</ns1:Element-328>
    <ns1:Element-373>20070419</ns1:Element-373>
    </ns1:Segment-BEG>
    <ns1:Segment-ITD>
    <ns1:Element-351>8</ns1:Element-351>
    <ns1:Element-352>Scheduled for payment 45 days from the invoice date (invoice terms date = system date, goods received date, invoice date or invoice received date). Invoice terms date can default from supplier header, site, PO, system default, etc.</ns1:Element-352>
    </ns1:Segment-ITD>
    <ns1:Loop-N1>
    <ns1:Segment-N1>
    <ns1:Element-98>01</ns1:Element-98>
    <ns1:Element-93>Allied Manufacturing</ns1:Element-93>
    <ns1:Element-67>Code Identification</ns1:Element-67>
    </ns1:Segment-N1>
    <ns1:Segment-N3>
    <ns1:Element-166>1145 Brokaw Road</ns1:Element-166>
    </ns1:Segment-N3>
    <ns1:Segment-N4>
    <ns1:Element-19>San Jose</ns1:Element-19>
    <ns1:Element-156>CA</ns1:Element-156>
    <ns1:Element-116>95034</ns1:Element-116>
    <ns1:Element-26>US</ns1:Element-26>
    </ns1:Segment-N4>
    <ns1:Segment-PER>
    <ns1:Element-366>BD</ns1:Element-366>
    <ns1:Element-93>Veronica Francis</ns1:Element-93>
    <ns1:Element-365>EM</ns1:Element-365>
    <ns1:Element-364>Communication Number</ns1:Element-364>
    </ns1:Segment-PER>
    </ns1:Loop-N1>
    <ns1:Loop-PO1>
    <ns1:Segment-PO1>
    <ns1:Element-350>ASSI</ns1:Element-350>
    <ns1:Element-330>471.814718</ns1:Element-330>
    <ns1:Element-355_1>01</ns1:Element-355_1>
    <ns1:Element-235_2>VP</ns1:Element-235_2>
    <ns1:Element-234_2>AS65103</ns1:Element-234_2>
    </ns1:Segment-PO1>
    </ns1:Loop-PO1>
    <ns1:Loop-CTT>
    <ns1:Segment-CTT>
    <ns1:Element-354>1</ns1:Element-354>
    </ns1:Segment-CTT>
    </ns1:Loop-CTT>
    <ns1:Segment-SE>
    <ns1:Element-96>7</ns1:Element-96>
    <ns1:Element-329>00001</ns1:Element-329>
    </ns1:Segment-SE>
    </Transaction-850>
    ----------------------------------B2B.log--------------------------------------------------------------------
    2007.04.19 at 16:21:01:957: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeTime = #SystemTime(HHMM)#
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter AcknowledgementType = 997
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupSenderID = Acme
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeECSFileBlob
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeAuthorizationInfoQual = 00
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupID = PO
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TagDelimiter = 0x3d
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TransactionECSFileKey = 2A956714556799C0E040A341E4CD2203-274-1-4
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeSecurityInfoQual = 00
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupECSFileBlob
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TPName = GlobalChips
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TransactionImplementationReference = null
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter ReplacementChar = 0x7c
    2007.04.19 at 16:21:02:989: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Enter
    2007.04.19 at 16:21:02:989: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl fullOutboundBatching = false
    2007.04.19 at 16:21:02:990: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl validateEnvelope = false
    2007.04.19 at 16:21:02:990: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Leave
    2007.04.19 at 16:21:04:986: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:reset Enter
    2007.04.19 at 16:21:04:986: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:reset Leave
    2007.04.19 at 16:21:05:017: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument XML = 1
    2007.04.19 at 16:21:05:018: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument no result from XDataToNative
    2007.04.19 at 16:21:05:293: Thread-12: B2B - (DEBUG) iAudit report :
    Error Brief :
    5084: XEngine error - Invalid data.
    iAudit Report :
    <?xml version="1.0" encoding="UTF-16"?><AnalyzerResults Guid="{7E87F228-EEB3-11DB-B92D-001143EB889E}"> <ExecutionDate>Thursday, April 19, 2007</ExecutionDate> <ExecutionTime>04:21:03 PM (EDT)</ExecutionTime> <AnalyzerReturn>Failed</AnalyzerReturn> <NumberOfErrors>1</NumberOfErrors> <ErrorByCategory> <Category Name="Rejecting"> <Severity Name="Normal">1</Severity> </Category> </ErrorByCategory> <Status>Finished</Status> <DataFile> <FilePath/> <FileName/> <LastModified/> <FileSize/> <DataURL>file://</DataURL> </DataFile> <AnalyzerErrors> <Error ErrorCode="{F35AFE03-C479-4F96-B4F1-2EF36DABC5FE}" Severity="Normal" Category="Rejecting" Index="1" ID="50840000"> <ErrorBrief>5084: XEngine error - Invalid data.</ErrorBrief> <ErrorMsg>Invalid data.</ErrorMsg> <ErrorObjectInfo> <Parameter Name="ErrorLevel">0</Parameter> <Parameter Name="Name">XData2Native</Parameter> <Parameter Name="_ec_dn_guid_">{7F0C043C-EEB3-11DB-B92D-001143EB889E}</Parameter> <Parameter Name="_ec_index">0</Parameter> <Parameter Name="ec_error_scope">Document</Parameter> </ErrorObjectInfo> <ErrorDataInfo> <Part1/> <ErrData/> <Part3/> <DataXPointer> <StartPos>0</StartPos> <Size>0</Size> </DataXPointer> </ErrorDataInfo> </Error> </AnalyzerErrors></AnalyzerResults>
    2007.04.19 at 16:21:05:327: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sErrorGuid = {F35AFE03-C479-4F96-B4F1-2EF36DABC5FE}
    2007.04.19 at 16:21:05:327: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sDescription = Invalid data.
    2007.04.19 at 16:21:05:327: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sBrDescription = 5084: XEngine error - Invalid data.
    2007.04.19 at 16:21:05:328: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ErrorLevel sParameterValue = 0
    2007.04.19 at 16:21:05:328: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = Name sParameterValue = XData2Native
    2007.04.19 at 16:21:05:328: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ecdn_guid_ sParameterValue = {7F0C043C-EEB3-11DB-B92D-001143EB889E}
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ecindex sParameterValue = 0
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ec_error_scope sParameterValue = Document
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument added Hash Key = {7F0C043C-EEB3-11DB-B92D-001143EB889E}
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument batch Position = 0
    2007.04.19 at 16:21:05:330: Thread-12: B2B - (ERROR) Error -: AIP-51505: General Validation Error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:1662)

    Hello Saumitra,
    Can you please validated the Edifecs XML you are genering from BPEL against the XSD generated out of spec builder. If you still find this as an issue please send us the ecs, xsd and the xml generated from BPEL for further review.
    Rgds,Ramesh

  • Query for records on a block with Query Data Source Type : Procedure

    Hi All,
    The veriosn of form I'm using is:
    Forms [32 Bit] Version 6.0.8.23.2
    I have a block based on a procedure.
    But when I enetr-query and search for records specific to ceratin criteria even then the result of the Query is all records.
    Is Query not allowed on a block with Query Data Source Type : Procedure.
    Hope my question is clear.
    Thanks in advance.
    Regards
    Arif

    When you use a table based block, forms can construct any select with any where clause based on the given inputs. Using a procedure based block, forms cannot "know" which in or out parameter of the procedure corresponds to which item. Even if Forms could pass the value of an item to an argument automagically, the procedure would have to "do something" with the argument, and you´d have to code it.
    So, any item that should be used in the where-clause must be mapped to an argument.
    Perhaps it would be easier to use a table based block querying a view? For DDL, you could use an instead-of-trigger on the view.
    Regards,
    Gerd

  • To find last updated date in sql developer for a procedure or a function

    hi
    how to to find last updated date in sql developer for a procedure or a function.
    i m using sql developer version in 1.2

    I think you are in the wrong forum...
    Anyway you can try
    select * from
    all_objects o
    where o.object_type in ('FUNCTION','PROCEDURE');
    you have there the created date, last DDL and timestamp

  • 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.

  • Error -ORA-01483: invalid length for DATE or NUMBER bind variable

    In discoverer plus, attempt to save a discoverer workbook into the database fails with the error:
    ORA-01483 invalid length for DATE or NUMBER bind variable
    The same workbook can be safely saved in "My Computer".
    Any idea why and what is the solution.

    Why: not quite sure, probably the code is validating the workbook when it saves it to the db and you've got an error in the sql. What happens when you run the workbook that you saved to the file system? Does it show the same error when run?
    Solution: Can you post the sql in the workbook? In the meantime try the following: Replace any to_char statements around dates with to_date statements instead. For example:
    Replace:
    where to_char(mydate, 'dd-mon-yyyy') = '05-apr-2009'
    With:
    where mydate = to_date('05-APR-2009','DD-MON-YYYY')

  • 大家帮帮忙呀,真是苦恼呀!The date for the prompt 'startDate' is invalid. (WIS 10706)

                   IInfoObject report = (IInfoObject) objects.get(0);
                   IWebi webi = (IWebi) report;
                   // u83B7u5F97u63D0u793Au53C2u6570
                   di = getReportEngine().openDocument(report.getID());
                   di.refresh();
                   // u8BBEu7F6Eu53C2u6570
                   if (params != null)
                        Prompts prompts = di.getPrompts();
                        int promptNum = prompts.getCount();
                        for (int j = 0; j <= promptNum - 1; j++)
                             Prompt p = (Prompt) prompts.getItem(j);
                             if(params.get(p.getName())!=null)
                                  //u68C0u6D4Bu662Fu5426u5E26u6709u7A7Au5B57u7B26
                                  String temp[]=(String[])params.get(p.getName());
                                  boolean falg=false;
                                  for(int len=0;len<temp.length;len++)
                                       if(temp[len]==null)
                                            falg=true;
                                       else if("".equals(temp[len].trim()))
                                            falg=true;
                                  if(falg)
                                       continue;
                                  //u5BF9u65E5u671Fu6570u7EC4u8FDBu884Cu8F6Cu6362
                                  if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
                                       String formatStr=p.getInputFormat();
                                       for(int x=0;x<temp.length;x++)
                                            temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
                                  System.out.println(p.getName()+"u503C  "+temp[0]);
                                  p.enterValues(temp);
                        PromptsUtil.populateWebiPrompts(di.getPrompts(), webi);
                   // u540Eu7F00u540Du79F0
                   if (format !=EXCEL && format != PDF && format !=Webi)
                        throw new Exception(" u751Fu6210u62A5u8868u5B9Eu4F8Bu683Cu5F0F,u53EAu63A5u6536EXCEL,PDF,Webiu683Cu5F0Fu53C2u6570!");
                   webi.getWebiFormatOptions().setFormat(format);
                   ISchedulingInfo scheduleInfo = report.getSchedulingInfo();
                   scheduleInfo.setType(0);
                   //u662Fu5426u53D1u9001u90AEu4EF6
                   if(isSendMail)
                        doSendMail(scheduleInfo,report,
                                  format,message,title,recipientAddresses,CCAddresses);
                   //u8BBEu7F6Eu81EAu5B9Au4E49u503C
                   if(properties!=null && !"".equals(properties))
                        report.properties().setProperty(CUSTOMVALUE,properties);
                   scheduleInfo.setRightNow(true);
                   // u751Fu6210u5B9Eu4F8B
                   getIInfoStore().schedule(objects);
    上述代码片段为BO生成实例的过程,程序不会出错。但BO报表历史记录中,提示:The date for the prompt 'startDate' is invalid. (WIS 10706)
    刚开始认为:日期格式错误,我便加上了
    if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
           String formatStr=p.getInputFormat();
           for(int x=0;x<temp.length;x++)
                  temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
    需且验证日期格式,正是p.getinputFormat()所要求的格式,可BO历史记发中,生成实例还是报上述错误。
    Edited by: pyantking on Jul 27, 2009 2:39 PM

    Hello Anh,
    With XI 3.1 some significant fixes were delivered to address issues like you describe : create a query with QaaWS Designer using date input parameters (prompts) with a given locale, then edit (with QaaWS Designer) the query under another different locale, where dates are set with a different format.
    AFAIK QaaWS queries keep the locale under which they were created, fixes were aimed at translating input parameters in the right format so errors like the one you describe should not be encountered.
    i suggest you get in touch with the SAP BusinessObjects tech support with your issue, so we will be able to investigate further in conjunction with QaaWS dev team and work out a fix, if this turns out to be a bug.
    BTW, Have you considered upgrading to a more recent Service Pack? Business Objects Enterprise XI 3.1 SP3 is now available since 2010 Q2 (no guarantee, though, that this issue would be solved with this SP)
    Hope that helps,
    David.

  • Parameter Validation for invalid date entered

    I enter an invalid date like 99/08/2014 as one of the parameters for my report and get the following error.
    The value provided for the report parameter 'P1' is not valid for its type. (rsReportParameterTypeMismatch)
    To the report user audience, this message is not meaningful and it happened before the report is even executed . 
    Is there any way to override this and put a more meaningful error in ?

    Hello,
    According to your description, you want to custom the error message when the input date value is invalid. In Reporting Services, it doesn’t provide any interference for us to modify the system error message (the text in grey color). That means we can’t modify
    the system message when error occurs. However we can create a textbox in this report, use custom code and expression to display the custom error message. For more details, please refer to the following steps:
    Go to Report Properties. Put the code below into custom code:
    Public Shared a As Integer=0
    Public Shared Function IsDate(d1 As String) as Integer
    Try
    FormatDateTime(d1)
    Catch ex As Exception
    a=1
    End Try
    return a
    End Function
    Change the parameter data type from Date to Text.
    Change the filter expression from Parameters!ReportParameter1.Value to the following:
    =IIF(Code.IsDate(Parameters!ReportParameter1.Value)=0,cdate(Parameters!ReportParameter1.Value),CDate("1/3/2013"))
    Use the expression below to set the visibility of the tablix:
    =IIF(Code.IsDate(Parameters!ReportParameter1.Value)=0,false,true)
    Create a textbox with the expression below:
    =IIF(Code.IsDate(Parameters!ReportParameter1.Value)=0,"","custom error message")
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Handling invalid Dates In query for Invalid dates in date column.

    Hi,
    I have a date column in my table. This column has corrupted data so the when i use any
    to_timestamp function or any other date calcualtions my query breaks with the error:
    ORA-01843: not a valid month.
    I am aware the data is the issue.
    But i want to handle this scenario by putting nulls in the output when ever an invalid date is encountered.
    I have done some research and found the custom function is_date() on net.
    But i am not suppose to create any new function but handle it with in my query.
    Help is appreciated to handle this scenario.

    Prasath wrote:
    Try this!!
    With Tab As(Select '12/01/2009' txt From dual)
    SELECT Decode(Length(Replace(Translate( txt
    , '0123456789/'
    , Null
    , to_date(txt,'mm/dd/yyyy')
    , NULL) As Validation_date
    FROM tab;
    Ok ...
    SQL> With Tab As(Select '12/01/2009' txt From dual)
      2      SELECT Decode(Length(Replace(Translate( txt
      3                                            , '0123456789/'
      4                                            , '#')
      5                                  ,'#'))
      6                   , Null
      7                   , to_date(txt,'mm/dd/yyyy')
      8                   , NULL) As Validation_date
      9       FROM tab;
    VALIDATIO
    01-DEC-09Not sure what that proves, especially in relation to the OP's problem.

  • Structure for Stored Procedure Call

    Hi All,
             Guys I am trying to call a stored procedure call using receiver jdbc adapter...
    This is the outgoing message:
    <b><?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:SP_DB xmlns:ns0="urn:sce-com:xi:dev:mohammf">
    - <Test>
    - <PP_TEST_P action="EXECUTE">
      <table>PP_TEST_P</table>
      <RECTYPEIND type="CHAR">CC</RECTYPEIND>
      <JENUMBER type="CHAR">76724</JENUMBER>
      <COMPANY type="CHAR">BCEO</COMPANY>
      <CONSTANT1 type="CHAR">AB</CONSTANT1>
      <SYSTEMDATE type="CHAR">08/12/2007</SYSTEMDATE>
      <DR_CR_ID type="CHAR">0</DR_CR_ID>
      <AMOUNT type="CHAR">934928599475843</AMOUNT>
      <MONTH_NUMBER type="CHAR">000008</MONTH_NUMBER>
      <COST_CENTER type="CHAR">LosAngeles</COST_CENTER>
      <ORDERNO type="CHAR">694950375830</ORDERNO>
      <WBS type="CHAR">Southern California Edis</WBS>
      <ACCOUNTID type="CHAR">6949503758</ACCOUNTID>
      <BATCH_ID type="CHAR">3408102007</BATCH_ID>
      <ASSIGNMENT type="CHAR">Technology Solutio</ASSIGNMENT>
      <GL_JOURNAL_CATEGORY type="CHAR">GHTF</GL_JOURNAL_CATEGORY>
      <PROFIT_CENTER type="CHAR">3434694950</PROFIT_CENTER>
      <REFDOCNUMBER type="CHAR">00000000004304300056006056</REFDOCNUMBER>
      </PP_TEST_P>
    - <PP_TEST_P action="EXECUTE">
      <table>PP_TEST_P</table>
      <RECTYPEIND type="CHAR">XX</RECTYPEIND>
      <JENUMBER type="CHAR">76724</JENUMBER>
      <COMPANY type="CHAR">BCEO</COMPANY>
      <CONSTANT1 type="CHAR">AB</CONSTANT1>
      <SYSTEMDATE type="CHAR">08/12/2007</SYSTEMDATE>
      <DR_CR_ID type="CHAR">0</DR_CR_ID>
      <AMOUNT type="CHAR">934928599475843</AMOUNT>
      <MONTH_NUMBER type="CHAR">000008</MONTH_NUMBER>
      <COST_CENTER type="CHAR">LosAngeles</COST_CENTER>
      <ORDERNO type="CHAR">694950375830</ORDERNO>
      <WBS type="CHAR">Southern California Edis</WBS>
      <ACCOUNTID type="CHAR">6949503758</ACCOUNTID>
      <BATCH_ID type="CHAR">3408102007</BATCH_ID>
      <ASSIGNMENT type="CHAR">Technology Solutio</ASSIGNMENT>
      <GL_JOURNAL_CATEGORY type="CHAR">GHTF</GL_JOURNAL_CATEGORY>
      <PROFIT_CENTER type="CHAR">3434694950</PROFIT_CENTER>
      <REFDOCNUMBER type="CHAR">00000000004304300056006056</REFDOCNUMBER>
      </PP_TEST_P>
      </Test>
      </ns0:SP_DB></b>
    The error I am getting is: 
    <b><i>2007-08-20 09:44:05 Error Unable to execute statement for table or stored procedure. 'PP_TEST_P' (Structure 'Test') due to java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'table' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)
    2007-08-20 09:44:05 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'PP_TEST_P' (structure 'Test'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'table' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)
    2007-08-20 09:44:05 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PP_TEST_P' (structure 'Test'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'table' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !)
    2007-08-20 09:44:05 Error Exception caught by adapter framework: null
    2007-08-20 09:44:05 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PP_TEST_P' (structure 'Test'): java.sql.SQLException: ERROR: Invalid XML document format for stored procedure: 'type="<SQL-type>"' attribute is missing for element 'table' (Setting a SQL-type (e.g. INTEGER, CHAR, DATE etc.) is mandatory !).</i></b>
    Pls advice..
    XIer
    Message was edited by:
            XIer

    Hi,
    Check your DATA TYPE attributes with the attributes of the column names in the Database table.  There is a mismatch between the DT and Table in the database.
    <b>Cheers,
    *RAJ*</b>

  • Invalid data type

    I have the following code working perfectly fine:
    CREATE TYPE mytype IS TABLE OF INT;
    SELECT * FROM TABLE(mytype(1,2));
    When I declare the type in a package, however, I get invalid data type. For example,
    CREATE OR REPLACE mypackage AS
    TYPE mytype IS TABLE OF INT;
    END mypackage;
    SELECT * FROM TABLE(mypackage.mytype(1,2));
    I need to include the type in a package because I have a function in the same package that will take the nested table as in parameter.
    YS

    When you need to select from a type, that type has to be created as a SQL type.
    This is true in SQL
    Re: how to use a collection in procedure
    And in a stored procedure
    Re: Passing an array to an Oracle stored procedure

  • Error during loading of initialization data for 0ic_c03

    Hi
    I am setting up the inventory cube 0IC_C03 for stock reports. I am following the document How to Scenarios for inventory management.
    I have made the necessary preperations in the R/3 side. The setup tables have been populated and the data is visible using rsa3.
    Now in BW i have created infopackages for the 3 data sources 2LIS_03_BX / BF / UM.
    For 2LIS_03_BX the update status is generate initial status
    For 2LIS_03_BF the update status is  initialize delta process
    For 2LIS_03_UM the update status is  initialize delta process
    I am now trying to upload the data for stock initialization by scheduling the 2LIS_03_BX infopackage for an immediate pull. However in the manage are there are no records being transferred (0 of 0 records) and the status of the request is yellow.
    Is there some interim step that i am perhaps missing?
    Regards
    Pranav

    Hi AHP / Aby
    The update was going on for an elongated period of time so I set the QM status to red and have restarted the data pull. This time the data did come to the BW system but still showed an error.
    The details panel shows the following information
    > Overall status : Errors occured or missing messages
    > Requests everything ok (green light)
    >Extraction : Errors occured (yellow light)
    >>25000 records sent (yellow)
    >>22115 records recieved (green)
    >Transfer (Idocs and TRFC) Errors occurred
    >> Data package1 :25000 records arrived in BW (green light)
    >> Data package 2 : arrived in BW. Data records for package 2 in PSA-1 er (red light)
    >Processing (Errors Occured) (red)
    >> Data package1 (25000 records):missing messages (yellow)
    >>>update PSA (25000 records posted) : no errors (green)
    >>>transfer rules (25000 records >25000 records) : no errors (green)
    >>>Update rules (25000 >39027 records): no errors (green)
    >>> Update (0new/0 changed) Warning recieved(red)
    >>>>Data records for package 2 selected in PSA 1 error
    >>>>>>>> record 1965 : value of characteristic 0batch contains invalid number
    >Processing End : Errors occured
    >> Error 4 in the update
    According to my understanding of the situation there is a data error in the record 1965 in the second package. Is it possible / advisable to go an edit this in the PSA? If not then what is the procedure to be adopted. Since this is an initiallization and not a delta update i am not sure whether i should pull this again!
    Thanks in advance and for all the help so far! its really appreciated!
    pranav

Maybe you are looking for

  • How do i set up a wireless itunes network in multiple rooms???

    I'm trying to add multiple Airport express units(in different rooms), to my wireless network (internet only). I have two express units and apple TV and want to be able to play music via itunes through 1 or more, or all of the rooms! I'm buggered if I

  • Another solution for the "caller can't hear me" pr...

    Ran into a problem with my cell phone the other day...  I could hear the caller, but he could not hear me.  Also, the Voice Recorder would not hear me either.  All of which suggested the microphone was not working. I rummaged the web, tried the vario

  • Crystal Report Very Slow

    I am developing a software using Vb.net 2008 and Cr 12.1.0.892 after loading my application the first report calling take 2 - 5 minutes to be viewed by the viewer to to be printed next time if i ask the same report or another report it printed very f

  • File shows as Mp3 in folder, MPEG in iTunes

    When I look at a list of my mp3 files in the mp3 folder on my desktop, their "KIND" is listed as mp3 and their file names contain the extension MP3. When I look at the same files in iTunes, their "KIND" is listed as mpeg and the MP3 extension is not

  • Computer doesn't load page correctly and freezes up since installing Yosemite.

    Pages don't load correctly and computer freezes up ever since installing Yosemite. Help!!