Null Date Assignment

Hi,
I am trying to assign a Null Date to PartnerLink Variable element. The partnerlink is to a Websphere Web Service. In my assignment, I simply do not create a copy operation to the variable element. At runtime this then has the <warrantyDate/> in element. However, the partnerlink errors at runtime with String exception error. It appears as if it is treating the null date element as a string and I am gettting a type mismatch error.
Is there any way of passing a null date and not getting a string error?
Thanks
Error Details below:
<messages><input><Equipment_Create_Input><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters"><create xmlns="http://equipment.ellipse.enterpriseservice.mincom.com">
<connectionId>
<id xmlns="http://ellipse.enterpriseservice.mincom.com">20ceb39a9a0495e1:6587b9ea:11406107bf7:-7ff1</id>
</connectionId>
<requestParameters>
<location>UPRN100061</location>
<equipmentNo/>
<districtCode>0001</districtCode>
<equipmentRef/>
<serialNumber/>
<partNo/>
<ctaxCode/>
<equipmentNoDescription2>Iain Testing 27072007</equipmentNoDescription2>
<equipmentNoDescription1>BPEL SPID Creation</equipmentNoDescription1>
<equipmentClassif16/>
<drawingNo/>
<equipmentTypeDescription/>
<equipmentLocation/>
<plantNo/>
<equipmentClassif3/>
<poNo/>
<operatorId/>
<equipmentClassif/>
<equipmentStatus>OP</equipmentStatus>
<traceableFlg>false</traceableFlg>
<stockCode/>
<compCode/>
<equipmentClass>20</equipmentClass>
<plantNames/>
<shutdownEquipment/>
<equipmentClassif13/>
<equipmentClassif14/>
<taxCode/>
<purchasePrice>0</purchasePrice>
<purchaseDate>2007-07-27T10:41:47+00:00</purchaseDate>
<equipmentType/>
<equipmentClassif18/>
<custodian/>
<equipmentClassif17/>
<costSegLgth>0</costSegLgth>
<warrantyDate/>
<equipmentClassif19/>
<equipmentGrpId/>
<equipmentClassif0/>
<equipmentClassif15/>
<mnemonic/>
<equipmentClassif1/>
<equipmentClassif8/>
<activeFlag>true</activeFlag>
<accountCode>SWA013093000</accountCode>
<equipmentClassif11/>
<equipmentClassif9/>
<parentEquipmentRef/>
<equipmentClassif10/>
<warrStatVal>0</warrStatVal>
<prodUnitItem>false</prodUnitItem>
<equipmentClassif12/>
<plantCodes/>
<originalDoc/>
<segmentUom/>
<colloqName/>
<equipmentClassif2/>
<inputBy>INTEG</inputBy>
<conAstSegEn>0</conAstSegEn>
<warrStatType/>
<equipmentClassif7/>
<equipmentClassif4/>
<parentEquipment/>
<equipmentClassif5/>
<costingFlag>A</costingFlag>
<equipmentClassif6/>
<itemNameCode/>
<conAstSegSt>0</conAstSegSt>
<expElement/>
<plantCode4/>
<plantCode2>22</plantCode2>
<plantCode1>01</plantCode1>
<plantCode0>22222222</plantCode0>
<plantCode5/>
<copyEquipment/>
<plantCode3/>
</requestParameters>
<returnWarnings>0</returnWarnings>
</create>
</part></Equipment_Create_Input></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server.generalException</code>
</part><part name="summary"><summary>java.lang.StringIndexOutOfBoundsException: String index out of range: 0 To see the message containing the parsing error in the log, either enable web service engine tracing or set MessageContext.setHighFidelity(true).</summary>
</part><part name="detail"><detail>&lt;detail/>
</detail>
</part></remoteFault></fault></messages>

I hope I'm explaining this correctly (take this with a grain of salt). Here goes...
Oracle decides at the time you create the view whether or not it is updatable/insertable, etc.
Logically you and I know it returns 1 row, but that doesn't matter. Oracle needs to know at the time you create the view if the table is key preserved. Key preserved means the key stays a key even after the join (think of the result set).
Your v_task view is not key preserved because it is doing a one to many join, the group by in the other query is irrelevant.
I can't do an insert in this simple example for the same reason...
SQL> create table parent
  2  (p_id   number primary key
  3  ,p_name varchar2(10));
Table created.
SQL>
SQL> create table child
  2  (c_id   number primary key
  3  ,p_id   number references parent(p_id)
  4  ,c_name varchar2(10));
