ORA-01841 error loading of the initial report

Hello

I use Apex version 4.1.1.

All I'm trying to do is to include a null and do NOT set a default value for the parameter of my reporting period, because I don't want the report to run when the user clicks on the tab at the top.

I have the value NULL to the value and am without specifying a default value, but when I click on the tab, the report displays region always "ORA-01841: (full) year must be between-4713 and 9999 and not 0.

He is obviously trying to capture the reporting period, even if I'm him giving a NULL value. I even tried to specify NULL for the default, but that no longer works. The region of the report should simply say "No data found" or something similar - no error should be there.

Any ideas? Is this a known bug?

Thank you
Greg

Greg wrote:

The parameter is referenced in the query like this: DATE >= TO_DATE(:P15_REPORT_PERIOD||'-01', 'YYYY-MM-DD')
AND DATE <= LAST_DAY(TO_DATE(:P15_REPORT_PERIOD||'-01', 'YYYY-MM-DD')

The problem is that when P15_REPORT_PERIOD has the value null, Oracle tries to TO_DATE ('-01', ' YYYY-MM-DD'), and '01-' does not match the mask of format 'YYYY-MM-DD ".

Try:

    DATE >= TO_DATE(:P15_REPORT_PERIOD, 'YYYY-MM')
AND DATE <= LAST_DAY(TO_DATE(:P15_REPORT_PERIOD, 'YYYY-MM'))

In addition, if the DATE is really a column name should not be: DATE is a reserved word.

There may be a problem of logic here if DATE values contain information of time: this predicate will return all of the data where the DATE is later than midnight the last day of the month.

Tags: Database

Similar Questions

  • ORA-02374: error loading conversion table / ORA-12899: value too large for column

    Hi all.

    Yesterday I got a dump of a database that I don't have access and Production is not under my administration. This release was delivered to me because it was necessary to update a database of development with some new records of the Production tables.

    The Production database has NLS_CHARACTERSET = WE8ISO8859P1 and development database a NLS_CHARACTERSET = AL32UTF8 and it must be in that CHARACTER set because of the Application requirements.

    During the import of this discharge, two tables you have a problem with ORA-02374 and ORA-12899. The results were that six records failed because of this conversion problem. I list the errors below in this thread.

    Read the note ID 1922020.1 (import and insert with ORA-12899 questions: value too large for column) I could see that Oracle gives an alternative and a workaround that is to create a file .sql with content metadata and then modifying the columns that you have the problem with the TANK, instead of BYTE value. So, as a result of the document, I done the workaround and generated a discharge .sql file. Read the contents of the file after completing the import that I saw that the columns were already in the CHAR value.

    Does anyone have an alternative workaround for these cases? Because I can't change the CHARACTER set of the database the database of development and Production, and is not a good idea to keep these missing documents.

    Errors received import the dump: (the two columns listed below are VARCHAR2 (4000))

    ORA-02374: error loading «PPM» conversion table "" KNTA_SAVED_SEARCH_FILTERS ".

    ORA-12899: value too large for column FILTER_HIDDEN_VALUE (real: 3929, maximum: 4000)

    "ORA-02372: row data: FILTER_HIDDEN_VALUE: 5.93.44667. (NET. (UNO) - NET BI. UNO - Ambiente tests '

    . . imported "PPM". "' KNTA_SAVED_SEARCH_FILTERS ' 5,492 MB 42221 42225-offline

    ORA-02374: error loading «PPM» conversion table "" KDSH_DATA_SOURCES_NLS ".

    ORA-12899: value too large for column BASE_FROM_CLAUSE (real: 3988, maximum: 4000)

    ORA-02372: row data: BASE_FROM_CLAUSE: 0 X '46524F4D20706D5F70726F6A6563747320700A494E4E455220 '.

    . . imported "PPM". "' KDSH_DATA_SOURCES_NLS ' lines 229 of the 230 308.4 KB

    Thank you very much

    Bruno Palma

    Even with the semantics of TANK, the bytes for a column VARCHAR2 max length is 4000 (pre 12 c)

    OLA Yehia makes reference to the support doc that explains your options - but essentially, in this case with a VARCHAR2 (4000), you need either to lose data or change your data type of VARCHAR2 (4000) to CLOB.

    Suggest you read the note.

  • Muse error, loading to the host FTP [FTP upload failed: 553].

    Error loading to the host FTP [FTP upload failed: 553]. I use the last Muse and download through it is generated by FTP. I have never had a problem over a year to download updates. Why I get this error? How can I fix this? First time that's ever happened.

    Hello

    Please see the link below. I'm sure that you will find it useful.

    FTP download failed: error 553

    Concerning

    Vivek

  • ORA-04052: error occurred while the remote object by raising

    Please help I m this error

    ORA-00604: an error has occurred at the SQL level 1 recursive
    ORA-04052: error occurred while the remote object by raising
    ORA-01017: name of user and password invalid.
    connection refused ORA-02063: preceding the line of LINK DB

    Tom wrote:
    Please help I m this error
    ORA-01017: name of user and password invalid.
    connection refused ORA-02063: preceding the line of LINK DB

    Well, what part of the name of user and password invalid needs to explain?

    SY.

  • Error message on the update report

    I have a manual update report, which works very well.
    I added some validation.
    If the location of display of Error Message is error Page, then when the validation fails,
    does page error, and when they click ok, they relative to returns to the page of report and the report still shows error values.
    If the location of display of Error Message Inline in the Notification, then displays the error message, but the error values are replaced by the
    previous correct values.

    How can I keep the incorrect values in the form when I use display location Error Message is Inline in the Notification

    See you soon

    Gus

    You can use Collections to maintain the session state values. You can find a number of examples in this forum and to the outside.

  • ORA-19112: error raised during the evaluation:... Invalid text

    Hello!

    I use Oracle 10 g version 10.2.0.2.0.

    If I have an element is defined in an XSD file as:
                <xs:element name="cEAN">
                 <xs:annotation>
                  <xs:documentation>GTIN</xs:documentation>
                 </xs:annotation>
                 <xs:simpleType>
                  <xs:restriction base="xs:string">
                   <xs:whiteSpace value="preserve"/>
                   <xs:pattern value="[0-9]{0}|[0-9]{8}|[0-9]{12,14}"/>
                  </xs:restriction>
                 </xs:simpleType>
                </xs:element>
    And I have a XML with:
    <cEAN/>
    And the other with:
    <cEAN>7891515928001</cEAN>
    And I use a select statement as follows:
            SELECT vw.*
              FROM tb_Carga tmp,
              XMLTABLE(XMLNAMESPACES('http://www.portalfiscal.inf.br/nfe' AS "nfe"),
                       '/NFe/nfe:infNFe/nfe:det | /nfe:NFe/nfe:infNFe/nfe:det'
                       PASSING tmp.XMLArquivo
                       COLUMNS
                         cEANTrib  VARCHAR2(14)  PATH 'nfe:prod/nfe:cEANTrib') vw
    Why the first XML returns
    ORA-19112: error raised during evaluation: oracle.xml.parser.v2.XMLParseException: Invalid text '' in element: 'cEAN'
    ?

    Did something wrong in the XSD?

    Thank you
    Luciana

    With different words

    I do not think that

    [0-9]{0}
    

    What's the correct to "empty" match regExp

  • Error loading. The referenced object is not found

    Hi all

    When I open my file .jws created and complie project, it gives the error

    Error loading.

    Object:xxlc. Oracle.apps.OKC.Articles.lists.Server

    Project:D:\JDevelop10g\jdevhome\jdev\myprojects\XXVariables.jpr

    The following defined or objects to objects that cannot be found:

    xxlc.oracle.apps.okc.articles.lists.server.XXLCCreateListValueVO


    Not found the objects referenced below:
    xxlc.oracle.apps.okc.schema.articles.variables.server.XXLCVariableListValuesEO


    All the files are present in the respective folders, so why this error is coming?

    Help, please.

    Thank you
    SK

    XXVariables.jpr, first of all, click on the file--> open, locate the file and click OK.

    Thank you
    -Anil

  • Error loading of the PKI

    I am trying to create a PKI transaction, but when I try to record gives an error that cell does not support intercompany transactions.

    Thanks in advance

    I think you're confused with inter-company balances inter-company transactions. Intercompany transactions are entered daily (operations) which are loaded into the module HFM intercompany, that is the place where you try to create transactions. Intercompany balances are one year the amounts are not loaded in the transaction module.

    Varun

  • ORA-13268: error to get the dimension of the USER_SDO_GEOM_METADATA

    I get an error message if I send my application using ODP.NET .NET (Oracle Spatial) request. I use OR operator and SDO_WITHIN_DISTANCE. Please find the following query. The application works perfectly when I run the query in SQL Developer

    SELECT * from TABLE1
    ....
    WHERE SDO_WITHIN_DISTANCE (GEODATA. FORM, (SDO_CS. TRANSFORM (sdo_util.from_gml311geometry ("< srsName = gml:Point" SDO:4326 "xmlns:gml =" http://www.opengis.net/gml">))
    < xmlns:gml = "http://www.opengis.net/gml" > 50 14 gml:pos < / gml:pos >
    ((((< / gml:Point > '), 4326)), 'distance = 9999.98906889') <>'True '.
    ))
    OR (COLUMN1 IN)
    (SELECT * from TABLE 2)
    WHERE SDO_WITHIN_DISTANCE (GEODATA. FORM, (SDO_CS. TRANSFORM (sdo_util.from_gml311geometry ("< gml:LinearRing xmlns:gml ="http://www.opengis.net/gml"srsName =" SDO:4326 ">"))
    < xmlns:gml = "http://www.opengis.net/gml" > 50 14 gml:pos < / gml:pos >
    < xmlns:gml = "http://www.opengis.net/gml" > 1 gml:pos 1 < / gml:pos >
    < gml:pos = "http://www.opengis.net/gml" > 20 20 xmlns:gml < / gml:pos >
    < xmlns:gml = "http://www.opengis.net/gml" > 80 80 gml:pos < / gml:pos >
    < xmlns:gml = "http://www.opengis.net/gml" > 50 14 gml:pos < / gml:pos >
    ((((< / gml:LinearRing > '), 4326)), 'distance = 9999.98906889') <>'True '.
    ))))

    I have a table with SRID 4326 GEODATA and I created the index also.

    "((((If I replace"(</gml:Point >'), 4326)), ' (distance = 9999.98906889') <>'True' "with" < / gml:Point > '), 4326)), 'distance = 9999.98906889') = 'True' "everything works fine.

    Its very urgent. Any help would be greatly appreciated.

    Duh! The news of the error was in the subject line. I totally missed it.

    The correct syntax seems to be "'), 4326))(, ' distance = 9999.98906889') = 'True'" according to the documentation space:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e11830/sdo_operat.htm#SPATL1041
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e11830/sdo_complex_queries.htm#SPATL1279

    All the examples and description of use contain the equals symbol prior to 'True '. I have not found one without it.

    I'm not an expert by any means of space. So, I don't know why Developer SQL supports a syntax without the equals symbol. It is perhaps a question on the SQL Developer forum or the forum space.

  • ORA-12154 error loading I$

    Hi all

    When I try to execute an interface it fails with the error below when you load data to I$ table. He created the I$ table but fails when loading data only. Can someone help me with this

    ORA-12154: TNS: could not resolve the connect identifier specified.


    Thank you

    Just write a sql of the target to check if the DB connection is correct.

    For sure, the problem lies in your db link. Recreate the db link and check if you are able to access the source tables.

    1. click on the db link: run the query on the target (I think your target and staging are on the same db)
    Select * from MANHATTANDR '.» SYN_ASN_HDR;

    You will get the same error, this will confirm that the error is with db link.

    2 give up this db link and re-create the link correct db.

    And then run the SQL in the backend to check if the new db link is correct. i.e.

    Select * from WMOS1 '.» ASN_HDR"@"MANHATTAN_PROD_A

    It may be useful

  • error on startup: "error loading ozujufuxuzedesuv the specified module rundll32.exe is not found."

    I only get the error at startup code. "error in loading rundll32.exe ozujufuxuzedesuv the specified module cannot be found"

    You have a virus or other such pest or it could be the remnants of a pest that has been deleted by your AV software  Run a Malwarebytes and SUPERAntiSpyware scan on your machine and see if things change.

    http://www.Malwarebytes.org/
    http://SUPERAntiSpyware.com/

    John

  • ORA-12505 error connecting to the schema of HR of Oracle 11 g local db, ORA-00600, ORA-01033

    Hello

    When I try to connect to the hr schema in SQL Developer with these credentials (host: localhost, port: 1521, SID: ORCL), it throws the error message.

    "" Status: failed - Test has failed: listener refused the connection with the following error: ORA-12505, TNS: listener does not currently know the SID ".



    When I try to connect through cmd, it throws this

    SQL * more: Production version 11.2.0.1.0 Mon Jan 11 17:09:47 2016

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Enter the user name: human resources

    Enter the password:

    ERROR:

    ORA-01033: ORACLE initialization or shutting

    Process ID: 0

    Session IDs: serial number 0: 0



    And here is the status of the listener


    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production January 11, 2016 16:04

    : 28

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Prod

    ction

    Start date January 11, 2016 15:02:27

    Uptime 0 days 1 hour 2 minutes 5 seconds

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File D:\app\DKMOH\product\11.2.0\dbhome_1\network\admin\l

    istener.ora

    D:\app\dkmoh\diag\tnslsnr\DKMOH-PC\listener\alert\ log listener

    log. XML

    Summary of endpoints listening...

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    The command completed successfully



    I went through this link fixed - ORA-01033: ORACLE initialization or shutdown in progress | IT Blogger Tips , where it says to change the status from the db to 'OPEN'.

    SQL > select status, database_status from v$ instance;

    STATUS DATABASE_STATUS

    ------------ -----------------

    ACTIVE RISE



    And then, when I run this query below, that's what I get.

    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr], [1],

    [[507], [56509], [56515] [] [], [], [], [], []]



    I'm totally lost here. Any help would be appreciated.

    Thank you

    Hello

    This issue seems to be with the redo log.

    SQL > bootable media.

    SQL > show parameter control_files

    Query 1

    ------------

    SQL > select a.member, a.group #, b.status v$ logfile a, v$ log b where a.group #= b.group # and b.status = 'CURRENT';

    Note the name of the redo log

    SQL > the judgment;

    Take a backup of the controlfile operating system level (this is to ensure that we have a copy backup of the current state of the controlfile)

    SQL > bootable media.

    SQL > restore database using backup controlfile until cancel;

    Enter the location of the log to roll forward as recent on demand 1 when you are prompted for the recovery of

    Press enter

    SQL > Alter database open resetlogs;

    Thank you

  • Test failed: ORA-00604: error occurred at the SQL level 1 recursive

    Hi am in weblogic 10.3.6 will have this error when I try to create the data source

    ORA-01882: zone schedule found region < br / > oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462) < br / > oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397) < br / > oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389) < br / > oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689) < br / > oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:455) < br / > oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481) < br / > oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205) < br / > oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:387) < br / > oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:814) < br / > oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:418) < br / > oracle.jdbc.driver.PhysicalConnection. < init > (PhysicalConnection.java:678) < br / > oracle.jdbc.driver.T4CConnection. (< init > (T4CConnection.java:234) < br / > oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34) < br / > oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567) < br / > oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:404) < br / > oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:674) < br / > oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:267) < br / > oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:134) < br / > () weblogic.jdbc.common.internal.DataSourceUtil.testConnection DataSourceUtil.java:314) < br / > com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:734) < br / >...

    Try to change the regional settings to English (US or UK)

    In addition, adf apps work properly with pilots XA then create your data source with non - XA driver.

    Dario

  • ORA-1033, ORA-00020: ERRORS WHEN STARTING THE DATABASE

    Hi... I am the server of Oracle 11 G (11.1.0.7.0) and here is the overview of the alert.log.

    It seems that 2-3 processes had problem while starting up... but later, they began... I checked in the alert file.

    ________________________________________________________________________________________
    ksuapc: ORA-1033 foreground process begins before PMON ksuapc: ORA-1033 foreground process begins before PMON ksuapc: ORA-1033 foreground process begins before PMON ksuapc: ORA-1033 foreground process begins before PMON
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00450: background process "CJQ0" is not started
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00450: background process "CJQ0" is not started
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00444: background process 'OCMS' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00444: background process 'OCMS' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00444: background process 'OCMS' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00444: background process 'CJQ0' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.
    ORA-00444: background process 'OCMS' failed during startup
    ORA-00020: maximum number of processes () exceeded
    ORA-00020: maximum number of errors ORA-20 process 0 overwhelmed will not be written in the journal of the alert to errors ORA-20.


    ________________________________________________________________________________________


    This doesn't come very often, but once in a blue moon... so is there a reason behind it? because it seems an error when starting only?

    ORA-00020: maximum number of processes (string) exceeded
    Cause: All process status objects are in use.
    Action: Increase the value of the initialization of the PROCESS parameter.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17766/E0.htm#sthref23

  • Error loading of the data in the .csv file

    Hello

    I get error of date below when loading data through Olap tables through .csv file.

    Data stored in .csv is 20071113121100.

    "
    TRANSF_1_1_1 > CMN_1761 Timestamp event: [Mon Mar 29 15:06:17 2010]
    TRANSF_1_1_1 > TE_7007 evaluation of processing error [< < Expression error > > [TO_DATE]: an invalid string for the conversion to date]
    [... t:TO_DATE(u:'2.00711E+13',u:'YYYYMMDDHH24MISS')]
    TRANSF_1_1_1 > CMN_1761 Timestamp event: [Mon Mar 29 15:06:17 2010]
    TRANSF_1_1_1 > TT_11132 Transformation [Exp_FILE_CHNL_TYPE] was a mistake in assessing the output column [CREATED_ON_DT_OUT]. Error message is [< < Expression error > > [TO_DATE]: an invalid string for the conversion to date]
    [.. t:TO_DATE(u:'2.00711E+13',u:'YYYYMMDDHH24MISS')].

    TRANSF_1_1_1 > CMN_1761 Timestamp event: [Mon Mar 29 15:06:17 2010]
    TRANSF_1_1_1 > TT_11019 there is an error in the [CREATED_ON_DT_OUT] port: the default value for the port is on: ERROR (< < Expression error > > [ERROR]: error processing)
    ... nl:ERROR(u:'transformation_error')).
    TRANSF_1_1_1 > CMN_1761 Timestamp event: [Mon Mar 29 15:06:17 2010]
    TRANSF_1_1_1 > TT_11021 an error occurred to transfer data from the Exp_FILE_CHNL_TYPE transformation: towards the transformation of W_CHNL_TYPE_DS.
    TRANSF_1_1_1 > CMN_1761 Timestamp event: [Mon Mar 29 15:06:17 2010]
    TRANSF_1_1_1 > CMN_1086 Exp_FILE_CHNL_TYPE: number of errors exceeded the threshold [1].
    "

    Any help is greatly appreciated.

    Thank you
    Poojak

    What tool to spool the file well? Did he go any where near a GUI tool? I bet it was the precision on the data type or the type of incorrect data in total

    If I paste 20071113121100 into a new excel workbook, the display will return as 2.00711E + 13 - when I put a column data type number that I see all the numbers.
    OK it's not great, but you get what im saying:
    Can run the SQL SQL of plu and coil directly to the file?

Maybe you are looking for