#ixGetData Error: Invalid use of Null

Hi,
I am running a basic XL Reporter report and I am getting Other Data for the Territory.  It pulls through data for a records that have a territory but when it reaches one that is Null it creates the error above.
I presume I need to use the condition in 'Get  Other Data' but everything I try it doesn't like.
Does anyone have any idea's of what condition to use to return " " if Null.
I have tries standard SQL but it doesn't seem to work.
thanks
Mark

Hi Mark,
Hope you could get some ideas from those threads:
XL Reporter-How the Get Other Data works in formula builder?
ADD-ON - XL Reporter - Error: "#ixGetData Error: Invalid use of Null"
Re: Get Other Data
XLR-Get Other Data Error
Thanks,
Gordon

Similar Messages

  • Microsoft VBScript runtime error '800a005e' Invalid use of Null: 'clng' /mc/functions/rpt_downline.asp, line 187

    while I am in one of my sites I can access most pages except one and I get this message.

    "samspram" <[email protected]> wrote in
    message
    news:fifhoq$cr7$[email protected]..
    > Hi There
    > Thanks for the reply.
    > It is a MySQL DB, the fields I am referencing are TEXT
    datatypes and I
    > have
    > tried referencing them both left and right.
    > The data stored in the fields are comma separated
    strings e.g. 1, 2, 3, 4,
    > which I am loading into Session variables at login with
    the following
    > code:-
    > Session("allowedsubmenus") =
    > Left(rsLogin.Fields.Item("u_allowed_sub_menus").Value,
    > (Len(rsLogin.Fields.Item("u_allowed_sub_menus").Value) -
    1))
    > Session("allowedtopmenus") =
    > Left(rsLogin.Fields.Item("u_allowed_top_menus").Value,
    > (Len(rsLogin.Fields.Item("u_allowed_top_menus").Value) -
    1))
    > Session("allowedempmenus") =
    > Left(rsLogin.Fields.Item("u_allowed_emp_menus").Value,
    > (Len(rsLogin.Fields.Item("u_allowed_emp_menus").Value) -
    1))
    > Session("allowedcoys") =
    > Left(rsLogin.Fields.Item("u_allowed_companies").Value,
    > (Len(rsLogin.Fields.Item("u_allowed_companies").Value) -
    1))
    >
    > If I load the data into a variable before performing the
    Left() function
    > on
    > the field then it goes past the lines OK but when I try
    and use the
    > Session
    > variable it then throws the Invalid Use of Null error
    again.
    > i.e.
    > Dim varNum
    > varNum =
    (Len(rsLogin.Fields.Item("u_allowed_top_menus").Value) - 1)
    > Session("allowedsubmenus") =
    > Left(rsLogin.Fields.Item("u_allowed_sub_menus").Value,
    varNum)
    > Code will execute past the loading of sessions in this
    way but when I try
    > to
    > use the session later i.e. as with the Split() function
    I get the same
    > error
    > again.
    >
    > Regards
    > Brendan
    You are referencing the Recordset Column Value multiple
    times.
    try putting it into a variable first
    varValue = rsLogin.Fields.Item("u_allowed_sub_menus").Value
    then proceed with your operations using that variable
    Session("allowedsubmenus") = Left(varValue , (Len(varValue )
    - 1))

  • Invalid use of Null: 'CStr' - checkbox UPDATE - what the heck?!

    Jeesh...you just think you're beginning to understand things
    and then
    something "weird" happens! Anyway, what is wrong with this?:
    <input <%If
    (CStr((rsCustomer.Fields.Item("deletethis").Value)) =
    CStr("True")) Then Response.Write("checked=""checked""") :
    Response.Write("")%> name="deletethis" type="checkbox"
    id="deletethis"
    value="1" />
    I have this as part of an UPDATE form. If I place a tick in
    the checkbox,
    and submit it, it updates the record correctly as having a 1
    value (True).
    If I open the same UPDATE form, for the same record, it
    displays a check in
    the check box - great.
    However, if the "deletethis" in the user record is initially
    "False" (0),
    the default value for all of my records, and I submit the
    update form
    without changing the deletethis checkbox, it seems to be
    submitting a blank
    value which means that when I re-open the UPDATE form for
    this record, and
    submit the UPDATE again, I get this:
    Error Type:
    Microsoft VBScript runtime (0x800A005E)
    Invalid use of Null: 'CStr'
    //edit-customer.asp, line 838
    I'm sure this is because it is trying to submit a blank
    value, where it
    needs to be either 0 or 1. But why is it submitting
    "deletethis" as a blank
    value?
    When I check my SQL database, the deletethis field shows no
    value, not even
    the word NULL and certainly not a 1 or 0.
    Also, if one of my records already has a 1 value, and I
    change this in the
    UPDATE form, but "unchecking" the deletethis checkbox, again
    it submits a
    blank value! Nyaarg!
    For reference, here is my UPDATE code:
    <%
    If (CStr(Request("MM_update")) = "editcontactdetails") Then
    If (Not MM_abortEdit) Then
    ' execute the update
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_connNAME_STRING
    MM_editCmd.CommandText = "UPDATE dbo.tblCustomers SET
    firstnames = ?,
    surname = ?, billbusiness = ?, billaddress = ?, billaddress1
    = ?,
    billaddress2 = ?, billcity = ?, billregion = ?, billcountry =
    billpostcode = ?, billtelephoneday = ?, billmobile = ?,
    billtelephoneeve =
    ?, billemail = ?, billlocationinfo = ?, username = ?,
    password = ?,
    deletethis = ? WHERE customerID = ?"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202,
    1, 150, Request.Form("firstnames")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202,
    1, 100, Request.Form("surname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 202,
    1, 150, Request.Form("businessname")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 202,
    1, 100, Request.Form("billaddress")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 202,
    1, 100, Request.Form("billaddress1")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 202,
    1, 100, Request.Form("billaddress2")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param7", 202,
    1, 100, Request.Form("billcity")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param8", 5,
    1, -1, MM_IIF(Request.Form("billregion"),
    Request.Form("billregion"), null))
    ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param9", 202,
    1, 100, Request.Form("billcountry")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param10", 202,
    1, 75, Request.Form("billpostcode")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param11", 202,
    1, 75, Request.Form("billtelephoneday")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param12", 202,
    1, 50, Request.Form("billmobile")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param13", 202,
    1, 75, Request.Form("billtelephoneeve")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param14", 202,
    1, 150, Request.Form("billemail")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param15", 203,
    1, 1073741823, Request.Form("billlocationinfo")) '
    adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param16", 202,
    1, 25, Request.Form("username")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param17", 202,
    1, 25, Request.Form("password")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param18", 5,
    1, -1, MM_IIF(Request.Form("deletethis"),
    Request.Form("deletethis"), null))
    ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param19", 5,
    1, -1, MM_IIF(Request.Form("MM_recordId"),
    Request.Form("MM_recordId"),
    null)) ' adDouble
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "index.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>
    Please, can someone just tell me what it is, because I can't
    find an
    explanation in the documentation!
    Much appreciated
    Nath.

    Point taken David, ;o) but you must admit that Dreamweaver is
    not strictly
    marketed as such.
    "With Dreamweaver 8, web developers go from start to finish,
    creating and
    maintaining basic websites to advanced applications that
    support best
    practices and the latest technologies."
    (source:
    http://www.adobe.com/uk/products/dreamweaver/)
    Oh, and then there's the price tag! :-o
    I personally think they could have marketed "Notepad" a
    little better! :o)
    Nath.
    "David Powers" <[email protected]> wrote in message
    news:ej25kb$7nv$[email protected]..
    > Lionstone wrote:
    >> DW offers a helping hand when it comes to database
    integration, but you
    >> should expect to do the bulk of the work yourself.
    Beyond a simple
    >> insert/update/delete of a single record in a single
    table, it's all up to
    >> you.
    >
    > Hear, hear. If only more people realized that this is
    the case, they would
    > find Dreamweaver a lot easier to use.
    >
    > --
    > David Powers
    > Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    >
    http://foundationphp.com/

  • Unable to connect to XL Reporter (Invalid use of Null)

    I am facing problem to connect to XL reporter (2007B, PL 15). Would appreciate if anybody who encountered similar problem before can give advise on the possible solution. Thank you.
    Unable to connect to XL Reporter.
    Error! User authentication failed!
    Cause: Invalid use of Null.

    I have done the recommendations on those threads, but now the error changed. Upon connecting the error message is:
    There was one or more execution errors!
    Source: Microsoft OLE DB Provider for SQL Server
    Message: Must declare the scalar variable "@strRow4AllCommonDimensions".
    Script: SBOOEM\MSSQL\ixPartnerObjects.sql(5710)
    (Logfile: DblUtilExec.Log)
    Then, the following error message is displayed:
    Unable to connect to XL Reporter.
    Error! User authentication failed!
    Cause: ExtCode -1
    I tried the ConnectionManager.exe but problem persists. If you have any other suggestions please let me know. Thank you.

  • Checkboxes - invalid use of CStr?

    What is wrong with this for a radio group? My field
    "vatregistered" is an
    INT field in a SQL database and I'm using ASP/VBScript.
    <input <%If
    (CStr((rsDetails.Fields.Item("vatregistered").Value)) =
    CStr("1")) Then Response.Write("checked=""checked""") :
    Response.Write("")%>
    name="vatregistered" type="radio" value="1" />
    Yes
    <input <%If
    (CStr((rsDetails.Fields.Item("vatregistered").Value)) =
    CStr("0")) Then Response.Write("checked=""checked""") :
    Response.Write("")%>
    name="vatregistered" type="radio" value="0" checked="checked"
    />
    No
    This produces the following error:
    Error Type:
    Microsoft VBScript runtime (0x800A005E)
    Invalid use of Null: 'CStr'
    What gives? I just used the DW wizard to create this, so I'm
    puzzled.
    Thanks again.
    Regards
    Nath.

    Had to ditch it and change to check boxes!
    Radio groups - nightmare for an INSERT or UPDATE!
    Nath.
    "tradmusic.com" <[email protected]> wrote in
    message
    news:[email protected]...
    > I've hand coded it to this:
    >
    > <input <%If
    ((rsDetails.Fields.Item("vatregistered").Value) = 1) Then
    > Response.Write("checked=""checked""") :
    Response.Write("")%>
    > name="vatregistered" type="radio" value="1" />
    > Yes
    > <input <%If
    ((rsDetails.Fields.Item("vatregistered").Value) = 0) Then
    > Response.Write("checked=""checked""") :
    Response.Write("")%>
    > name="vatregistered" type="radio" value="0" />
    > No
    >
    > But, whilst this doesn't produce an error, when the page
    re-loads (this is
    > all within an UPDATE page which submits to itself), the
    values aren't
    > displayed for the checkbox. In other words, they are
    both blank where one
    > of them should be checked.
    >
    > Can anyone see what's wrong with the above?
    >
    > This is a basic UPDATE form with a radio group - Yes or
    No. This stores
    > to a record in the database.
    > When the page initially loads, I'd like the radio group
    to display the
    > value held in database (either yes/no - my database
    field is SQL "bit"
    > type).
    >
    > Hope someone can help. Thanks.
    >
    > Thanks
    > Nath.
    >
    >
    > "tradmusic.com" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> What is wrong with this for a radio group? My field
    "vatregistered" is
    >> an INT field in a SQL database and I'm using
    ASP/VBScript.
    >>
    >> <input <%If
    (CStr((rsDetails.Fields.Item("vatregistered").Value)) =
    >> CStr("1")) Then
    Response.Write("checked=""checked""") :
    >> Response.Write("")%> name="vatregistered"
    type="radio" value="1" />
    >> Yes
    >> <input <%If
    (CStr((rsDetails.Fields.Item("vatregistered").Value)) =
    >> CStr("0")) Then
    Response.Write("checked=""checked""") :
    >> Response.Write("")%> name="vatregistered"
    type="radio" value="0"
    >> checked="checked" />
    >> No
    >>
    >> This produces the following error:
    >>
    >> Error Type:
    >> Microsoft VBScript runtime (0x800A005E)
    >> Invalid use of Null: 'CStr'
    >>
    >> What gives? I just used the DW wizard to create
    this, so I'm puzzled.
    >> Thanks again.
    >>
    >> Regards
    >> Nath.
    >>
    >
    >

  • Error : CGImageCreate: invalid image colorspace: NULL.

    Hi,
    I am unable to launch Intellij IDEA from command line using ./idea.sh on my Mac (OS 10.7.4). The intellij IDEA flash screen comes up after which I am seeing the following error and the application hangs -- the IDEA does not open. I have been trying to get over this for a long time but no help. Any help is appreciated.
    bash-3.2$ ./idea.sh
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextGetCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextSetBaseCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextGetCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextSetBaseCTM: invalid context 0x0
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    2012-12-07 17:37:34.623 java[1789:c07] CWindow's _nativeShow encountered error: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    bash-3.2$
    Thanks,
    Rahul.

    My input certainly wasn't intended to ba sarcastic, so please forgive me if it seemed so.
    Seroiusly, always do a search before updating, http://discussions.apple.com/search.jspa?objID=f1201&search=Go&q=update+problem, NI is flaky at best IMHO, did you heck with them yet to see if a patch is available?
    Always wait a few weeks before updating, a reinstall is a headache, goodluck!

  • Invalid http response: null - Error in SOAP sync receiver

    Hi,
    We are getting the following error in synchronous SOAP receiver connection.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid http response: null
    note: This inteface is working fine without error in the subsequent run.
    Anyone please help me out in this...
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid http response: null</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi Rajendra,
    The same issue I am also facing in production system.
    In my case the all the requests are failing after an IIS7.5  upgrade of the Application in production.
    The strange thing is that except SAP rest all the applications are able to submit requests and getting proper response also.
    We are using a https communication and private key certificate authentication in SAP PI.
    Does it look like a PI issue or IIS upgrade  is causing some issue.
    Please suggest.
    Thanks,
    Ashish

  • ORA-00902: invalid datatype comile error while using CAST function

    Hi everyone,
    I'm getting ORA-00902: invalid datatype compilation error while using CAST function.
    open ref_cursor_list for select empName from TABLE(CAST(part_t AS partnumberlist));
    The partnumberlist and ref_cursor_list is declared in the Package spec as given below.
    TYPE ref_cursor_list IS REF CURSOR;
    TYPE partnumberlist IS TABLE OF emp.empName%TYPE;
    The error points the partnumberlist as invalid datatype in TOAD because of this i'm unable to compile the package.
    Any suggestion
    Thanks and regards
    Sathish Gopal

    Here is my code for
    package Spec
    CREATE OR REPLACE PACKAGE "HISTORICAL_COMMENTZ" AS
    TYPE prior_part_data_record IS RECORD (
    prior_part_row_id PGM_RPLCMNT_PART.PR_PART_ROW_S_ID%TYPE,
    prior_pgm_chng_s_id PGM_RPLCMNT_PART.PR_PGM_CHNG_S_ID%TYPE
    TYPE parts_list IS TABLE OF prior_part_data_record;
    --TYPE parts_list IS TABLE OF NUMBER;
    TYPE partnumberlist IS TABLE OF PGM_RPLCMNT_PART.PR_PART_ROW_S_ID%TYPE;
    TYPE partnumber_cursor IS REF CURSOR;
    TYPE comment_record IS RECORD (
    pgm_s_id                     PGM_PART_CMNT.PGM_S_ID%TYPE,
    part_row_s_id                PGM_PART_CMNT.PART_ROW_S_ID%TYPE,
    pgm_chng_s_id                PGM_PART_CMNT.PGM_CHNG_S_ID%TYPE,
    cmnt_txt                     PGM_PART_CMNT.CMNT_TXT%TYPE,
    cmnt_dt                     PGM_PART_CMNT.CMNT_DT%TYPE,
    updt_rsrc_id                PGM_PART_CMNT.UPDT_RSRC_ID%TYPE
    TYPE comment_list IS TABLE OF comment_record;
    global_pgm_s_id INTEGER := 0;
    global_part_row_s_id INTEGER := 0;
    err_num NUMBER := 999999;
    err_msg VARCHAR2 (250);
    PROCEDURE getComments (
    pgm_s_id IN NUMBER,
    part_row_s_id IN NUMBER,
    partnumber_cursorlist out partnumber_cursor);
    END;
    Package Body
    CREATE OR REPLACE PACKAGE BODY HISTORICAL_COMMENTZ
    AS
    FUNCTION getPriorPart
    (param_prior_pgm_chng_s_id IN PGM_RPLCMNT_PART.PR_PGM_CHNG_S_ID%TYPE,
    return_prior_part_data_record IN OUT prior_part_data_record
    RETURN INTEGER
    IS
    retVal INTEGER;
    prior_part_row_id INTEGER;
    prior_pgm_chng_s_id INTEGER;
    local_prior_part_data_record prior_part_data_record;
    BEGIN
    SELECT PR_PART_ROW_S_ID AS prior_part_row_id, PR_PGM_CHNG_S_ID AS prior_pgm_chng_s_id
    INTO local_prior_part_data_record
    --SELECT PR_PART_ROW_S_ID INTO retVal
    FROM PGM_RPLCMNT_PART
    WHERE PGM_S_ID = global_pgm_s_id AND CUR_PGM_CHNG_S_ID = param_prior_pgm_chng_s_id;
    return_prior_part_data_record := local_prior_part_data_record;
    retVal := 0;
    RETURN retVal;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    retVal := -1;
    RETURN retVal;
    WHEN OTHERS
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    retVal := -1;
    RETURN retVal;
    END getPriorPart;
    FUNCTION getComment (found_parts_list IN parts_list, comments OUT comment_list)
    RETURN INTEGER
    IS
    CURSOR init_cursor
    IS
    SELECT PGM_S_ID,PART_ROW_S_ID,PGM_CHNG_S_ID,CMNT_TXT,CMNT_DT,UPDT_RSRC_ID
    FROM PGM_PART_CMNT WHERE 1 = 2;
    retVal INTEGER;
    indexNum PLS_INTEGER;
    local_part_record prior_part_data_record;
    local_comment_record comment_record;
    local_part_row_s_id NUMBER;
    i PLS_INTEGER;
    BEGIN
    OPEN init_cursor;
    FETCH init_cursor
    BULK COLLECT INTO comments;
    i := 0;
    indexNum := found_parts_list.FIRST;
    WHILE indexNum IS NOT NULL
    LOOP
    local_part_record := found_parts_list(indexnum);
    local_part_row_s_id := local_part_record.prior_part_row_id;
    SELECT PGM_S_ID,PART_ROW_S_ID,PGM_CHNG_S_ID,CMNT_TXT,CMNT_DT,UPDT_RSRC_ID
    INTO local_comment_record FROM PGM_PART_CMNT
    WHERE PGM_S_ID = global_pgm_s_id
    AND PART_ROW_S_ID = local_part_row_s_id;
    comments(i) := local_comment_record;
    i := i + 1;
    END LOOP;
    RETURN retval;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    RETURN retval;
    WHEN OTHERS
    THEN
    err_num := SQLCODE;
    err_msg := 'SQL Error ' || SUBSTR (SQLERRM, 1, 250);
    DBMS_OUTPUT.put_line ('SQLERROR = ' || err_msg);
    RETURN retval;
    END getComment;
    PROCEDURE getComments
    pgm_s_id IN NUMBER,
    part_row_s_id IN NUMBER,
    partnumber_cursorlist OUT partnumber_cursor)
    IS
    comment_recordlist comment_record;
    retPartnumberlist partnumberlist;
    found_parts_list parts_list;
    local_part_record prior_part_data_record;
    is_more_parts BOOLEAN;
    driver_chng_s_id NUMBER;
    num_parts NUMBER;
    retVal NUMBER;
    comments comment_list;
    returnPartnumberlist partnumberlist;
    iloopCounter PLS_INTEGER;
    inx1 PLS_INTEGER;
    part_t partnumberlist :=partnumberlist(100,200,300);
    CURSOR part_list_init_cursor
    IS
    SELECT PR_PART_ROW_S_ID,PR_PGM_CHNG_S_ID FROM PGM_RPLCMNT_PART WHERE 1 = 2;
    CURSOR inIt_cursor
    IS
    SELECT 0 FROM DUAL WHERE 1 = 2;
    BEGIN
    DBMS_OUTPUT.ENABLE (5000000);
    global_pgm_s_id := pgm_s_id;
    global_part_row_s_id := part_row_s_id;
    SELECT PART_ROW_S_ID AS prior_part_row_id, PR_PGM_CHNG_S_ID AS prior_pgm_chng_s_id
    INTO local_part_record
    FROM PGM_RPLCMNT_PART
    WHERE PGM_S_ID = global_pgm_s_id AND PART_ROW_S_ID = global_part_row_s_id AND
    CUR_PGM_CHNG_S_ID IN (SELECT MAX(CUR_PGM_CHNG_S_ID) FROM PGM_RPLCMNT_PART WHERE
    PGM_S_ID = global_pgm_s_id AND PART_ROW_S_ID = global_part_row_s_id
    GROUP BY PART_ROW_S_ID);
    OPEN part_list_init_cursor;
    FETCH part_list_init_cursor
    BULK COLLECT INTO found_parts_list;
    -- Add the existing part to the found list
    found_parts_list.EXTEND;
    found_parts_list(1) := local_part_record;
    driver_chng_s_id := local_part_record.prior_pgm_chng_s_id;
    num_parts := 1;
    is_more_parts := TRUE;
    WHILE (is_more_parts) LOOP
    retVal := getPriorPart(driver_chng_s_id,local_part_record);
    IF (retVal != -1) THEN
    found_parts_list.EXTEND;
    num_parts := num_parts + 1;
    found_parts_list(num_parts) := local_part_record;
    driver_chng_s_id := local_part_record.prior_pgm_chng_s_id;
    ELSE
    is_more_parts := FALSE;
    END IF;
    END LOOP;
    --num_parts := getComment(found_parts_list,comments);
    OPEN init_cursor;
    FETCH init_cursor
    BULK COLLECT INTO returnPartnumberlist;
    num_parts := found_parts_list.COUNT;
    FOR iloopCounter IN 1 .. num_parts
    LOOP
    returnPartnumberlist.EXTEND;
    returnPartnumberlist(iloopCounter) := found_parts_list(iloopCounter).prior_part_row_id;
    END LOOP;
    retPartnumberlist := returnPartnumberlist;
    open
    *          partnumber_cursorlist for select PR_PART_ROW_S_ID from TABLE(CAST(retPartnumberlist AS historical_commentz.partnumberlist));*                              
    DBMS_OUTPUT.put_line('Done....!');
    EXCEPTION
    some code..............................
    END getComments;
    END HISTORICAL_COMMENTZ;
    /

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • Error connecting using JCO.Client: null

    Hi,
    I created a WD app which uses  the RFC FM.  I followed How-To-build-webdynpro.pdf document to create the WD and trying to deploy and run, I see the view page but when I trigger the action via button UI element I get following error as exception in the try catch block of execute method
    In the NWA I see
    Could not create JCOClientConnection for logical System: 'WD_MODELDATA_DEST' - Model
    An exception has occurred: Erorr accessing cache [region]='XCM_SESSION_SCOPE'.
    [EXCEPTION]
    com.sap.isa.core.cache.Cache$Exception: Cannot return access for region 'XCM_SESSION_SCOPE'. Cache is not ready
    I'm using following existing JCO definition by configuring them with correct parameters.  Tested them successfully
    WD_RFC_METADATA_DEST
    WD_MODELDATA_DEST
    What am I missing?  In SM04 tcode I see 2 connections are opened with 2 Megabyte not released for a long time.  I think if connections are released correctly it should drop to 1 megabyte.  Is there anything that I need to do just after execute method as shown below (I have replaced function module with <FM> in below code)
    try {
             wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
         } catch(Exception exception) {
              msgMgr.reportException(exception.getLocalizedMessage(), false);
          wdContext.nodeOutput().invalidate();
          msgMgr.reportSuccess("Success");
    The error is in the catch block which is displayed on the view page.
    Thanks
    Praveen
    I modified the above code and put in finally block to close the connections as follows, please let me know if this is OK.  I still get error message as "Error connecting using JCO.Client: null" but no additional connections in the SM04 after adding finally block.
    try {
             wdContext.node<FM>_Input().current<FM>_Get_InputElement().modelObject().execute();
         } catch(Exception exception) {
              msgMgr.reportException(exception.getLocalizedMessage(), false);
         }finally {
              // disconnect the connection
              wdContext.<FM>_Get_InputElement().modelObject().modelInstance().disconnectIfAlive();     
    Edited by: Praveen11 on Oct 5, 2009 9:06 AM

    Thanks Satish.
    The issue is resolved.  I think it was to do with permission, as I was running directly from NWDS deploy and run the session didn't have proper authorisation or something that was causing this error.
    When I copy pasted the URL in the correct browser session window I got no error and function module was successfully executed.   However the issue now is that values are not showing up in the view may be to do with mapping context or model  I'll review and post back as different thread.
    Thanks
    Praveen

  • Keep getting an error message when trying to send some texts to valid numbers, "Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code.

    Does anyone know why I keep getting an error  message, "Error invalid number. Please re-send using a valid 10 digit mobile number or valid short code.  The numbers I'm texting to, are valid numbers.

    Did you ever get resolution to this problem?
    My coworker has the identical issue, including the number (+1 (1)(216)116-11) in the error reply.

  • Error connection using  JCO.Client :null

    Hi,
    I have small doubt in JCO connection, can any one help me.
    In WebDynpro  application some time we are getting exception like Error connection using JCO.client : null.
    Connection :200 we are maintained in JCO configuration.
    If I call one RFC useing JCO it will created a session or connection to ECC server, because we are getting exception in server too many sessions to ECC server.  
    Write now we are not using any code to close the connection like.
    SaveModel svModel = (SaveModel)WDModelFactory.getModelInstance(SaveModel.class);
    svModel.disconnectIfAlive();
    If we use the above code it will close the connection or sessions.
    Is it recommended to write the code in every RFC calls or  in final block of all RFC calls ?
    Regards,
    Satya.

    Hi Satya
    /message/1944647#1944647 [original link is broken]
    /message/8499#8499 [original link is broken]
    Please go through this link.Hope it will be helpful for you
    Regards
    Ruturaj

  • WDDynamicRFCExecuteException: Error connecting using JCO.Client: null

    Hi
    This is a common problem,I have seen many threads , but following them did not solve my problem.
    I have the JCOs tested successful from WD Admin. When I create a sample WDJ application with RFC model and deploy it to the server, I get
    Exception:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecution: Error connecting using JCO.Client: null.
    I have checked my binding , I have only one input parameter and the code is
          wdComponentAPI.getMessageManager().reportSuccess("Inside wdInit in Component ctrller");
          Z_Plm44_Obsoleteimpactanalysis_Input input = new Z_Plm44_Obsoleteimpactanalysis_Input();
         wdContext.nodeZ_Plm_Input().bind(input);
         wdContext.createZ_Plm_InputElement(input).setV_Type(wdContext.currentZ_Plm_InputElement().getV_Type());
    Also I have implemented closing the connection
    disconnectifalive
    I contacted the basis team... they tell me that everything is fine from their end. they have tried increasing the JCO connection pools.
    Thanks for your help in advance
    Karthika

    Hi Karthika
    Check this pdf and try to catch WDDynamicRFCExecution in catch block.
    Please put your code in try catch and also import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecution in your code;
    http://www.sappro.com/downloads/WebDynproJava.pdf
    Re: User has no RFC authorization for function group.
    Hope this will help you.
    thanks
    Arun Jaiswal

  • Error in Connecting to BAPI (Error connecting using JCO.Client: null)

    Hi,
        I am trying to connect to a BAPI to extract data. However, I am getting this error
        Error connecting using JCO.Client: null
        Pls explain the meaning of the error and solution to the problem
    TIA
    Himanshu

    Hi,
    This means you are getting error while executing your model. its not able to use the JCO's.
    as I asked previously check your JCO status... its up and running????
    Here are some threads having same problem
    URGENT :Error connecting using JCO.Client: null
    Model and MetaData configarations  in JCO Connection
    Exception while executing
    PradeeP
    Edited by: pradeep bondla on Jul 31, 2008 11:53 AM

Maybe you are looking for

  • Download Window Does Not Close Upon Completion of Download

    I download a file, the Download Window opens, and asks where I want the file (I set that Tool-Option), but when it is done, the window does not close, even though the Option is set telling it to close when the download is complete == This happened ==

  • Mail 3.0 - What a disappointment!

    I spent 3 days with several attempts to solve the IMAP and POP problems regarding sending and receiving mails in my 10 mail-accounts, nothing worked out! You know what, forget about all the trys regarding ports aso.! I´ve downloaded Thunderbird: .Mac

  • Embedded image file?

    I was too optimistic... but still no sign of being able to email an image file as attachment! This is what receivers see!!!

  • Insertion will increase memory usage

    Hi, I notice that whenever my application does an insert, oracle DB will increase its consumption. As described in numerous posts in the forum, the memory is not released after the operation stops. However, when the application calls the connection.c

  • Can't backup my ipod?

    My old computer got fried and I was able to save very little. I am now attempting to sync my IPod onto the new machine and it is not working. I don't know what ITunes problem is, but it refuses to do a data backup of my IPod. I need to backup my IPod