Error in when null values are passed to datefield

Hi all,
We are facing some issue with null values in date fields while calling a stored procedure using JDBC Adapter in one of the interfaces.
When the value is null, XI gives errors in the communication channel.
Case 1 , When the value is mapped to blank. : The adapter gives an error related to date format. Unsparseable date “”.
Case 2 , When the value is not mapped at all : The adapter gives an error related to wrong number of arguments for the stored procedure.
One option for fixing this issue is to hardcode the value to all zeros in a appropriate date format. However this is not acceptable in our case.
Did anybody face this issue before. If yes what was the approach taken. Can you please let me know if anybody has any inputs on this.
Thanks in advance,
Younus

you can clear the field key tags mandatory in the XML Schema interpreter parameter and make the Empty string value to Empty string from null value.
For mapping : you can pass a value that is of the same format of date; but you can take your own value in the database since you are parsing the date format from one to other
thanks
nikhil

Similar Messages

  • Dynamic sql reurns no data when multiple values are passed.

    (Dynamic sql returns no data when multiple values are passed.)
    Hi,
    While executing the below dynamic sql in the procedure no data is returned when it has multiple input values.
    When the input is EMPID := '1'; the procedure works fine and returns data.Any suggestion why the procedure doen't works when input as EMPID := '1'',''2'; is passed as parameter?
    =======================================================
    create or replace PROCEDURE TEST(EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
    stmt VARCHAR2(9272);
    V_EMPID VARCHAR2(100);
    BEGIN
    V_EMPID :=EMPID;
    stmt := 'select * from TEST123 where Empid is NOT NULL';
    IF V_EMPID <> '-1' THEN
    stmt := stmt || ' and Empid in (:1)';
    ELSE
    stmt := stmt || ' and -1 = :1';
    END IF;
    OPEN rc FOR stmt USING V_EMPID;
    END Z_TEST;
    ============================================================
    Script for create table
    ==================================================================
    CREATE TABLE TEST123 (
    EMPID VARCHAR2(10 BYTE),
    DEPT NUMBER(3,0)
    ===========================================
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('1',20);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    =============================================
    Select * from TEST123 where Empid in (1,2,3)
    EMPID DEPT
    1     20
    2     10
    3     30
    3     30
    2     10
    ===================================================================
    Any suggestion why the procedure doen't works when input EMPID := '1'',''2';?
    Thank you,

    The whole scenario is a little strange. When I tried to compile your procedure it couldn't compile, but I added the missing info and was able to get it compiled.
    create or replace PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      IF V_EMPID = '-1' THEN
        stmt := stmt || ' and Empid in (:1)';
      ELSE
        stmt := stmt || ' and -1 = :1';
      END IF;
      OPEN rc FOR stmt USING V_EMPID;
    END;If you pass in 1 as a parameter, it is going to execute because the statement that it is building is:
    select * from TEST123 where Empid is NOT NULL and -1 = 1Although the syntax is valid -1 will never equal 1 so you will never get any data.
    If you pass in 1,2 as a parameter then it is basically building the following:
    select * from TEST123 where Empid is NOT NULL and -1 = 1,2This will cause an invalid number because it is trying to check where -1 = 1,2
    You could always change your code to:
    PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      stmt := stmt || ' and Empid in (:1)';
      OPEN rc FOR stmt USING V_EMPID;
    END;and forget the if v_empid = '-1' check. If you pass in a 1 it will work, if you pass in 1,2 is will work, but don't pass them in with any tick marks.

  • NULL values are inserted into interface table for read only columns

    Hi, I developed a custom Integrator where some of the columns has to be displayed as read only in the layout. I am using SQL content to populate the data. When I upload the data NULL values are inserted into table interface? Is there any work around for this?
    Thanks
    Edited by: user593879 on Jan 12, 2010 7:21 PM

    Doesn't WebADI drive you insane at times?
    I must say, when it's all working it looks great and it is very user friendly (end-user that is, NOT for developers!) but before you get to that stage… please please Oracle invest some time making Web ADI a bit more logical an coherent, get the obvious bugs out, please let us not have to update BNE tables anymore to get things done.
    Anyway, I sorted this one out by setting the Width to zero (0) in the Layout. HTH.

  • In column Chart when Y values are grater than y linear axis maximum it doesnt show the Bar

    Hi Guys,
    In column Chart when Y values are grater than y linear axis maximum it doesnt show the Bar.But i want show the bar upto the max limit of y linear axis without changing the max limit.
    Consider following example:
    Y values are 80 90 200 300
    and following are the output :
    Left:When i am not setting maximum property of linear axis.
    Right :When i am setting maximum property of linear axis to 200.
    In right 4th bar is not visible bcoz value for that bar is 300 which is excedding  maxium.But i want the 4th bar to appear same as 3rd bar.
    How i can do this?
    Thanks in advance.

    Are you going to show the bar going past the maximum value?
    If not, then you should change the Y value when entered into the array to the maximum value allowed. i.e.
    if(itemYValue > maxAllowedValue) {
         itemYValue = maxAllowedValue;
    Where maxAllowedValue is a variable you set on the application to control the maximum value for the chart.
    This is assuming that you are loading the values into an Array before updating the chart dataprovider with that array.

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • Error while selecting NULL value from Popup Key LOV(numeric or value error)

    Hi,
    I have a item P1_DEPTNO with following properties.
    P1_DEPTNO - Popup Key LOV (Displays description, returns key value)
    LOV - P1_DEPT_LOV
    select deptname d, deptno r from deptP1_DEPTNO item properties
    List of Values
      Named LOV - P1_DEPT_LOV
      Display Null - Yes // changed to Yes, so that it can accept NULL values.
      Null display value - NULL
      Null return value -   (blank)PL\SQL Process -
    declare
    v1 number;
    begin
    if :P1_DEPTNO is null OR :P1_DEPTNO = '' then
        v1 := 0;
    else
        v1 := :P1_DEPTNO;
    end if;
    // rest of the PL\SQL process
    end;Now, when I run the page and select NULL value from Popup LOV and submit, I get the following error.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error.When, I select any other value other than NULL, then it's working perfectly fine.
    Only in case of NULL value, I am getting this error.
    ANY idea, why this error is coming??
    Thanks,
    Deepak

    Hi Varad,
    I did the following change
    Null display value - (blank) // by default it is displaying '%' in the select this
    Null return value - -1
    but when I select % (null value) from the popup list, it displays the return value -1 in the text field.
    My question is why it is displaying the return value -1 in the text field...*It should display the display value in the text field (i.e blank in this case)*
    then, I did the following change
    Null display value - (blank) // by default it is displaying '%' in the select this
    Null return value - // a single space, so that when I select %(null value) from the list, it should display blank in the text field...
    then I did the following change in the PL\SQL process.
    PL\SQL process
    declare
    v1 number;
    begin
    if :P1_DEPTNO = ' ' then // -- checking the value of single space ' ' when we select %(null) in the popup list, BUT even I select %(null), control is not coming here.
        v1 := 0;
    else
        v1 := :P1_DEPTNO;
    end if;
    // rest of the PL\SQL process
    end;Thanks,
    Deepak

  • Superposed fields when null value

    Hi all,
    There is one repeating frame , say R1, which contains two other repeating frames , say R2 and R3.
    The group of R1 is the master group , and the groups of R2 and R3 are details of R1's group ( foreign key ) .
    I have created a formula column in the two detail groups , one in each other , and they may return null.
    My problem is when the return value is null then all the fields below the two fields associated for the formula columns come taking the place of the two fields , something like they are put over the two fields. And the report is not very good to look at this moment.
    I have tried to anchor each detail repeating frame to the text label of the field but the problem is not resolved. The report is even more bad when there is null value.
    So how to prevent this problem of misplacement.
    Thank you very much indeed.

    Try to change Vertical and Horizontal elasticity from Variable/Contract to Expand. See if it works

  • Black only error message when all inks are full

    My printer ran out of a color some time ago and popped up the black only message box. I have since replaced all of the colored inks and it still gives me the black only message when I go to print and says I need to replace magenta. I just replaced it! My printer is the photosmart C6280. Thank you

    Hello Sudharshan,
    "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    This is error is indicating that your original CAD model is not checked in and as per your configuration you require the original to be checked in before moving to next status.
    Please:
    1. Check your document status network.
    2. ensure that you have proper set up for the fields "check in" in the current status. This indicator should be set. This ensures that the document is automatically checked in before moving to the next status. This will solve your problem.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this ?
    Because of the above set up missing the original DIR is missing the original document and hence the system assumes you are creating a new DIR when you click on the object in CAD view.
    regards,
    N K

  • Error: OQ78YWIW when repeating values in a pivot

    All,
    I'm receiving the following error on a pivot table:
    Assertion failure: rTotalPosition.tCellInfo.iLayerCell != rTotalPosition.tCellInfo.iEndLayerCell at line 310 of e:\views_e\nightly\sun\10134\windows\vobs\080726.1900\analytics_web\main\project\webpivotview\edgeiteratordef.h
    Error Details
    Error Codes: OQ78YWIW
    I get this when I set the column's value suppression to 'Repeat' - customer's request. I don't have this problem when the value suppresion is set to 'Suppress' (the 'Default').
    The pivot has 4 columns in the rows, 3 of which have subtotals.
    Any suggestion?
    Thanks in advance!

    Thanks for the reply, KK.
    I might have missed the point on something reading the link article, but, the article is suggesting how to select multiple columns in the column selector view. I'm just getting the error with a simple pivot with subtotals that have repeating values set for some of the four columns in the 'row' portion of the pivot.

  • Customizing error message when no value is entered

    Hello,
    I would like to have my own error message when a user does not fill in a field and the required attribute is specified. How do I do that? Instead of "Validation Error: Value is required." I'd like "please specify a value." How do I do that?
    Thanks in advance,
    Julien Martin.

    hi,
    in section 2.5.2.4 of the spec, there you will find some details on it.
    and how you overwrite error-messages
    cheers,
    matthias

  • Error message when adding values to another table

    hi i have a situation where am adding values from a view to a bean,my use case is i have a list of user in my view where am adding them to my bean by clicking the button,but now i what to validate when adding a user in such a way that if i added a use in my bean and i try to add that user again in current selection i must have validating error saying the user have been added already my code is
    Edited by: adf0994 on 2012/12/13 2:19 PM

    looks like you should have asked this in the ADF-forum...
    JDeveloper and ADF
    Why don't you simply configure the user name beeing unique in your entity?
    ADF would raise an exeption for you.
    public String onRowCreate( Row currentRow ) {
    return null;
    }Don't do that.
    returning a literal null is almost ever a mistake! In this certain case you should declare you methods return type as void and ommit the return statement.
    bye
    TPD

  • How to raise an error message when duplicate value is entered in a tabular field column? Basically not allow duplicate value at the form level.

    Hi all,
    I have created a form with one data block MATURED_FD_DTL which looks like below:
    ACCT_FD_NO
    CUST_CODE
    FD_AMT
    FD_INT_BAL
    TDS
    CHQ_NO
    ADD_FD_AMT
    P_SAP_CODE
    P_TYPE
    CREATE TABLE MATURED_FD_DTL
      ACCT_FD_NO    VARCHAR2(17 BYTE)               NOT NULL,
      CUST_CODE     NUMBER(9),
      FD_AMT        NUMBER(15),
      FD_INT_BAL    NUMBER(15),
      TDS           NUMBER(15),
      CHQ_NO        NUMBER(10),
      ADD_FD_AMT    NUMBER(15),
      P_SAP_CODE    NUMBER(10),
      P_TYPE        VARCHAR2(1 BYTE)
    For MATURED_FD_DT.ACCT_FD_NO, Trigger: KEY_NEXT_ITEM, I have written the following code:
    DECLARE
    V1 NUMBER;
    V2 NUMBER;
    BEGIN
    V1:=:MATURED_FD_DTL.ACCT_FD_NO;
    MESSAGE('V1:'||V1);
    MESSAGE(' ');
    END;
         GO_ITEM('MATURED_FD_DTL.CUST_CODE');
    This is just a dummy code.
    When ever i enter the value in the field of ACCT_FD_NO, it pops up a message saying "V1:Value of ACCT_FD_NO",
    So i want to store that value .
    Compare them & if it is egual, it should pop up a message saying duplicate value is entered and must not allow to enter, at form_level.
    So how can I compare the ACCT_FD_NO value between FIRST_RECORD and NEXT_RECORD ??
    Help Me .
    Thank You.
    Oracle Forms 6i.
    Oracle 9i.

    Thank You HamidHelal.
    Actually before posting the code, I went through the first link you have mentioned. I tried also, it is quite tedious procedure, however i dint get the proper result, may be i have done some mistake. Anyways , can you tell me how do i check in database table, if a value exists OR IF VALUE FOUND & then message and raise form trigger failure; something like below.
    IF :MATURED_FD_DTL.ACCT_FD_NO EXISTS
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    OR
    IF :MATURED_FD_DTL.ACCT_FD_NO FOUND
    THEN MESSAGE('YOU HAVE ENTERED AN EXISTING OR DUPLICATE VALUE');
              MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END;
    Is there any equivalent in the form in oracle forms 6i?? Please let me know how do i do this??

  • How should I set up my VI so that I can use the linear fit coefficient data analysis program, when my values are coming from while loops within a sequence structure?

    I'm attempting to create a calibration program, using the printer port, and a Vernier Serial Box by modifying a calibration program designed for the serial box.
    There are six calibration points, and to collect them, I have it controlled by while loops so that the numbers are taken when a button is pushed, and this is inside a sequence structure so that I can get the six different points. I feed these numbers into two different arrays (for x and y values) and then try to use the linear coefficient analysis on these points, but the values for the slope and intercepts it returns are not correc
    t.
    If I cut out the array and coefficient analysis, and feed the same numbers in directly without the while loop and sequence structures, it produces the proper values... I don't know why the numbers it is producing are different, and I'd really like to know.
    Thanks,
    Karinne.

    I would use a data manager sub-vi that would be called by each from of the sequence structure that produced a data point. The data manager sub-vi could auto append new items or could place items in a specific entry of an array. Later on when you want to calculate the linear fit, call the sub-vi to return the array of values.
    Stu

  • LOV values not displayed (when master values are changed)

    Sorry for the confusing subject....
    I have a codevalue table which contains all generic lookup values.
    employee table has employeetype which is getting value from codevlaue table but they are not linked (no foreign key relationship)
    Problem is this
    Example.... for eomployee 1 let say exmployeetype = perm. if i change the codevalue from perm to permanent.
    next time I open the employee 1; I see the employeetype = empty as perm value is not available in lov.
    Any way I can overcome this problem using configuration or do i have to generate my own lov in Vo?
    I am using oracle 11.1.1.3 adf bc.
    let me know if you need any more info

    Thanks ....
    Let me go through step by step process....
    LOV is working fine.....for employetype i see the correct value
    Now steps I performed which led to this problem
    1. for my employee #1, i have employeetype='perm'*
    2. I went to codevalue table and changed the value from 'perm' to 'permanent'
    3. I went to employee page for employee #1, i see empty employeetype (I want to see the current value which is 'perm')
    drop down for employeetype shows correct current value
    Now 'perm' doesn't exist in codevalue table and when lov gets generated..... it doesn't have that value......
    What i want is not matter if codevalue has the current value of employeetype or not, I want to see the current employeetype value selected......
    does that make sense?
    1.

  • How security values are passed to OBIEE server

    Hi All,
    I would like to understand how are the security values passed to OBIEE server? Can anybody let me understand this or provide some link?
    Thanks in Adv

    Check this
    Rittman Mead Consulting &amp;raquo; Blog Archive &amp;raquo; An OBIEE 11g Security Primer : Introduction
    Mark if helps.

Maybe you are looking for

  • Can't install iTunes on windows xp

    I was given an iPhone 4 and needed to upgrade my iTunes to download on to it but iTunes said it couldn't connectto the upgrade.  I tried to download iTunes 11 but all it would do was ask me if I wanted to save the file and when I clicked yes, Apple s

  • Problem reinstalling Mountain Lion MAcbook Air

    I have a mid 2012 11 in Macbook air running Mountain Lion.  I had had no problems until yesterday when Chrom would not start.  Upon trying to restart the conmputer the process would not go beyond the grey screen with the spnning wheel.  I let this si

  • Is it possible to assgin authorization object to business object

    Hi, Experts, Is it possible to assgin authorization object to business object to get secutiry control

  • Incorrect timestamp on logs exported to Excel

    Exporting logged data to Excel loses the original timestamp.  The time in the Excel file is the system time at which the Excel file was created.  The entry in the spreadsheet for time X0 is just 0.  The original log file (within SignalExpress) has th

  • Exporting Snapzpro tutorial for web, help!?

    I recently finished a 6 part tutorial for a clients website using snapzpro and graphics from Motion. I agreed to do the project if I could hand over compressed Quicktime files directly to their web guy. Now they think that none of their customers hav