Table created.
SQL> create view parent_child_view as
  2  select p.*
  3  from   parent p
  4        ,child  c
  5  where  p.p_id = c.p_id;
View created.
SQL> insert into parent_child_view values (1,'smith');
insert into parent_child_view values (1,'smith')
ERROR at line 1:
ORA-01779: cannot modify a column which maps to a non key-preserved tableThe Application Developer's Guide has a good section about Modifying Join View and Key Preserved Tables. There are a lot of restrictions.
I should add this...
If we change the join view so that we are updating (or inserting) into the child table, that is key preserved.
SQL> create or replace
  2  view parent_child_view as
  3  select c.*
  4  from   parent p
  5        ,child  c
  6  where  p.p_id = c.p_id;
View created.
SQL> insert into parent values (1,'smith');
1 row created.
SQL> commit;
Commit complete.
SQL> insert into parent_child_view values (1,1,'child');
1 row created.Message was edited by:
Eric H

Similar Messages

  • Need help with RANK() on NULL data

    Hi All
    I am using Oracle 10g and running a query with RANK(), but it is not returning a desired output. Pleas HELP!!
    I have a STATUS table that shows the history of order status.. I have a requirement to display the order and the last status date (max). If there is any NULL date for an order then show NULL.
    STATUS
    ORD_NO | STAT | DT
    1 | Open |
    1 | Pending |
    2 | Open |
    2 | Pending |
    3 | Open |1/1/2009
    3 | Pending |1/6/2009
    3 | Close |
    4 | Open |3/2/2009
    4 | Close |3/4/2009
    Result should be (max date for each ORD_NO otherwise NULL):
    ORD_NO |DT
    1 |
    2 |
    3 |
    4 |3/4/2009
    CREATE TABLE Status (ORD_NO NUMBER, STAT VARCHAR2(10), DT DATE);
    INSERT INTO Status VALUES(1, 'Open', NULL);
    INSERT INTO Status VALUES(1, 'Pending', NULL);
    INSERT INTO Status VALUES(2, 'Open', NULL);
    INSERT INTO Status VALUES(2, 'Pending',NULL);
    INSERT INTO Status VALUES(3, 'Open', '1 JAN 2009');
    INSERT INTO Status VALUES(3,'Pending', '6 JAN 2009');
    INSERT INTO Status VALUES(3, 'Close', NULL);
    INSERT INTO Status VALUES(4, 'Open', '2 MAR 2009');
    INSERT INTO Status VALUES(4, 'Close', '4 MAR 2009');
    COMMIT;
    I tried using RANK function to rank all the orders by date. So used ORDER BY cluse on date in descending order thinking that the null dates would be on top and will be grouped together by each ORD_NO.
    SELECT ORD_NO, DT, RANK() OVER (PARTITION BY ORD_NO ORDER BY DT DESC)
    FROM Status;
    ...but the result was something..
    ORD_NO |DT |RANKING
    *1 | | 1*
    *1 | | 1*
    *2 | | 1*
    *2 | | 1*3 | | 1
    3 |1/6/2009 | 2
    3 |1/1/2009 | 3
    4 |3/4/2009 | 1
    4 |3/2/2009 | 2
    I am not sure why didn't the first two ORD_NOs didn't group together and why ranking of 1 was assigned to them. I was assuming something like:
    ORD_NO |DT |RANKING
    *1 | | 1*
    *1 | | 2*
    *2 | | 1*
    *2 | | 1*
    3 | | 1
    3 |1/6/2009 | 2
    3 |1/1/2009 | 3
    4 |3/4/2009 | 1
    4 |3/2/2009 | 2
    Please guide me if I am missing something here?
    Regards
    Sri

    Hi,
    If i well understood, you don't need rank
    SELECT   ord_no, MAX (dt)KEEP (DENSE_RANK LAST ORDER BY dt) dt
        FROM status
    GROUP BY ord_no
    SQL> select * from status;
        ORD_NO STAT       DT
             1 Open
             1 Pending
             2 Open
             2 Pending
             3 Open       2009-01-01
             3 Pending    2009-01-06
             3 Close
             4 Open       2009-03-02
             4 Close      2009-03-04
    9 ligne(s) sélectionnée(s).
    SQL> SELECT   ord_no, MAX (dt)KEEP (DENSE_RANK LAST ORDER BY dt) dt
      2      FROM status
      3  GROUP BY ord_no;
        ORD_NO DT
             1
             2
             3
             4 2009-03-04
    SQL>

  • Null Date Issue

    Hi,
    I am trying to assign a Null Date to PartnerLink Variable element. The partnerlink is to a Websphere Web Service. In my assignment, I simply do not create a copy operation to the variable element. At runtime this then has the <warrantyDate/> in element. However, the partnerlink errors at runtime with String exception error. It appears as if it is treating the null date element as a string and I am gettting a type mismatch error.
    Is there any way of passing a null date and not getting a string error?
    Thanks
    Error Details below:
    <messages><input><Equipment_Create_Input><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters"><create xmlns="http://equipment.ellipse.enterpriseservice.mincom.com">
    <connectionId>
    <id xmlns="http://ellipse.enterpriseservice.mincom.com">20ceb39a9a0495e1:6587b9ea:11406107bf7:-7ff1</id>
    </connectionId>
    <requestParameters>
    <location>UPRN100061</location>
    <equipmentNo/>
    <districtCode>0001</districtCode>
    <equipmentRef/>
    <serialNumber/>
    <partNo/>
    <ctaxCode/>
    <equipmentNoDescription2>Iain Testing 27072007</equipmentNoDescription2>
    <equipmentNoDescription1>BPEL SPID Creation</equipmentNoDescription1>
    <equipmentClassif16/>
    <drawingNo/>
    <equipmentTypeDescription/>
    <equipmentLocation/>
    <plantNo/>
    <equipmentClassif3/>
    <poNo/>
    <operatorId/>
    <equipmentClassif/>
    <equipmentStatus>OP</equipmentStatus>
    <traceableFlg>false</traceableFlg>
    <stockCode/>
    <compCode/>
    <equipmentClass>20</equipmentClass>
    <plantNames/>
    <shutdownEquipment/>
    <equipmentClassif13/>
    <equipmentClassif14/>
    <taxCode/>
    <purchasePrice>0</purchasePrice>
    <purchaseDate>2007-07-27T10:41:47+00:00</purchaseDate>
    <equipmentType/>
    <equipmentClassif18/>
    <custodian/>
    <equipmentClassif17/>
    <costSegLgth>0</costSegLgth>
    <warrantyDate/>
    <equipmentClassif19/>
    <equipmentGrpId/>
    <equipmentClassif0/>
    <equipmentClassif15/>
    <mnemonic/>
    <equipmentClassif1/>
    <equipmentClassif8/>
    <activeFlag>true</activeFlag>
    <accountCode>SWA013093000</accountCode>
    <equipmentClassif11/>
    <equipmentClassif9/>
    <parentEquipmentRef/>
    <equipmentClassif10/>
    <warrStatVal>0</warrStatVal>
    <prodUnitItem>false</prodUnitItem>
    <equipmentClassif12/>
    <plantCodes/>
    <originalDoc/>
    <segmentUom/>
    <colloqName/>
    <equipmentClassif2/>
    <inputBy>INTEG</inputBy>
    <conAstSegEn>0</conAstSegEn>
    <warrStatType/>
    <equipmentClassif7/>
    <equipmentClassif4/>
    <parentEquipment/>
    <equipmentClassif5/>
    <costingFlag>A</costingFlag>
    <equipmentClassif6/>
    <itemNameCode/>
    <conAstSegSt>0</conAstSegSt>
    <expElement/>
    <plantCode4/>
    <plantCode2>22</plantCode2>
    <plantCode1>01</plantCode1>
    <plantCode0>22222222</plantCode0>
    <plantCode5/>
    <copyEquipment/>
    <plantCode3/>
    </requestParameters>
    <returnWarnings>0</returnWarnings>
    </create>
    </part></Equipment_Create_Input></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server.generalException</code>
    </part><part name="summary"><summary>java.lang.StringIndexOutOfBoundsException: String index out of range: 0 To see the message containing the parsing error in the log, either enable web service engine tracing or set MessageContext.setHighFidelity(true).</summary>
    </part><part name="detail"><detail><detail/>
    </detail>
    </part></remoteFault></fault></messages>

    We had the same problem. To solve it you need to do the following:
    1. 'break' the graphical design option of the xslt by removing the processing instruction from the xslt. ( <?oracle-xsl-mapper ..... ?>). After removing and saving the xslt, restart JDeveloper to prevent it from opening the xslt in design mode.
    2. Add the namespace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" if it's not already there..
    3. for all elements that you need to send without content ( <element/> ), add an attribute xsi:nil="1" ( <element xsi:nil="1" /> ).
    HTH,
    Bas

  • Null date subtraction

    In my report, data for one date value is '0/0/00'. but when i drag and drop into report panel it showing blank.Pls reply me.
    and if i substract any other date from  blank date it showing 0 value.Pls reply my question . waiting for ur reply.

    Hi,
    If you need to deal with a NULL date, use Date (0, 0, 0) to check if the date is NULL or not first. 
    So your formula would look something like: 
    If {table.Date1} = Date (0, 0, 0) Then
         {table.Date2}
    Else {table.Date1} - {table.Date2};
    Thanks,
    Brian

  • In Responses, Can I export the data in a pdf form excluding null data?

    In Responses, Can I export the data in a pdf form excluding null data?

    Let me make sure I understand the request...  There is a feature in the Response table to "Save Response as PDF Form" and you'd like to do this excluding the null data (unanswered questions).  If that is correct it is not supported, the "Save Response as PDF form" will save a PDF that is the entire form filled out as the user filled it.
    Thanks,
    Josh

  • Gantt chart with null dates

    Hi,
    Kylie discovered here that you couldn't have null dates in the project gantt query
    APEX 4.0.2 Project Gantt Chart - Error Code: 2002 Message: Empty input
    As Valentina suggested, I found the actual dates are mandatory, while the chart tolerates missing planned dates - which is a complete reversal of what actual project data would have.
    baseline project gantt with parent-child relationship
    What I found though is if some planned dates are missing, the generated XML seems to default with data from previous rows.
    As detailed in this screenshot, my red lines indicate missing from/to dates (actual data also shown underneath chart)
    https://docs.google.com/file/d/0B_eVXQ_oe4tsRUFXUzA0NmNMUE0/edit?usp=sharing
    NAME    TASK_ID   ACTUAL_START  ACTUAL_END  PROGRESS  DUE_START     DUE_END
    line 1  1810794   07/MAR/2013   11/MAR/2013   100     26/MAR/2013   27/MAR/2013 00:00:00
    line 2  1810780   12/MAR/2013   16/MAR/2013   100     23/MAR/2013   27/MAR/2013 00:00:00
    line 3  1810779   17/MAR/2013   20/MAR/2013          
    line 4  1810773   21/MAR/2013   21/MAR/2013   50      24/MAR/2013  
    line 5  1810774   22/MAR/2013   10/APR/2013   93      16/MAR/2013  
    line 6  1810791   11/APR/2013   20/APR/2013          
    line 7  1810793   21/APR/2013   22/APR/2013   45      21/MAR/2013   The accompanying XML backs up the story, yet my query doesn't feed this data.
    <task id="1810794" parent="" name="line 1" actual_start="2013.03.07 00.00.00" actual_end="2013.03.11 00.00.00" baseline_start="2013.03.26 00.00.00" baseline_end="2013.03.27 00.00.00" progress="100" style="defaultStyle"/>
    <task id="1810780" parent="" name="line 2" actual_start="2013.03.12 00.00.00" actual_end="2013.03.16 00.00.00" baseline_start="2013.03.23 00.00.00" baseline_end="2013.03.27 00.00.00" progress="100" style="defaultStyle"/>
    <task id="1810779" parent="" name="line 3" actual_start="2013.03.17 00.00.00" actual_end="2013.03.20 00.00.00" baseline_start="2013.03.23 00.00.00" baseline_end="2013.03.27 00.00.00" style="defaultStyle"/>
    <task id="1810773" parent="" name="line 4" actual_start="2013.03.21 00.00.00" actual_end="2013.03.21 00.00.00" baseline_start="2013.03.24 00.00.00" baseline_end="2013.03.27 00.00.00" progress="50" style="defaultStyle"/>
    <task id="1810774" parent="" name="line 5" actual_start="2013.03.22 00.00.00" actual_end="2013.04.10 00.00.00" baseline_start="2013.03.16 00.00.00" baseline_end="2013.03.27 00.00.00" progress="93" style="defaultStyle"/>
    <task id="1810791" parent="" name="line 6" actual_start="2013.04.11 00.00.00" actual_end="2013.04.20 00.00.00" baseline_start="2013.03.16 00.00.00" baseline_end="2013.03.27 00.00.00" style="defaultStyle"/>
    <task id="1810793" parent="" name="line 7" actual_start="2013.04.21 00.00.00" actual_end="2013.04.22 00.00.00" baseline_start="2013.03.21 00.00.00" baseline_end="2013.03.27 00.00.00" progress="45" style="defaultStyle"/>Is this expected behaviour?
    Is this a bug?
    Is there a workaround - can I supply my own XML to hopefully override what is being generated?
    Scott

    Hi Ahmed
    Thank you for your reply.
    The time scales in Gantt chart specifically shows the year, month and weeks from the start date of project definition or basic start of WBS.
    Since it is not a decided project, the Gantt chart need to show 0, 1st week, 2nd week, 3rd week etc.
    The actual schedule from PD start date can be produced on actual initiation of project.
    It means, i am looking for having Gantt chart for duration and not for specific start and finish dates.
    warm regards
    ramSiva

  • Reports generated with null data

    Hi,
    I setup a role which has read access to all records under different tab corretly. However, the reports are displayed with null data. Any idea?
    Thanks VK

    Hi Bobb,
    "Role-Based Can Read All Records" equal to No in my configuration. Requirement is not to allow report creation on others data.
    So, if I make it Yes, then they can access all data in CRMOD and create report. Please let me know if my understanding is correct.
    Thanks VK

  • NULL date selection

    I am able to produce results with the following formula:
    {system.active_date} <> DateTime (0, 0, 0, 00, 00, 00)
    However, when I wish to select only Null dates and change the formula to
    {system.active_date} = DateTime (0, 0, 0, 00, 00, 00)  , I get no results.  
    Any ideas?
    Thanks, Steve

    Hi,
    Add a GROUP BY clause to get one row per group, rather than one row total.
    Assuming you want the quarter in which selection_date falls:
    GROUP BY  TRUNC (selection_date, 'Q')
    ORDER BY  TRUNC (selection_date, 'Q')The ORDER BY is optional, but you'll probably want it.
    You could also GROUP BY the "quarter" column you derived, but you can't use that alias in the GROUP BY clause of the same query where it is defined. Either
    (1) compute quarter in a sub-query and do the GROUP BY in the super-query, or
    (2) repeat the expression: GROUP BY TO_CHAR (selection_date, 'yy"Q"q')

  • EXEC SQL insert null date

    Hello,
    Could anyone please tell me how I can insert a null date into an oracle table dynamically?  Here are my codes:
    DATA: LV_KEY(10),
                LV_DATE TYPE D.
    TRY.
      EXEC SQL.
        INSERT INTO Z_ORACLE_TABLE
        ( KEY_FIELD, OPTION_DATE )
        VALUES
        ( :LV_KEY, TO_DATE( :LV_DATE, 'YYYYMMDD' ) )
      ENDEXEC.
    ENDTRY.
    Somehow, Oracle gives an error if LV_DATE is initial ('00000000'), saying the date is not between -49xx to ....
    I could have done the following but it is kind of dumb:
    TRY.
      IF :LV_DATE IS INITIAL.
        EXEC SQL.
          INSERT INTO Z_ORACLE_TABLE
          ( KEY_FIELD, OPTION_DATE )
          VALUES
          ( :LV_KEY, NULL )
        ENDEXEC.
      ELSE.
        EXEC SQL.
          INSERT INTO Z_ORACLE_TABLE
          ( KEY_FIELD, OPTION_DATE )
          VALUES
          ( :LV_KEY, TO_DATE( :LV_DATE, 'YYYYMMDD' ) )
        ENDEXEC.
    ENDTRY.
    Thanks in advance for any suggestions.

    Hi Sau Tong Calvin,
    don't you mess up INITIAL ans NULL values.
    In ABAP, every data type has an initial value. As opposed to other programming languages, all variables are set to their initial value before use, numeric fields get 0, TYPE N which is numeric character will take 0 in all places, strings are empty and character fields are space. ABAP date fields are type N technically, so will be '00000000'.
    You can store as this using open SQL.
    NULL value means there is nothing stored for this field - this may save disk space if only few records have values stored for the field. But it will make problems in a WHERE clause of selection because SPACE matches initial values but not NULL values and opposite.
    I don't know too much about native EXEC SQL because I never needed in the last decade. Hopefully you can solve the task using ABAP open SQL.
    Regards,
    Clemens

  • Date Assigned versus Date of Delinquency

    My husband has a Time Warner bill from when he had roomates back in 2009....he didn't even know it still existed, and it went to collections and he paid it when he got a notice last year in April, 2014.   His report shows "date assigned: April, 2014".  The date of deliquency is like, July 2009. Under "negative factors" on his credit report it shows that his latest collection was that Time Warner Bill "1 year, 2 months ago."  Is that right?  Shouldn't it be from the date of delinquency, not "date assigned"??

    It can only report for a max of 7.5 yrs from the OCs DoFD (sometime in 09 from what you have posted here). The CA reports the date they receive the collection and since he immediately paid it, it was updated to paid in full and Fico will score it from the date of last status, it is legal, if you want it gone you would need to send a GW letter to the creditor asking that the whole TL be removed. http://ficoforums.myfico.com/t5/Rebuilding-Your-Credit/GW-letter-Q-amp-A-Examples-and-GW-Success-Stories/td-p/1573680

  • When I try to use 'Stacked Column Bar'. with data assigned in the graphs, and want to see it in the 'Preview' mode in Xeclsius, I unable to see the graphs apart from the Axes ans Series Value, the graphs becomes totaly invisible why So ?

    When I try to use 'Stacked Column Bar'. with data assigned in the graphs, and want to see it in the 'Preview' mode in Xeclsius, I unable to see the graphs apart from the Axes ans Series Value, the graphs becomes totally invisible why So ?

    Hi Ranendra,
    For basic understanding of Dashboards and Models you can use standard Templates or samples which ll come along with dashboard designer(Formly Xcelsius) installation.
    For path   File-->Templates(or Samples).
    Under Templates you ll have different categories and for each you ll find the dashboard Templates.
    Regards,
    Venkat P

  • Displaying Null-date in SQL developer

    Hi,
    I run into the following problem (with SQL developer Vers. 1.2.0 build 2998).
    On a table with a date column and a null date in some rows (the default value is "to_date(1, 'J')" ), SQL developer is showing after a query in the SQL worksheet the date "01/01/4713"
    However, when I'm executing the same query in SQL*Plus, the columns with a null-date showing the value "01/01/4712"
    How is it possible that SQL-Developer and SQL*Plus showing different dates on the same data?
    Any suggestion or explanations for this behavior?
    Any help is much appreciated.
    TIA
    Fred

    They are both getting the same internal Oracle date format.
    They will use different code to translate those bytes into a visible format.
    The problem is about year 0 because historically there wasn't one.
    The internal date format does permit dates in the year zero, but mostly the SQL interface forbids it.
    For example
    select to_date('01010000','ddmmyyyy') from dual;
    will fail, but
    select to_date('01010001','ddmmyyyy')-1 from dual;
    will pass
    and
    select to_char(to_date('01010001','ddmmyyyy')-5,'dd/mon/yyyy') from dual;
    produces, well, garbage.
    Storing 'dummy' values tends to lead to odd results which is why it is generally frowned upon. Use a null and another column to indicate why a real value isn't appropriate.

  • PlotSeries with with null data

    how I can PlotSeries with null data make unvisible (default it visible on horizontal axis)

    It didn't help

  • CR11  null date returned as 01/01/2001 instead of 01/01/0001

    Post Author: MaryC
    CA Forum: General
    We are on CR11 running ODBC from an ISeries DB2 DB.  Null dates are stored on the DB as 0001-01-01, but CR is returning as 01/01/2001.
    There are hot fixes for CR 8.5 - CR 10 for this, but we have not found anything relating to CR 11.  Has anyone come across this?

    i defined FORMS90_USER_DATE_FORMAT FXFMDD.MM.RRRR env-variable in my .login. but nothing happened.
    forms online help says:
    RRRR enables years between 1950 and 2049 to be entered with the century omitted.
    but still: when i enter 1.1.03 to a date field its completed to 01.01.0003 when i leave the field. and i set no format-mask on this date-field.
    anyone else has a idea on this?

  • Null Date

    Hello everyone,
    I have a term date pulling from the db as 1/1/1800 if it's null.
    Would this formula take care of that?:
    if {EMPLOYEE.TERMINATIONDATE} = 111800 then ""
    Thank you

    Hi, 
    If your field is a date type then try using:
    if {EMPLOYEE.TERMINATIONDATE} = Date(0, 0, 0) then ""
    Date (0, 0, 0) is what Crystal uses to evaluate NULL Date fields.  It does also depend on your database.  You can also try: 
    if {EMPLOYEE.TERMINATIONDATE} = Date (1800, 1, 1) then ""
    One way to find out what value Crystal sees is to drop the field onto a report and see what shows up.  If it really is empty then use Date (0, 0, 0). 
    Good luck,
    Brian

Maybe you are looking for