Loading Null values from source to target

Hello all,
Please help me in this issue....
I am trying to load data from source ( state column, varchar50) into target (state column,varchar10).....
in my source i have 10records for state...... 9states with lenght<10 and 1 NULL value......
when i am trying to load the records from source to target...i am getting this error.....
12899 : 72000 : java.sql.SQLException: ORA-12899: value too large for column "TARGET"."STATE" (actual: 11, maximum: 10)
why is taking the lenght of NULL as 11...........
Thanks

there might be some special characters or international characters instead of Varchar2(10 byte ) try varchar2(10 char) and try again. As some of the unicode symbols or characters can take two byes even though they are single characters

Similar Messages

  • RRI - Jump query, unable to pass the variable value from source to target

    Hi,
        I've a source query which has a variable on 0vendor, from this query i jump to another query for which i want to pass the this variable value, in the target query i've vendor in free characteristics (no filter or variable in there), and in RSBBS i tried the assignment details options keeping vendor as generic, tried variable and the variable name but nothing seem to work.
    But when query is run i can jump into target query but the vendor variable value doesnt get passed thru the values i get in target query is for all rather than for the variable entered vendor value in the source.
    btw we're in NW2004s.
    any help appreciated with points.
    thanks
    Mayil

    Anyways, I read somewhere that a variable with replacement path in target query would work, tried it seem to work.
    let me know if there other way to do it without creating a variable in target query.
    thanks
    mayil

  • To extract null Values from the source in Infopackage selections - Very Urg

    Hi All,
    I need to pull the data which has null values from source. I tried to write routine by giving l_t_range-low = '' , space. nothing is working.
    Please guide me with sample code.
    Very Urgent.
    Regards
    Mano

    Hi Mario.
    Assuming that you want to avoid uploading of records having
    zero for a keyfigure:
    Create a startroutine for transfer rules and add this coding:
    DELETE DATAPAK WHERE VALUE = '0'.
    OR
    LOOP AT DATAPAK.
    IF DATAPAK-VALUE = 0..
    DELETE DATAPAK.
    ENDIF.
    ENDLOOP.
    'VALUE' represents the fieldname in transferstructure
    Please let me know if i misundersttod the issue.
    Regards
    Joe

  • Wants to eliminate null values from mapping queue

    Hi All,
    How can I eliminate null values from 'display queue' of a target mapping.
    Can it be done through a UDF? Kindly help.
    Because of null value, it is creating issue in the mapping logic.
    Thanks,
    John

    We can remove null values using node functions.
    Check the below thread:
    Re: How to remove [] form Message Mapping Display Queue
    Or
    Try with the below UDF:
    for (int i=0; i<a.length;i++)
    if (! a<i>.equals(ResultList.SUPPRESS) || ! a<i>.equals(""))
    result.addValue(a<i>);
    Thanks,

  • GG configuration - Changes are not replicating from Source to Target

    Hi,
    I am new in golden gate configuration. I have set up GG between two oracle databases to replicate the changes from source to target database.
    But when I update or insert in HR.JOBS table in source, it is not propagating to target. I didn't find any error in error log.
    Could you please help me to suggest the configuration I did wrong here?
    SOURCE Database information
    ===========================
    Database Name : SRISRI(10.2.0.1) , Hostname : ggs-1.cu.com(Linux 64 bit)
    Oracle GoldenGate Delivery for Oracle Version 11.1.1.1.1 OGGCORE_11.1.1.1.1_PLATFORMS_110729.1700
    GGSCI (ggs-1.cu.com) 2> info all
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT RUNNING EXT_1 00:00:00 00:00:01
    EXTRACT RUNNING PUMP_1 00:00:00 00:00:08
    GGSCI (ggs-1.cu.com) 3>
    Error Log
    =====================
    2012-02-12 15:08:34 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: EXTRACT EXT_1 starting.
    2012-02-12 15:08:34 INFO OGG-00992 Oracle GoldenGate Capture for Oracle, ext_1.prm: EXTRACT EXT_1 starting.
    2012-02-12 15:08:35 INFO OGG-01513 Oracle GoldenGate Capture for Oracle, ext_1.prm: Positioning to Sequence 55, RBA 11345936.
    2012-02-12 15:08:35 INFO OGG-01516 Oracle GoldenGate Capture for Oracle, ext_1.prm: Positioned to Sequence 55, RBA 11345936, Feb 12, 2012 3:00:14 PM.
    2012-02-12 15:08:35 INFO OGG-00993 Oracle GoldenGate Capture for Oracle, ext_1.prm: EXTRACT EXT_1 started.
    2012-02-12 15:08:35 INFO OGG-01055 Oracle GoldenGate Capture for Oracle, ext_1.prm: Recovery initialization completed for target file /app/ggs/trail/local_trail_1/ta000001, at RBA 1307.
    2012-02-12 15:08:35 INFO OGG-01478 Oracle GoldenGate Capture for Oracle, ext_1.prm: Output file /app/ggs/trail/local_trail_1/ta is using format RELEASE 10.4/11.1.
    2012-02-12 15:08:35 INFO OGG-01026 Oracle GoldenGate Capture for Oracle, ext_1.prm: Rolling over remote file /app/ggs/trail/local_trail_1/ta000001.
    2012-02-12 15:08:35 INFO OGG-01053 Oracle GoldenGate Capture for Oracle, ext_1.prm: Recovery completed for target file /app/ggs/trail/local_trail_1/ta000002, at RBA 1025.
    2012-02-12 15:08:35 INFO OGG-01057 Oracle GoldenGate Capture for Oracle, ext_1.prm: Recovery completed for all targets.
    2012-02-12 15:08:35 INFO OGG-01517 Oracle GoldenGate Capture for Oracle, ext_1.prm: Position of first record processed Sequence 55, RBA 11345936, SCN 0.873188, Feb 12, 2012 3:00:14 PM.
    2012-02-12 15:09:07 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): start pump_1.
    2012-02-12 15:09:07 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 218.186.40.99 (START EXTRACT PUMP_1 ).
    2012-02-12 15:09:07 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: EXTRACT PUMP_1 starting.
    2012-02-12 15:09:07 INFO OGG-00992 Oracle GoldenGate Capture for Oracle, pump_1.prm: EXTRACT PUMP_1 starting.
    2012-02-12 15:09:07 INFO OGG-00993 Oracle GoldenGate Capture for Oracle, pump_1.prm: EXTRACT PUMP_1 started.
    2012-02-12 15:09:12 INFO OGG-01226 Oracle GoldenGate Capture for Oracle, pump_1.prm: Socket buffer size set to 27985 (flush size 27985).
    2012-02-12 15:09:12 INFO OGG-01055 Oracle GoldenGate Capture for Oracle, pump_1.prm: Recovery initialization completed for target file /app/ggs/trail/remote_trail_1/tm000001, at RBA 1435.
    2012-02-12 15:09:12 INFO OGG-01478 Oracle GoldenGate Capture for Oracle, pump_1.prm: Output file /app/ggs/trail/remote_trail_1/tm is using format RELEASE 10.4/11.1.
    2012-02-12 15:09:12 INFO OGG-01026 Oracle GoldenGate Capture for Oracle, pump_1.prm: Rolling over remote file /app/ggs/trail/remote_trail_1/tm000002.
    2012-02-12 15:09:12 INFO OGG-01053 Oracle GoldenGate Capture for Oracle, pump_1.prm: Recovery completed for target file /app/ggs/trail/remote_trail_1/tm000002, at RBA 1063.
    2012-02-12 15:09:12 INFO OGG-01057 Oracle GoldenGate Capture for Oracle, pump_1.prm: Recovery completed for all targets.
    GGSCI (ggs-1.cu.com) 3> view report ext_1
    ** Running with the following parameters **
    EXTRACT ext_1
    USERID ogg, PASSWORD ***
    setenv (NLS_LANG="AMERICAN_AMERICA.WE8ISO8859P1")
    Set environment variable (NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1)
    EXTTRAIL /app/ggs/trail/local_trail_1/ta
    discardfile /app/ggs/trail/local_trail_1/SRISRI_discard.txt
    GETUPDATEBEFORES
    TABLE HR.*;
    Bounded Recovery Parameter:
    BRINTERVAL = 4HOURS
    BRDIR = /app/ggs
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE: 64K
    CACHESIZE: 8G
    CACHEBUFFERSIZE (soft max): 4M
    CACHEPAGEOUTSIZE (normal): 4M
    PROCESS VM AVAIL FROM OS (min): 16G
    CACHESIZEMAX (strict force to disk): 13.99G
    Database Version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Database Language and Character Set:
    NLS_LANG = "AMERICAN_AMERICA.WE8ISO8859P1"
    NLS_LANGUAGE = "AMERICAN"
    NLS_TERRITORY = "AMERICA"
    NLS_CHARACTERSET = "WE8ISO8859P1"
    2012-02-12 15:08:35 INFO OGG-01513 Positioning to Sequence 55, RBA 11345936.
    2012-02-12 15:08:35 INFO OGG-01516 Positioned to Sequence 55, RBA 11345936, Feb 12, 2012 3:00:14 PM.
    2012-02-12 15:08:35 INFO OGG-01055 Recovery initialization completed for target file /app/ggs/trail/local_trail_1/ta000001, at RBA 1307.
    2012-02-12 15:08:35 INFO OGG-01478 Output file /app/ggs/trail/local_trail_1/ta is using format RELEASE 10.4/11.1.
    2012-02-12 15:08:35 INFO OGG-01026 Rolling over remote file /app/ggs/trail/local_trail_1/ta000001.
    2012-02-12 15:08:35 INFO OGG-01053 Recovery completed for target file /app/ggs/trail/local_trail_1/ta000002, at RBA 1025.
    2012-02-12 15:08:35 INFO OGG-01057 Recovery completed for all targets.
    ** Run Time Messages **
    2012-02-12 15:08:35 INFO OGG-01517 Position of first record processed Sequence 55, RBA 11345936, SCN 0.873188, Feb 12, 2012 3:00:14 PM.
    TABLEWildcard resolved (entry HR.*): TABLE HR.JOBS;
    Using the following key columns for source table HR.JOBS: JOB_ID.
    GGSCI (ggs-1.cu.com) 4>
    GGSCI (ggs-1.cu.com) 1> view report pump_1
    ** Running with the following parameters **
    EXTRACT pump_1
    USERID ogg, PASSWORD ***
    setenv (NLS_LANG="AMERICAN_AMERICA.WE8ISO8859P1")
    Set environment variable (NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1)
    RMTHOST ggs-2.cu.com, MGRPORT 7809
    RMTTRAIL /app/ggs/trail/remote_trail_1/tm
    PASSTHRU
    TABLE HR.*;
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE: 64K
    CACHESIZE: 8G
    CACHEBUFFERSIZE (soft max): 4M
    CACHEPAGEOUTSIZE (normal): 4M
    PROCESS VM AVAIL FROM OS (min): 16G
    CACHESIZEMAX (strict force to disk): 13.99G
    Database Version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Database Language and Character Set:
    NLS_LANG = "AMERICAN_AMERICA.WE8ISO8859P1"
    NLS_LANGUAGE = "AMERICAN"
    NLS_TERRITORY = "AMERICA"
    NLS_CHARACTERSET = "WE8ISO8859P1"
    2012-02-12 15:09:12 INFO OGG-01226 Socket buffer size set to 27985 (flush size 27985).
    2012-02-12 15:09:12 INFO OGG-01055 Recovery initialization completed for target file /app/ggs/trail/remote_trail_1/tm000001, at RBA 1435.
    2012-02-12 15:09:12 INFO OGG-01478 Output file /app/ggs/trail/remote_trail_1/tm is using format RELEASE 10.4/11.1.
    2012-02-12 15:09:12 INFO OGG-01026 Rolling over remote file /app/ggs/trail/remote_trail_1/tm000002.
    2012-02-12 15:09:12 INFO OGG-01053 Recovery completed for target file /app/ggs/trail/remote_trail_1/tm000002, at RBA 1063.
    2012-02-12 15:09:12 INFO OGG-01057 Recovery completed for all targets.
    ** Run Time Messages **
    Opened trail file /app/ggs/trail/local_trail_1/ta000001 at 2012-02-12 15:09:12
    Switching to next trail file /app/ggs/trail/local_trail_1/ta000002 at 2012-02-12 15:09:12 due to EOF, with current RBA 1307
    Opened trail file /app/ggs/trail/local_trail_1/ta000002 at 2012-02-12 15:09:12
    TABLEWildcard resolved (entry HR.*): TABLE HR.JOBS;PASSTHRU mapping resolved for source table HR.JOBS
    GGSCI (ggs-1.cu.com) >
    ######################### Target database information ##############################################
    Database Name : THAKUR(10.2.0.1) , Hostname : ggs-1.cu.com(Linux 64 bit)
    Oracle GoldenGate Delivery for Oracle Version 11.1.1.1.1 OGGCORE_11.1.1.1.1_PLATFORMS_110729.1700
    Error log
    ==========================================================
    2012-02-12 15:09:07 INFO OGG-01677 Oracle GoldenGate Collector: Waiting for connection (started dynamically).
    2012-02-12 15:09:07 INFO OGG-01228 Oracle GoldenGate Collector: Timeout in 300 seconds.
    2012-02-12 15:09:12 INFO OGG-01229 Oracle GoldenGate Collector: Connected to 218.186.40.99:47496.
    2012-02-12 15:09:12 INFO OGG-01669 Oracle GoldenGate Collector: Opening /app/ggs/trail/remote_trail_1/tm000001 (byte -1, current EOF 1435).
    2012-02-12 15:09:12 INFO OGG-01670 Oracle GoldenGate Collector: Closing /app/ggs/trail/remote_trail_1/tm000001.
    2012-02-12 15:09:12 INFO OGG-01669 Oracle GoldenGate Collector: Opening /app/ggs/trail/remote_trail_1/tm000001 (byte 1435, current EOF 1435).
    2012-02-12 15:09:12 INFO OGG-01735 Oracle GoldenGate Collector: Synchronizing /app/ggs/trail/remote_trail_1/tm000001 to disk.
    2012-02-12 15:09:12 INFO OGG-01735 Oracle GoldenGate Collector: Synchronizing /app/ggs/trail/remote_trail_1/tm000001 to disk.
    2012-02-12 15:09:12 INFO OGG-01670 Oracle GoldenGate Collector: Closing /app/ggs/trail/remote_trail_1/tm000001.
    2012-02-12 15:09:12 INFO OGG-01669 Oracle GoldenGate Collector: Opening /app/ggs/trail/remote_trail_1/tm000002 (byte -1, current EOF 0).
    [oracle@ggs-2 ggs]$
    GGSCI (ggs-2.cu.com) 1> view report rep_1
    ** Running with the following parameters **
    REPLICAT rep_1
    ASSUMETARGETDEFS
    setenv (NLS_LANG="AMERICAN_AMERICA.WE8ISO8859P1")
    Set environment variable (NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1)
    USERID ogg, PASSWORD ***
    MAP HR.*, TARGET HR.*;
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE: 64K
    CACHESIZE: 512M
    CACHEBUFFERSIZE (soft max): 4M
    CACHEPAGEOUTSIZE (normal): 4M
    PROCESS VM AVAIL FROM OS (min): 1G
    CACHESIZEMAX (strict force to disk): 881M
    Database Version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Database Language and Character Set:
    NLS_LANG = "AMERICAN_AMERICA.WE8ISO8859P1"
    NLS_LANGUAGE = "AMERICAN"
    NLS_TERRITORY = "AMERICA"
    NLS_CHARACTERSET = "WE8ISO8859P1"
    For further information on character set settings, please refer to user manual.
    ** Run Time Messages **
    GGSCI (ggs-2.cu.com) 2>
    Thanks
    Tarun

    Hi,
    I have used below statements for ADD EXTRACT and ADD REPLICAT.
    ------Extract
    ADD EXTRACT ext_1, TRANLOG, BEGIN NOW
    -------Data Pump
    ADD EXTRACT pump_1, EXTTRAILSOURCE /app/ggs/trail/local_trail_1/ta, BEGIN NOW
    -------Replicat
    ADD REPLICAT rep_1, EXTTRAIL /app/ggs/trail/remote_trail_1/tb, BEGIN NOW, CHECKPOINTTABLE ogg.tarun_chk
    Yes, i have tried tutorial at Oracle Learning Library.
    Thanks
    Tarun
    Edited by: user8886876 on Feb 12, 2012 9:56 PM

  • Need help Take out the null values from the ResultSet and Create a XML file

    hi,
    I wrote something which connects to Database and gets the ResultSet. From that ResultSet I am creating
    a XML file. IN my program these are the main two classes Frame1 and ResultSetToXML. ResultSetToXML which
    takes ResultSet & Boolean value in its constructor. I am passing the ResultSet and Boolean value
    from Frame1 class. I am passing the boolean value to get the null values from the ResultSet and then add those
    null values to XML File. When i run the program it works alright and adds the null and not null values to
    the file. But when i pass the boolean value to take out the null values it would not take it out and adds
    the null and not null values.
    Please look at the code i am posing. I am showing step by step where its not adding the null values.
    Any help is always appreciated.
    Thanks in advance.
    ============================================================================
    Frame1 Class
    ============
    public class Frame1 extends JFrame{
    private JPanel contentPane;
    private XQuery xQuery1 = new XQuery();
    private XYLayout xYLayout1 = new XYLayout();
    public Document doc;
    private JButton jButton2 = new JButton();
    private Connection con;
    private Statement stmt;
    private ResultSetToXML rstx;
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    xQuery1.setSql("");
    xQuery1.setUrl("jdbc:odbc:SCANODBC");
    xQuery1.setUserName("SYSDBA");
    xQuery1.setPassword("masterkey");
    xQuery1.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
    contentPane.setLayout(xYLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    xQuery1.setSql("Select * from Pinfo where pid=2 or pid=4");
    jButton2.setText("Get XML from DB");
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    catch(java.lang.ClassNotFoundException ex) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(ex.getMessage());
    try {
    con = DriverManager.getConnection("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
    stmt = con.createStatement();
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    contentPane.add(jButton2, new XYConstraints(126, 113, -1, -1));
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton2_actionPerformed(ActionEvent e) {
    try{
    OutputStream out;
    XMLOutputter outputter;
    Element root;
    org.jdom.Document doc;
    root = new Element("PINFO");
    String query = "SELECT * FROM PINFO WHERE PID=2 OR PID=4";
    ResultSet rs = stmt.executeQuery(query);
    /*===========This is where i am passing the ResultSet and boolean=======
    ===========value to either add the null or not null values in the file======*/
    rstx = new ResultSetToXML(rs,true);
    } //end of try
    catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    ======================================================================================
    ResultSetToXML class
    ====================
    public class ResultSetToXML {
    private OutputStream out;
    private Element root;
    private XMLOutputter outputter;
    private Document doc;
    // Constructor
    public ResultSetToXML(ResultSet rs, boolean checkifnull){
    try{
    String tagname="";
    String tagvalue="";
    root = new Element("pinfo");
    while (rs.next()){
    Element users = new Element("Record");
    for(int i=1;i<=rs.getMetaData().getColumnCount(); ++i){
    tagname= rs.getMetaData().getColumnName(i);
    tagvalue=rs.getString(i);
    System.out.println(tagname);
    System.out.println(tagvalue);
    /*============if the boolean value is false it adds the null and not
    null value to the file =====================*/
    /*============else it checks if the value is null or the length is
    less than 0 and does the else clause in the if(checkifnull)===*/
    if(checkifnull){ 
    if((tagvalue == null) || tagvalue.length() < 0 ){
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    else{
    users.addContent((new Element(tagname).setText(tagvalue)));
    root.addContent(users);
    out=new FileOutputStream("c:/XMLFile.xml");
    doc = new Document(root);
    outputter = new XMLOutputter();
    outputter.output(doc,out);
    catch(IOException ioe){
    System.out.println(ioe);
    catch(SQLException sqle){

    Can someone please help me with this problem
    Thanks.

  • Null values from DB2 cause problems

    Hi,
    I have another problem with database link to DB2 using IBM iSeries Access for Linux on 64 bit OEL5 with Oracle Database gateway and unixODBC 2.2.14.
    DB link works. However, null values from DB2 cause problems. Date columns that are null on db2 return a date '30.11.0002', and character columns that are null return an error ORA-28528: Heterogeneous Services datatype conversion error.
    isql returns correct results.
    How can i fix this? Perhaps set some parameters for data conversion on the gateway?
    Thank you.

    If the driver is not fully ODBC level 3 compliant and misses functions, we're lost. But sometimes the drivers are ODBC level 3 compliant but miss the correct 64bit implementation. In those cases we can tell the gateway to use the 32bit ODBC level 3 standard by setting in the gateway init file:
    HS_FDS_SQLLEN_INTERPRETATION=32

  • How can I delete null values from List Item?

    Hi Friends,
    I used List item for field job_Type, I entered values in List item at design time through property pallet. When I run form I will see null values in this List Item.
    How can I remove these null values from the List?
    Best regards,
    Shahzad

    Dear Shahzad,
    It can be removed by adding the following code in the When-new-Form-Instance.
    Set_item_property('List name', required, property_true);
    :block_name.list_name := <put your default value here>; (If you didn't oput the default value, then you will get some problem and the cursor may not navigate away from the list).
    Senthil Alagu .P.

  • How to post null values from h:inputText?

    Hello,
    I have a form made of h:inputText fields that map to an entity class as the backing bean. Whenever I post the form from a web page, all the fields that I did not fill out and that are mapped to String fields in the entity class are set to "" (empty string) instead of null.
    However, I would like to post null values to my entity, because that would indicate that the user did not fill out the field. In other contexts (outside of the web app) it is possible to set the fields to empty strings, but from the web app it should always be null. How can I get JSF to do this correctly?
    Also, when reading entitys with null values from the database, these are converted to empty h:inputText fields, so this direction works as expected.
    Ulrich

    I haven't seen a solution for this as far.
    This is how I do it:
    public void action() {
        if (isEmpty(inputValue)) {
            // do your thing
        } else {
            // do your thing
    public static boolean isEmpty(Object value) {
        if (value == null) {
            return true;
        if (value instanceof String && ((String) value).trim().length() == 0) {
            return true;
        if (value instanceof Collection && ((Collection) value).size() == 0) {
            return true;
        // And go so on .. make it an utility method.
        return false;
    }

  • How to replace NULL values from main table

    Dear all,
    I like to remove the NULL values from a main table field. Or the question is how to replace any part of the string field in MDM repository main table field.
    e.g.   I have a middle name field partly the value is NULL in some hundreds of records, I like to replace NULL values with Space
    any recommendation.
    Regards,
    Naeem

    Hi Naeem,
    You can try using Workflows for automatically replacing NULLs with any specific value.
    What you can do is: Create a workflow and set trigger action as Record Import, Record Create and Record Update. So, that whenever any change will occur in the repository; that workflow will trigger.
    Now create an assignment expression for replacing NULLs with any specific value and use that assignment expression in your workflow by using Assign Step in workflow.
    For exiting records, you will have to replace NULLs manually using the process given by Preethi else you can export those records in an Excel spreadsheet which have NULLs and then replace all NULLs with any string value and then reimport those records in your MDM repository.
    Hope this will solve your problem.
    Regards,
    Varun
    Edited by: Varun Agarwal on Dec 2, 2008 3:12 PM

  • Eliminating the null values from popup list item

    Dear All,
    i create a popup list,at runtime it shows a null blank value among the values i specified while the combo box is not,
    i want to eleminate the blank null value from the popup list.
    Need Help.
    Thanks & Regards.

    Okay,
    i create a popup list, populate it in runtime with create_group_from_query builtin.
    now when i run the form and click the list item, it display a null value among the other values which are
    return from the create_group_from_query .
    the procedure is below
    procedure Department_proc is
    rg recordgroup;
    n number;
    begin
    remove_record_group('RG');------  this is another procedure which checks for Record group existance and remove it.
    rg=:=create_group_from_query('RG4','SELECT NAME,TO_CHAR(DEPT_ID) FROM TAB_DEPT_SECTION
    UNION
    SELECT '||'''All Departments'''||'as name,'||'''0'''||' as name from dual');
    n:=populate_group(rg4);
    populate_list('control_block.department',rg4);
    end;
    it display a null value among the other values for the first time is run the form,but when i click it and select a value from it
    and the onward click dont show the null value.i want to eleminate the null value even for the first time when the user run the
    from.
    Best Regards

  • Remove null values from query

    Hi All;
    Below is my query and the output and i need to remove null values from the output
    Any help regarding same is much appreciated
    Thanks
    ; WITH CTE AS
    select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,a.new_mainprogramme_idname,
    a.new_subprogramme_idname,
    a.owneridname,
    a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
    ap.scheduledstart,
    ap.scheduleddurationminutes
    from opportunity a
    left join contact c on (c.contactid = a.parentcontactid)
    inner join activitypointer ap on ( ap.regardingobjectid = c.contactid )
    inner join appointment appt on (appt.activityid = ap.ActivityId)
    where
    appt.new_didmeetingtakeplace = 1
    and appt.statecode = 1 and
    (a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
    group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid, c.contactid,c.fullname,a.owneridname,
    a.new_mainprogramme_idname,a.new_subprogramme_idname,
    a.new_dateofapplication,ap.scheduledstart,
    ap.scheduleddurationminutes
    union
    select a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,c.fullname,
    a.new_mainprogramme_idname,a.new_subprogramme_idname,a.owneridname,
    a.new_dateofapplication,count(appt.activityid) as NoOfAppointments,
    ap.scheduledstart,
    ap.scheduleddurationminutes
    from opportunity a
    left join contact c on (c.contactid = a.parentcontactid)
    inner join activitypointer ap on (ap.regardingobjectid = a.opportunityid)
    inner join appointment appt on (appt.activityid = ap.ActivityId)
    where
    appt.new_didmeetingtakeplace = 1
    and appt.statecode = 1 and
    (a.SCRIBE_DELETEDON is null and c.SCRIBE_DELETEDON is null and ap.SCRIBE_DELETEDON is null and appt.SCRIBE_DELETEDON is null)
    group by a.opportunityid,a.new_entrypoint_displayname,c.parentcustomerid,c.contactid,a.owneridname,
    a.new_mainprogramme_idname,a.new_subprogramme_idname,
    c.fullname,a.new_dateofapplication,
    ap.scheduledstart,
    ap.scheduleddurationminutes
    CTE2 As
    select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
    new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,
    ac.new_businessstartdate,new_dateofapplication,(NoOfAppointments),
    case when ac.new_businessstartdate > = CTE.scheduledstart
    then (CTE.scheduleddurationminutes) end as PreStartHours,
    case when ac.new_businessstartdate < CTE.scheduledstart
    then (CTE.scheduleddurationminutes) end as PostStartHours
    pp.new_outputs,
    case when po.new_outputsname = 'Pre Start Assist'
    then 'Yes' else 'No' end as Precheck,
    case when po.new_outputsname = 'Business Assist'
    then 'Yes' else 'No' end as Buscheck
    from CTE
    join account ac on (ac.accountid = CTE.parentcustomerid)
    join dbo.new_programmeoutput as po on (CTE.opportunityid = po.new_relatedopportunity)
    join dbo.new_programmeprofile pp on (
    po.new_mainprogrammeid = pp.new_mainprogrammeid and
    po.new_subprogrammeid = pp.new_subprogrammeid
    and pp.new_claimstartdate = po.new_claimdate
    and pp.new_outputsname = po.new_outputsname)
    where (ac.SCRIBE_DELETEDON is null)
    group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,ac.new_businessstartdate,new_dateofapplication,NoOfAppointments,
    scheduledstart,new_mainprogramme_idname,new_subprogramme_idname,cte.owneridname,scheduleddurationminutes
    select opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
    new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
    new_businessstartdate,new_dateofapplication,(NoOfAppointments),
    PreStartHours, PostStartHours,po.new_programmeoutputid,
    case when (new_outputsname) = 'Pre Start Assist'
    then 'Yes' else 'No' end as Precheck,
    case when (new_outputsname) = 'Business Assist'
    then 'Yes' else 'No' end as Buscheck --po.*
    from cte2
    left join dbo.new_programmeoutput as po on (cte2.opportunityid = po.new_relatedopportunity)
    where po.new_claimmonthidname is not null and po.statuscode_displayname = 'claimed'
    group by opportunityid,parentcustomerid,new_entrypoint_displayname,contactid,fullname,
    new_mainprogramme_idname,new_subprogramme_idname,cte2.owneridname,
    new_businessstartdate,new_dateofapplication,(NoOfAppointments),
    PreStartHours, PostStartHours,po.new_programmeoutputid,new_outputsname
    --where new_claimmonthidname is not null --and CTE2.PreStartHours is not null and CTE2.PostStartHours is not null
    Pradnya07

     i need to remove null values from the output
    Hello,
    What exactly do you mean with "remove", to filter the rows out from result set or to replace the null value by an other value e.g. 0? This can be done with the
    ISNULL function:
    ISNULL(case when ac.new_businessstartdate > = CTE.scheduledstart
    then (CTE.scheduleddurationminutes) end, 0) as PreStartHours, ...
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Prevent null values from displaying in answers OBIEE 11g

    Is there any possibilities in OBIEE to Prevent null values from displaying in answers
    For example, If i have two records in table
    TV         cost=NULL(having agg rule sum in BMM layer)
    RADIO   cost=10(having agg rule sum in BMM layer)
    in answers i get two records
    TV       NULL
    RADIO 10
    but i want to get one, only with not null cost

    Just want to clarify your question,You want to eliminate the NULL values from the report am i right? If that is the case then put the filter COST <> NULL.
    Do let me know the updates?
    Thanks,

  • 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

  • How to Load Historical values from Material Prices

    Hi
    I have to load historical values from Material Prices.
    I'm using extractors 0CO_PC_ACT_02 and 0CO_PC_ACT_05.
    Do you know how I can do this in a easy way?
    Help is appreciated.
    thanks in advance.
    best regards

    Hi Joao,
    This extractor0CO_PC_ACT_05 takes the data from table MBEW. ( data for the current period, previous period and last period of the previous year )
    If material ledger is active, then it takes the information from table ckmlhd for those materials.
    It does not look like fetching from MBEWH.
    Please validate my above comments with sample extraction for a material and plant.
    If that is the case, I would suggest you have to create a custom extractor based on MBEWH to get the historic price data and with 0CO_PC_ACT_05 you can get the prices for the previous period as they get completed .
    0CO_PC_ACT_02 gets you the inventory value and not the price in the same way.
    You might have to think about 0CO_PC_ACT_06 and 0CO_PC_ACT_07, if you have project stock and sales order stock in your business scenario.
    Please let me know, how this goes.
    Thanks,
    Krishnan.

Maybe you are looking for

  • Collect message into internal table

    Hi, does any one knows how BAPIs or CALL TRANSACTIONs collect messages into internal table. My problem is that some BI with CALL TRANSACTION doesn't collect right message into return table and I would like to collect this last message after CALL TRAN

  • EA2700 - Removing devices on network

    On Cisco connect you should update it to if there's a device you don't know on the connected device's u should be able to kick it off ur router I have the ea2700. I was wondering because like two nights ago there was a unknown device on my network is

  • Has anyone else noticed how selection is bugged in 5.1

    Hey - I wish there was a warning that adding a new product did not return to a draft message! OK - entering it again! IOS 5.1 has introduced bugs connected with '-- ' in front of a mail sig. If one clisks a blank line above, and 'select' there is no

  • Help! My sons ipod will not play

    I have a full charge, 8 songs installed, I turn on the devise, the blue light appears solid, then flashes every once in a while. I push play and nothing. I adjust the volume, and nothing. Help please...Brett

  • How can I make the text insertion caret/cursor easier to see in InDesign?

    I'm using InDesign CS5, and it doesn't comply with Windows 7 Ease of Access settings regarding the text insertion caret/cursor thickness. Is there a fix for this? P.S. QuarkXPress has the same problem, so whichever software resolves it first wins!