Null Value error

Hi,
select decode(user_id,null ,'noname') from users
where name = 'JOHN'
in the users table , i dont have column with john . If i try the select statement then im getting null value which is correct, i m trying to use nvl,decode function so that i can add a value to it if it is null .
mean if there is no JOHn then it should it say noname.

You didn't have the right parameters going in your decode statement.
select decode(dummy,null, 'A', dummy) from dual;
Read as: Decode value in dummy, if it is null, put the value A, otherwise, put the value dummy.
select decode(user_id,null ,'noname', user_id) from users where name = 'JOHN'
Read as: Decode value in user_id, if it is null, put value noname, otherwise put user_id.
Or use nvl:
select nvl(user_id, 'noname') from users where name = 'JOHN'
read: if user_id is null, put the value 'noname', otherwise put value user_id.

Similar Messages

  • Automated row fetches, checkboxes and null values

    Hi
    In Apex3 I have a page with automated fetch row process that is working fine. Now I need to add a new not null varchar2 column "flag" which can be a Y or a N.
    To do so, I created a new checkbox item p1_flag, set the source properties and the LOV definition to: STATIC2:Flag set;Y
    However when I try to save the data with the checkbox unticked I get a null value error. To solve it, I created a computation on that field like this:
    nvl(:p1_flag, 'N')
    Is this the best way to do it? (other than using database triggers)
    Thanks
    Luis

    Hi Patrick
    Thanks for the reply. I thought that, just wondered if there were a better way...
    Another option that I was thinking about was to modify the column definition to be nullable, with valid values being Y and null. So I wouldn't have to care about it. The only thing being that I don't like very much the idea of modifying the database design because of the development tool (though I saw things much worse than this, as using VARCHAR2 instead of DATE because the front end tool didn't handle date datatypes very well!)
    Or just stick to a trigger to do it.
    Cheers
    Luis

  • [OBIEE-11g] Error getting Nqid always null value

    Hi to all, I've a problem to load Nqid in a dashboard on 11g OBIEE.
    The javascript function return always a null value and the document.cookie instruction return an empty string ...
    somebody could help me ?!
    p.s.: in the firefox properties there is a cookie that contain the id but i can't read it
    function getNqid() {
    var nameEQ = 'nQuireID=';
    var ca = document.cookie.split(';');
    for(var i=0; i<ca.length; i++) {
    var c = ca;
    while (c.charAt(0)==' ')
    c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0)
    return c.substring(nameEQ.length,c.length);
    return null;

    Hi,
    You might want to check the NQQuery.log to see the code that it is running before making a connection. Just to confirm that the connection pool step is working fine, could you try with a simple select statement and see that it does not error out. If it does not, you may want to revisit the procedure code again. I understand from the error that it is expecting something after the END statement (kind of weird though!!). I assume in this case, it could not parse that this is a stored procedure call itself may be. One thread I found is http://stackoverflow.com/questions/4270818/ora-06550-and-pls-00103 which you may want to look for the line break characters.
    Hope this helps.
    Thank you,
    Dhar

  • Report error: ORA-06502: PL/SQL: numeric or value error: NULL index table k

    Hi everybody,
    I have two Distinct Databases on two distinct servers. (Oracle Ent. Release 10.2.0.3.0 on AIX 5.3). After I install the latest patch last week, One of the APEX installation has some problems on Home>Application Builder Page. The error message is very random and
    report error:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
    When i change the view (details to icons), everything goes to normal. This error message is reflected some of the pages (report region) of some of my applications randomly. When it appears in a report region, i deselect the order method of the region, the result is normal.
    But the other APEX application on the other instance has no problem. It is a bug? or Should i re-install the APEX instance?
    Thank you for your interest?
    Gökhan ÇATALKAYA

    No, but we have a reproducible test case now so we're working on it. See ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    Scott

  • 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

  • Error: ORA-06502: PL/SQL: numeric or value error:NULL index table key value

    Hi,
    I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
    My Approach is :
    a) Create a record type variable ( concists of multiple segments)
    b) Create a pl/sql table type of the records type in a)
    c) Created a cursor of same structure as pl/sql table type ( collects data)
    d) BULK CoLLECT data from cursor into pl/sql table
    e) Print the data
    But during Bulk Collect i get the below error :
    Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind

    Ashish_Apps wrote:
    Hi,
    I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
    My Approach is :
    a) Create a record type variable ( concists of multiple segments)
    b) Create a pl/sql table type of the records type in a)
    c) Created a cursor of same structure as pl/sql table type ( collects data)
    d) BULK CoLLECT data from cursor into pl/sql table
    e) Print the data
    But during Bulk Collect i get the below error :
    Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindVerify the rows you are fetching are having the same data types as your Record like Dates should go to date , decimal should not be fetched in type defined as number etc.

  • ORA-06502: PL/SQL: numeric or value error: NULL index table key value??

    Hi,
    Can anyone let me know what is the issue on below code and how can we avoid that? i am getting the error like below
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
                        v_while_loop := 1;
                        v_delete_char_id := v_tabtype_result_values.FIRST;
                        WHILE v_while_loop <> v_tabtype_result_values.COUNT
                        LOOP
                            IF check_duplicate_nc_data (v_result_view,
                                                        v_tabtype_result_values(v_delete_char_id).value,
                                                        v_collection_id,
                                                        v_occurrence,
                                                        v_plan_id,
                                                        v_delete_char_id
                            THEN
                                DBMS_OUTPUT.PUT_LINE(v_delete_char_id);
                                v_tabtype_result_values.DELETE(v_delete_char_id);
                            ELSE
                                DBMS_OUTPUT.PUT_LINE(v_delete_char_id||','||v_tabtype_result_values(v_delete_char_id).id||','
                                                        ||v_tabtype_result_values(v_delete_char_id).value||','
                                                        ||v_tabtype_result_values(v_delete_char_id).validation_flag
                            END IF;
                            v_while_loop := v_while_loop + 1;
                            v_delete_char_id := v_tabtype_result_values.NEXT(v_delete_char_id);
                        END LOOP;

    Change:
    WHILE v_while_loop &#60;&#62; v_tabtype_result_values.COUNT to
    WHILE v_while_loop <= v_tabtype_result_values.LASTSY.

  • ORA-06502: PL/SQL: numeric or value error: NULL index table key value Repor

    W've been experiencing the Oracle Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value Report’ [we are currently on apex v3.0.1]. From the forum there was a reference to a bug fix: apex bug (6416829) fixed in 3.1. When we view '6416829' in Metalink we can see the bug title but cannot see any details as it's protected. Can anyone shed some light on why it's protected or provide further details.
    We have many LIVE customers reporting this error and we want to be certain it's fixed in v3.1.
    (currently we are working around this by flushing the shared pool but this is not ideal).
    Any help would be appreciated.

    Scott,
    This error has been thrown several times in the past 24 hours. Yesterday several of my reports threw the error, these reports have done so in the past. This morning APEX has begun throwing the error of which I have seen only once before. This is occuring at Home>Application>My Application. The error appears when I attempt to View the report in Details mode, is OK when I view the report in Icons mode. The error is occuring in my Prodution environment which has not been updated since 2/25/2009.
    As before, I edited the SQL on my application's reports and the error then disappeared.
    We are running Application Express 3.2.0.00.27 and Oracle Release 10.2.0.1.0. My browser is IE 7.0.
    Plan to test later with FireFox provided I can download it to see if this might browser related.
    Any inforamtion or guidance is appreciated.
    Jeff

  • 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

  • Issue with Results from Another Query (Error on Null value)

    Hi All,
    We have a WebI report using "Result from Another Query" option of BO XI R3.1. The report was running fine till recently the dimension object using result from another query had a null value. Report suddenly throwed error as the query filters are invalid.
    Is there a way to make this filter optional if no data/null value is there ? Because we need those null values in report as well.
    Thank you for your time.
    Thanks & Regards
    LN

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • SQL errors in SMS_STATE_SYSTEM - Trying to write NULL values to PropertyLocale

    Hi!
    We are getting a lot of the following error in the SMS_STATE_SYSTEM:
    Microsoft SQL Server reported SQL message 515, severity 16: [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow
    nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    Please refer to your Configuration Manager documentation, SQL Server documentation, or the Microsoft Knowledge Base for further troubleshooting information.
    I understand what this message means but i cant find which applications are causing the problem.
    (actually i think I do but I still get the error messages after deleting them..)
    It seems it's trying to write NULL-values twice every 5 minutes, but from "where"? What is telling it to update the row with a NULL value?

    Here are part of the statesys.log - It's not very helpful ;)
    Seems it's the  'Update Application Catalog Tables'-task who is responsible for the mess.. But it does not say anything about the application..
    Started task 'Update Application Catalog Tables'
    SMS_STATE_SYSTEM 03.02.2014 16:18:14
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** [24000][0][Microsoft][SQL Server Native Client 11.0]Invalid cursor state
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Task 'Update Application Catalog Tables' failed after running for 19 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Will sleep until task 'Update NAP Restriction Error Summary' is due in 220 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 220 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:19:53
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:3088 started
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:20:03 3088 (0x0C10)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:20:03 3088 (0x0C10)
    Thread "State Message Processing Thread #0" id:3088 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:6468 started
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:21:03 6468 (0x1944)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:21:03 6468 (0x1944)
    Thread "State Message Processing Thread #0" id:6468 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    Started task 'Update NAP Restriction Error Summary'
    SMS_STATE_SYSTEM 03.02.2014 16:22:18
    4744 (0x1288)
    Task 'Update NAP Restriction Error Summary' completed successfully after running for 15 seconds, with status 0.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Will sleep until task 'Update Application Catalog Tables' is due in 60 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 60 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:23:20
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:4076 started
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:23:30 4076 (0x0FEC)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:23:30 4076 (0x0FEC)
    Thread "State Message Processing Thread #0" id:4076 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    Started task 'Update Application Catalog Tables'
    SMS_STATE_SYSTEM 03.02.2014 16:23:45
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** [24000][0][Microsoft][SQL Server Native Client 11.0]Invalid cursor state
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    Task 'Update Application Catalog Tables' failed after running for 19 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:6800 started
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:24:49 6800 (0x1A90)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:24:49 6800 (0x1A90)
    Thread "State Message Processing Thread #0" id:6800 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    Will sleep until task 'Update NAP Restriction Summary' is due in 16 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:04
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 16 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:04
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:26:20
    4744 (0x1288)
    Started task 'Update NAP Restriction Summary'
    SMS_STATE_SYSTEM 03.02.2014 16:26:30
    4744 (0x1288)
    Task 'Update NAP Restriction Summary' completed successfully after running for 15 seconds, with status 0.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)
    Will sleep until task 'Update Application Catalog Tables' is due in 139 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 139 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)

  • Oracle BI Write Back on NULL values  - Write Back Error

    Hi together,
    Write Back Error
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator
    I receive this message when I try to make a update of an null value in the database.
    update value on value or value to null works fine. So the XML Message is working on production.
    Is this a BUG?
    Regards,
    Stefan
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="SetWriteBackGKV">
    <XML>
    <writeBack connectionPool="QS_DWH_DB">
    <insert> </insert>
    <update>UPDATE QS_DWH.CKVB_HR_EXTERNAL SET CKVB_HR_EXTERNAL.GKV_SICKNESS_PERC = '@{c7}' WHERE CKVB_HR_EXTERNAL.D_TIME ='@{c5}'</update>
         </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>

    Hi,
    http://gerardnico.com/wiki/dat/obiee/write_back -- recheck your configuration following this link step by step with screen shots.
    Note : The Problem Occurred two ways,
    1. Problem your XMl Script
    2. If null value not present in your columns in your table in the database.The problem is occured.
    please check below steps.
    1. Are you using OCI or ODBC in your connection pool? Try it with OCI Call Interface 11g.
    2.Remove the commit tag from the XML file.
    <postUpdate>COMMIT</postUpdate>
    =============================================================================================================
    This xml file working for me.
    Insert--
    A couple of small adjustments got your XML to work here:
    <?xml version="1.0"; encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1";>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="WriteBack">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> INSERT INTO FACT (PRICE,PRODUCT_KEY,REGION_KEY,SALE_UNIT,TIMEKEY,SALES_QUOTA)
    values (@{c7},@{c8},@{c9},@{c10},@{c11},@{c5} ) </insert>
    <update> </update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The <writeBack> tag is written with a lower case "w".
    The "connetionPool" needs an upper case "P".
    Update--
    I think that you have to specify also an SQL statement for the update tag, for example:
    <?xml version="1.0"; encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1";>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="pmet_update">
    <XML>
    <writeBack connectionPool="PMTCOG">
    <insert> select null from dual</insert>
    <update> UPDATE XREF_PMET_URL SET URL= '@{c1}' WHERE API='@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The witeback wants for both the tags (<insert></insert> and <update></update>) an SQL Statement.
    Hope this help's
    Thanks
    Satya

  • Error in formula processing - List price has null value

    I have created a freight/special charge modifier where the qualifier in it is if terms = credit card, then execute.  The formula in this modifier is List Price * Numeric Constant.  However when I test this I get a Note:  Error in formula processing - List price has null value.  The List price is NOT null.  I'm not sure why I'm getting this error...

    Hi,
    Thanks for the update.
    Actually, my problem got resolved. After analyzing the debug file myself, I narrowed down the error as below
    Normal flow Formula Processing begin
    In ---Routine:QP_PREQ_GRP.Formula_Processing---
    PRICING_PHASE_ID: 2
    Processing Formula ID :7512
    Line Index: 1
    Start Formula...
    Formula Line Type = ML, Step = 1
    Before populating formula stepvalues temp table
    Other Exception ORA-01403: no data found
    Exception occurred. Formula value returned is
    Formula return status: U
    Formula Base Price :
    Error returned by QP_FORMULA_PRICE_CALC_PVT.Calculate
    And, as per the oracle support note "Error Returned By Qp_formula_price_calc_pvt.Calculate [ID 1282519.1]", after setting the profile value to N, the issue is resolved.
    With Regards,
    Vishal Majithia

  • Runtime error from null value

    I have a request to create a Function Module that will be assigned to an Action Box, which when executed will copy long text for Quality Notification tasks.  I have the module created and working, but after my code is executed a runtime error happens due to a null value being passed to a method in the SAP program QM07_UPDATE_ACTIONBOX.  It looks to me like it is trying to perform some kind of cleanup tasks, and is trying to delete a node tree that does not exist.  My code did nothing with any kind of node tree, so I am not sure how to avoid this runtime error.  My code works as desired, except for this error that occurs after my code is processed.  Any assistance would be greatly appreciated!  Below are more details from the error received...
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", nor was it propagated by a RAISING clause.  Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: "TREE_ACTIONBOX").   An object reference must point to an object (an instance of a class) before it can be used to access components.  Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
    Information on where terminated
        Termination occurred in the ABAP program "SAPLQM07" - in "QM07_UPDATE_ACTIONBOX".  The main program was "SAPLIQS0 ".
        In the source code you have the termination point in line 39 of the (Include) program "LQM07U12".  The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", but it was neither handled locally nor declared in the RAISING clause of its signature.
        The procedure is in program "SAPLQM07 "; its source code begins in line 1 of the (Include program "LQM07U12 ".
       28 * bei Tree werden Knoten und Items gelöscht bei Table Control wird
       29 * nur g_control_tab neu aufgebaut
       30   if g_tree = c_x.
       31 *---- Löschen der bestehenden Knoten und Items
       32
       33 * Tabelle der Knotenschlüssel erzeugen
       34     loop at g_node_tab into l_node.
       35       append l_node-node_key to l_dnodes_tab.
       36     endloop.
       37
       38 * Items
    >>>>>     call method tree_actionbox->delete_all_items_of_nodes
       40       EXPORTING
       41         node_key_table          = l_dnodes_tab
       42       EXCEPTIONS
       43         failed                  = 1
       44         cntl_system_error       = 2
       45         error_in_node_key_table = 3
       46         dp_error                = 4.

    Yes, I have searched the notes.  I used the keywords suggested in the dump...
    If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
    "SAPLQM07" or "LQM07U12"
    "QM07_UPDATE_ACTIONBOX"

  • Exchange Edge clone config import in Exchange Management shell throws error "You cannot call a method on a null-valued expression"

    Hi All,
    During the Coexistence of Exchange 2007 to 2010 Migration..
    I have create new Edge Scubscription in Edge Server 1 and Export the Edge Configuration File from Edge Server 1.
    While trying to Import Edge configuration to Edge Server 2 in Exchange Management Shell, I am getting the below Error.
    I have tried importing on both Exchange 2007 and 2010 Edge Servers, getting the same error.
    "Importing Edge configuration information Failed.
    Reason: You cannot call a method on a null-valued expression."
    Please help in resolving this issue...

    Also found the CloneLogFile as below : I masked my domain name as xxx for security reason..
    Get-TransportServer -Identity:xxx | Set-TransportServer -AntispamAgentsEnabled:$true -ConnectivityLogEnabled:$false -ConnectivityLogMaxAge '30.00:00:00' -ConnectivityLogMaxDirectorySize '250MB' -ConnectivityLogMaxFileSize '10MB' -ConnectivityLogPath 'C:\Program
    Files\Microsoft\Exchange Server\TransportRoles\Logs\Connectivity' -DelayNotificationTimeout '04:00:00' -ExternalDelayDsnEnabled:$true -ExternalDNSAdapterEnabled:$true -ExternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -ExternalDNSProtocolOption
    'Any' -ExternalDNSServers:$null -ExternalIPAddress:$null -ExternalDsnDefaultLanguage 'en-US' -ExternalDsnLanguageDetectionEnabled:$true -ExternalDsnMaxMessageAttachSize '10MB' -ExternalDsnSendHtml:$true -InternalDelayDsnEnabled:$true -InternalDNSAdapterEnabled:$true
    -InternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -InternalDNSProtocolOption 'Any' -InternalDNSServers:$null -InternalDsnDefaultLanguage 'en-US' -InternalDsnLanguageDetectionEnabled:$true -InternalDsnMaxMessageAttachSize '10MB' -InternalDsnSendHtml:$true
    -MaxConcurrentMailboxDeliveries '7' -MaxConcurrentMailboxSubmissions '20' -MaxConnectionRatePerMinute '1200' -MaxOutboundConnections '1000' -MaxPerDomainOutboundConnections '20' -MessageExpirationTimeout '2.00:00:00' -MessageRetryInterval '00:01:00' -MessageTrackingLogEnabled:$true
    -MessageTrackingLogMaxAge '30.00:00:00' -MessageTrackingLogMaxDirectorySize '1GB' -MessageTrackingLogMaxFileSize '10MB' -MessageTrackingLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking' -MessageTrackingLogSubjectLoggingEnabled:$true
    -OutboundConnectionFailureRetryInterval '00:30:00' -IntraOrgConnectorProtocolLoggingLevel 'None' -PickupDirectoryMaxHeaderSize '64KB' -PickupDirectoryMaxMessagesPerMinute '100' -PickupDirectoryMaxRecipientsPerMessage '100' -PickupDirectoryPath 'C:\Program
    Files\Microsoft\Exchange Server\TransportRoles\Pickup' -PipelineTracingEnabled:$false -ContentConversionTracingEnabled:$false -PipelineTracingPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\PipelineTracing' -PipelineTracingSenderAddress:$null
    -PoisonMessageDetectionEnabled:$true -PoisonThreshold '2' -QueueMaxIdleTime '00:03:00' -ReceiveProtocolLogMaxAge '30.00:00:00' -ReceiveProtocolLogMaxDirectorySize '250MB' -ReceiveProtocolLogMaxFileSize '10MB' -ReceiveProtocolLogPath 'C:\Program Files\Microsoft\Exchange
    Server\TransportRoles\Logs\ProtocolLog\SmtpReceive' -RecipientValidationCacheEnabled:$true -ReplayDirectoryPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Replay' -RoutingTableLogMaxAge '7.00:00:00' -RoutingTableLogMaxDirectorySize '50MB' -RoutingTableLogPath
    'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\Routing' -SendProtocolLogMaxAge '30.00:00:00' -SendProtocolLogMaxDirectorySize '250MB' -SendProtocolLogMaxFileSize '10MB' -SendProtocolLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpSend'
    -TransientFailureRetryCount '6' -TransientFailureRetryInterval '00:10:00'
    New-AcceptedDomain -DomainName 'xxx' -DomainType 'Authoritative' -Name 'xxx'
    Set-AcceptedDomain -DomainType 'Authoritative' -AddressBookEnabled:$true -Name 'xxx'
    Importing Edge configuration information Failed.
    Reason: You cannot call a method on a null-valued expression.

Maybe you are looking for

  • ICloud email account not working with outlook 2010

    How to I make iCloud and outlook 2010 work?

  • Error code 64 when trying to access a website

    I am trying to access my own photography website in Firefox (www.placesandseasons.com) on someone else's computer which still has Windows XP on it, & I get the error message below. Please note that there is no problem with the website host; I can acc

  • Iphone 5 wont restore error -1

    Hi all I tried updating to iOS 6.1 the other day and the iphone went into reveovery mode. Have tried to restore but am given the error code -1. I have tried all the troubleshooting steps including putting the phone into DFU mode, updating itunes, dis

  • BOR vs. CLASS

    Hi to everybody, I'm developping an application to manage authorization requests. I began it using BOR, for the reason that i'll manage different status creating them by SAP Workflow. When I started with the application, we use the BOR FORMABSENC lik

  • Java web server error when not connected to network

    If my laptop is not connected to a network, when I execute the java web server, it fails at start up with the exceptions listed below. When debugging, I need access only to local host, so it seemed reasonable to me that the web server should execute