ERROR_CODE 41046 invalid parameter for set_item_property

Hi,
I've got a form with 3 blocks. Before the active block an indicator is shown so that it is clear for the user which block is active. The indicator actually is nothing more then a long text_field with black background.
3 of these indicators are placed on the form of which only one at a time can be visible. (property=visible)
In the when-new-block-instance trigger I try to show one and hide the other 2 leading to following code :
  SET_ITEM_PROPERTY('BK_LIST.INDICATOR1',VISIBLE,'PROPERTY_FALSE');
  SET_ITEM_PROPERTY('BK_LIST2.INDICATOR2',VISIBLE,'PROPERTY_TRUE');
  SET_ITEM_PROPERTY('BK_LIST3.INDICATOR3',VISIBLE,'PROPERTY_FALSE');This gives the FRM-41046 error message and I don't see why. I already tried a find_item on the given item names and that worked. I tried to use the item_id instead of the item_name but that gives errors as well.
Thanks for your help,
Kris
Message was edited by:
[email protected]

Just looked at on-line help. You cannot set the visible property on the current item. You may need to go_item somewhere else before running those commands.

Similar Messages

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • VO Substitution : JBO-25006 : Invalid parameter value passed for source

    Hello All,
    I want to add 2 new fields (attribute columns) to an existing VO for which I am trying to use VO substitution. I have followed these steps.
    1.     Downloaded all the class files from server to local machine
    2.     Opened an OA project and extended the VO by changing sql query to add 2 attribute columns
    3.     Added 2 transient VO attributes to map them to the added fields in sql query
    4.     Create a BC4J substitution and imported jpx file using jpximporter
    While opening the page which consisted the original VO that I extended (creditRequestsVO), I am getting below error. Appreciate if anyone can throw any light on this.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Edited by: Bhavesh J Shah on Feb 22, 2010 1:58 AM

    Hi Rama,
    Parameter being passted to LeadHeaderDetailsVO is not right. Check the parameter values that are being passed,wether there are right or not
    Thanks
    Sandeep

  • Invalid value for parameter error when value is in list of allowed parameters

    I have some documents with a lot of paragraph styles that have been organized into groups. I have a simple script that is meant to ungroup these styles and delete the now-empty groups.
    Code:
    #target indesign
    var myDoc = app.activeDocument;
    if (myDoc.paragraphStyleGroups.length > 0)
        myDoc.paragraphStyleGroups.everyItem().paragraphStyles.everyItem().move(LocationOptions.AT_END, myDoc);
        myDoc.paragraphStyleGroups.everyItem().remove();
    alert("Done")
    The error I receive is (emphasis mine):
    JavaScript Error!
    Error Number: 30477
    Error String: Invalid value for parameter 'reference' of method 'move'. Expected ParagraphStyle, ParagraphStyleGroup, CharacterStyle, CharacterStyleGroup, CellStyle, CellStyleGroup, TableStyle, TableStyleGroup, Document or Application, but received Document.
    As you can see, my pickle is that my value is of an allowed type. This only happens in some documents, and there's nothing that obviously distinguishes those documents from the ones in which it works.
    One thing I've noticed is that the error sometimes takes a while to appear (a minute or so), but none of the styles have been moved once I click OK. So, I don't know if it's specific to one style. I doubt it, only because other documents with the same style set work.
    Can anyone shed any light on what this error could mean in this context? I definitely have an activeDocument, so what could cause a Document to not be a Document?
    Any help much appreciated!

    Hi,
    It occurs when 2 or more styles have the same name, probably.
    Jarek

  • Invalid Parameter Bindings

    Hi there!
    I'm writing a Stock Take (Inventory Control) system. I need to create some temporary rows from one table into another in order to do some calculations.
    I'm trying to add rows to a STOCK_TmpQOH table. I get the values from a STOCK_TmpQOH table and then just add a few columns' values. In VB it would have been easy... Insert into using a Select... but now... in JSC one need to read the NEXT ID each time... so I cant just use the normal autonumber... anyways...
    ...basically I have rows in Table X.... I need to copy it to Table Y and add a few columns...
    HERE's the ERROR:
    Cannot add new Stock Takejava.sql.SQLException: [sunm][SQLServer JDBC Driver]Invalid parameter binding(s).
    HEREs my CODE:
    ~~~~~~~~~~
    public String cmdNext_action() {
    //        // bind trip detail fields
    //        // GET DATA
    //        java.sql.Date date = (java.sql.Date) tripDataProvider.getValue("TRIP.DEPDATE");
    //        dateCal.setValue(date);
    //        // SAVE DATA
    //        java.util.Date uDate = (java.util.Date) dateCal.getValue();
    //        if ( uDate != null ) {
    //            java.sql.Date date = new java.sql.Date( uDate.getTime() );
    //            tripDataProvider.setValue("TRIP.DEPDATE", date);
            //Convert to the correct format IN STRING!
            Date myDate = calSDate.getSelectedDate();
            Format formatter;
            formatter = new SimpleDateFormat("dd/MM/yyyy");
            String sDate = formatter.format(myDate);
            String sReturn;
            if (stock_stakeDataProvider.canAppendRow()) {
                try {
                    //Set the NEXT step...
                    int iStep = getSessionBean1().getSTakeStep().intValue();
                    iStep++;
                    Integer x = Integer.valueOf(iStep);
                    getSessionBean1().setSTakeStep(x);
                    //ADD THE NEW STAKE
                    //=================
                    RowKey rowkey = stock_stakeDataProvider.appendRow();
                    stock_stakeDataProvider.setCursorRow(rowkey);
                    stock_stakeDataProvider.setValue("STakeID", rowkey, getApplicationBean1().getNextSTakeID());
                    stock_stakeDataProvider.setValue("LocID", rowkey, getSessionBean1().getLocID());
                    stock_stakeDataProvider.setValue("SDate", rowkey, sDate);
                    stock_stakeDataProvider.setValue("Status", rowkey, new Integer(1));
                    stock_stakeDataProvider.setValue("Step", rowkey, getSessionBean1().getSTakeStep());
                    //Set the NEXT STakeID in memory
                    //  must happen BEFORE update - else its TOO large
                    getSessionBean1().setSTakeID((Integer) getApplicationBean1().getNextSTakeID());
                    stock_stakeDataProvider.commitChanges();
                    //ADD TMP QOH for STAKE
                    //=====================
                    //Default value for new QOH = 0
                    Double dQOH = new Double(0.00);
                    //Double dQOHold;
                    if (stock_qohDataProvider.getRowCount() > 0) {
                        stock_qohDataProvider.cursorFirst();
                        do {
    //                        System.out.println(">> " + stock_qohDataProvider.getValue("StockID"));
                            //For each Stock in QOH for this Location
                            //  add a TMP QOH record
                            if (stock_tmpqohDataProvider.canAppendRow()) {
                                try {
                                    RowKey rowkey2 = stock_tmpqohDataProvider.appendRow();
                                    stock_tmpqohDataProvider.setCursorRow(rowkey2);
                                    stock_tmpqohDataProvider.setValue("TempID", rowkey2, getApplicationBean1().getNextTempID());
                                    stock_tmpqohDataProvider.setValue("STakeID", rowkey2, getSessionBean1().getSTakeID());
                                    stock_tmpqohDataProvider.setValue("StockID", rowkey2, stock_qohDataProvider.getValue("StockID"));
                                    //Double dQOHold = Double.valueOf(rs.getString("QOH"));
                                    stock_tmpqohDataProvider.setValue("QOH_Old", rowkey2, (Double) stock_qohDataProvider.getValue("QOH"));
                                    stock_tmpqohDataProvider.setValue("QOH", rowkey2, dQOH);
                                    stock_tmpqohDataProvider.setValue("SDate", rowkey2, sDate);
                                    stock_tmpqohDataProvider.commitChanges();
                                } catch (Exception ex) {
                                    log("Cannot add Temp Stock Take", ex);
                                    error("Cannot add Temp Stock Take" + ex.getMessage());
                                    sReturn = "stake1";
                        } while (stock_qohDataProvider.cursorNext());
                    info("New Stock Take added");
                    sReturn = "stake2";
                } catch (Exception ex) {
                    log("Cannot add new Stock Take", ex);
                    error("Cannot add new Stock Take" + ex.getMessage());
                    sReturn = "qoh";
            } else {
                log("Cannot add New Stock Take");
                error("Cannot add New Stock Take");
                sReturn = "qoh";
            return sReturn; //sReturn
        }Thanks SO much for the help!

    Hi,
    there is an Oracle style using ":varname" but this wont work with Server. When you created the ADF BC project, did you make sure that the project uses SQL92 as its flavor and not Oracle ?
    Frank

  • LOV with FRM-41042: No such property for SET_ITEM_PROPERTY

    Hi all,
    I have a field (not a database item of the block ) of LOV object and a button next to it to trigger to the LOV list item.
    However, whenever, i click on the button, FRM-41042: No such property for SET_ITEM_PROPERTY will be prompted. Though the list item do appear and the item can be set into the field.
    Here is the procedure called by the when-button-pressed trigger of the button.
    PROCEDURE press_lov_btn IS
    v_lov_name           varchar2(30);
         v_sel                              boolean;
         l_target_item      varchar2(100);
    BEGIN
    l_target_item := NAME_IN ( 'SYSTEM.TRIGGER_BLOCK' ) || '.' ||
    GET_ITEM_PROPERTY ( NAME_IN ( 'SYSTEM.TRIGGER_ITEM' ), PREVIOUSITEM );
    IF l_target_item != NAME_IN ( 'SYSTEM.CURSOR_ITEM' ) THEN
    GO_ITEM ( l_target_item );
         v_lov_name := get_item_property ( l_target_item, lov_name );
    END IF;
         v_sel := show_lov ( v_lov_name );
    if not v_sel then
         raise form_trigger_failure;
    end if;
    END press_lov_btn;
    Any one know the error is due to the setting in the field or that in the button?????
    Thanks a lot.

    Your code to call a lov is a little complicated and errornous (as it depends on the item-ordering). The following code it a little easier (in my eyes). It depends just on naming-conventions, the button-name has to be 'BT_XXX' where XXX is the name of the item the lov is attached to.
    PROCEDURE PR_LOV IS
      vcItem VARCHAR2(61):=REPLACE(NAME_IN ('SYSTEM.TRIGGER_ITEM'), '.BT_', '.');
      itItem  ITEM;
    BEGIN
      itItem:=FIND_ITEM(vcItem);
      IF NOT ID_Null(itItem) THEN
        -- Navigate to the item
        GO_ITEM(vcItem);
        -- Show its lov
        DO_KEY('LIST_VALUES');
      ELSE
        message('invalid item ' || vcItem);
        RAISE FORM_TRIGGER_FAILURE;
      END IF;
    END;Hope this helps.

  • Invalid parameter value Error while Extending PoReqDistributionsVO

    Hi,
    My Requirement is to restrict user from enetring certain values in a field in iProcurement Page based on some condition. The attribute on which I have to place the validation is CodeCombinationId and the VO name is PoReqDistributionsVO. So, I extended the VO and generated the VORowImpl class for the extended VO. Please note that I have extended the VO just to override the setter method for the CodeCombinationId in the VORowImpl. I did not change any other thing on the VO. Once I deploy the code, I am getting the following error for the first time:
    ## Detail 0 ##
    oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value PoReqDistributionsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    And then if I try to open the page again, it gives me multiple distribution lines. (Say for example I have only one distribution line for the requistion line and my distribution table PO_REQ_DISTRIBUTIONS_ALL has total 20 records, then all the 20 records are getting displayed in the front end.)
    So, clearly after I extended the VO, the viewlink is not able to identify the viewlink.
    I went through the following thread:
    oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value
    As suggested in the therad, I thought of copying all the view link related methods from the original VO files. But, I could not get any Viewlink related information in any of the three seeded files PoReqDistributionsVO.xml, PoReqDistributionsVOImpl.class and PoReqDistributionsVORowImpl.class. But I can find one View Link oracle.apps.icx.por.req.server.ReqLineToDistributionsVL in teh server which is linking PoRequisitionLinesVO to PoReqDistributionsVO.
    Could anyone suggest me what I need to do to resolve the issue.
    Edited by: 892480 on Oct 20, 2011 8:13 AM

    Hi Gurus,
    Any suggestion on the above issue?

  • PL/SQL:- Invalid Parameter binding

    While calling a pl/sql function returning table type is shows error:
    Invalid parameter binding
    Parameter name: ""

    The problem is coming from .NET and most probably for NULL values.
    SQL> set serverout on
    SQL> create TYPE TEMP_TABLE AS OBJECT (
      2  COLUMN1 VARCHAR2(128),
      3  COLUMN2 VARCHAR2(32),
      4  COLUMN3 VARCHAR2(128));
      5  /
    Type created.
    SQL> create TYPE TEMP_TABLE_REC AS TABLE OF TEMP_TABLE;
      2  /
    Type created.
    SQL> create function SP_TEMP RETURN TEMP_TABLE_REC AS
      2 
      3  v_process_inputs TEMP_TABLE_REC :=TEMP_TABLE_REC();
      4 
      5  CURSOR CUR_EQUIP IS
      6  SELECT 'b' FROM dual
      7  UNION
      8  SELECT 'f' FROM dual;
      9 
    10  REC_EQUIP CUR_EQUIP%ROWTYPE;
    11 
    12  BEGIN
    13 
    14  OPEN CUR_EQUIP;
    15  LOOP
    16  FETCH CUR_EQUIP INTO REC_EQUIP;
    17  EXIT WHEN CUR_EQUIP%NOTFOUND;
    18  v_process_inputs.EXTEND;
    19 
    20  v_process_inputs(1):=TEMP_TABLE('a','b','c');
    21 
    22  END LOOP;
    23  CLOSE CUR_EQUIP;
    24 
    25  RETURN v_process_inputs;
    26  END SP_TEMP;
    27  /
    Function created.
    SQL> declare
      2     result temp_table_rec;
      3  begin
      4    -- Call the function
      5    result := sp_temp;
      6    FOR i in 1..RESULT.COUNT LOOP
      7     dbms_output.put_line(RESULT(i).COLUMN1||'--'||RESULT(i).COLUMN2||'--'||RESULT(i).COLUMN3);
      8    END LOOP;
      9  end;
    10  /
    a--b--c
    PL/SQL procedure successfully completed.Note the last null values ----.

  • Invalid parameter SECONDARY_RECORD-PSKEY Error in Personal Data Screen

    Hi All,
    We are using EHP6. The Personal Data  iview is throwing an error while trying Edit something.
    I am able to add a new register  but getting the following dump while trying to Edit/Save
    This apply for all the employees.
    This apply for all the employees.
    I looked through SAP Note-1815863 - Dump in Class CL_HRPA_INFOTYPE_CONTAINER Method. However all the tables mentioned in that Note seemed to be configured properly.
    Any help will be appreciated.
    Short Dump
    Error while processing your query
    What has happened?
    The URL call sap/bc/webdynpro/sap/HRESS_A_PERSINFO was terminated because of an error.
    Note
    The following error occurred in system DEV : Invalid parameter SECONDARY_RECORD-PSKEY , value 1008119301067 9999123120130621000
    The error occurred on application server HRE_05 and in work process. 8
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_HRPA_INFTY_CONTAINER_DATA~MODIFY_SECONDARY_RECORD of program CL_HRPA_INFOTYPE_CONTAINER====CP
    I have checked:
    Report RPUPAV00.
    Subtype config, inconsistent data.
    I updated table V_T582V & V_T582W.
    I maintained tcode-GENIL_MODEL_BROWSER.
    I also have checked the following:
    sap > bc> webdynpro > HRESS_A_PERSINFO   ----check this once activate or not ...right click and check is it activated or not
    I also have run the report RPUFIXDS for that personal number, , however the issue follow.
    The error not occur when I delete the register for the the following  V_T582V & V_T582W, however the fields for the infotype secondary not appear in the dynpro of the infotype 0002.
    Thanks
    Regards

    There could be several possible causes
    Usually this error occurs if a secondary infotype functionality has been delivered via SP or SNOTE for infotype 0002 but the PERNR you are using does not have secondary infotype record
    Tables V_T582V & V_T582W determine if a secondary infotype will be used - if you remove entries here this will deactivate the secondary infotype useage - this might be one way to resolve the issue - but perhaps you wish to use the secondary infotype - in some cases it might be required- for example ESS might expects a secondary infotype and throw an error if there is an issue
    If you wish to use the secondary infotype you need the delivered entries in V_T582V & V_T582W and you need to run RPUPAV00 for any PERNR that has a 0002 record existing prior to the new secondary infotype being introduced to ensure they have a secondary infotype record key that matches the primary infotype key

  • Error: Invalid Parameter when trying to extend volume in Windows Server 2012

    From VMware, I added space to a Hard Drive to a Windows Server 2012 VM.  I then went into the WinServer console, and opened Disk Management.  I did a rescan on the disk.  It found the extra space.  I right mouse click on the Disk,
    and choose Extend Volume, choose the available space, and then an error returned of 'Invalid Parameter'.
    In Disk Manager, the new larger space is assigned, but Windows Explorer and everything else only recognizes the original smaller size.  
    EventManager shows Event ID 265: A pointer device did not report a valid unit of angular measurement.  Event ID 257: A pointer device reported a bad angular physical range. Event ID 258: A pointer device reported a bad angular logical range.
    Anyone have a solution for this problem?

    Hi,
    Please try to use the command line utility diskpart to extend the drive.
    1. Open a command prompt
    2. Type in diskpart
    3. Type list volume
    4. Type select volume #  
    5. Type extend [size=n] [disk=n]
    For more detailed information about diskpart, please see:
    DiskPart Command-Line Options
    http://technet.microsoft.com/en-us/library/cc766465(v=ws.10).aspx
    You could refer to the article below to troubleshoot the issue:
    Windows Server 2008 drive doesn’t expand correctly after extending in VMware VI client
    http://consultingblogs.emc.com/greggrobertson/archive/2010/05/27/windows-server-2008-drive-doesn-t-expand-correctly-after-extending-in-vmware-vi-client.aspx
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Utl_http does not give a very helpful error message: Invalid Parameter

    I'm writing PL/SQL to consume a web service on another server. In trying to execute this snippet of code, I receive this error:
    ORA-28783: Invalid parameter
    ORA-06512: at "SYS.UTL_HTTP", line 1023
    ORA-06512: at line 29
    Line 29 is the utl_http.begin_request statement shown below.
    I'm baffled as to what the error message might point to and I'm looking from any insight others may have. The message is so generic as to be useless and I can't find any examples of others receiving this particular error when executing begin_request.
    Please note that this is an SSL/HTTPS connection. If I remove the "S" and just use HTTP, I receive an appropriate message from the web server. (A tiny web page telling me I should be using the https version and not the http version.) I can also go to, for example, Google or CNN's web sites and pull back data but those are not SSL connections. It is the SSL part that isn't working.
    This isn't a SOAP error since I never get a chance to create my SOAP message and place it in the request.
    I've tried changing the POST to GET and the HTTP version to 1.0 just to see if the error message changes and it does not.
    My wallet file is in place on the database server, placed in an accessible folder by
    the DBAs. This code can see the wallet, I believe, because if I change the wallet
    path to something non-existent, I receive a different error. I imported the web site certificate for the site I'm connecting to and placed that in the wallet. I've been able to cause "certificate chain" errors with empty wallets, so I think the certificate is correct.
    I used SOAP-UI (www.soapui.org) and was quickly able to connect to the web server and begin having a "SOAP conversation", so I know the web services I'm connecting to are working. It is something in the database itself that is preventing this from executing - the wallet, a setting in the database, something like that. But what?
    =======================================================
    utl_http.set_response_error_check(enable=>true);
    utl_http.set_detailed_excp_support(enable => TRUE);
    utl_http.set_follow_redirect(5);
    utl_http.set_wallet('file:/...', '*******');
    --**** SET THE URL FOR THIS REQUEST *******
    http_req:= utl_http.begin_request(
    'https://....' --location of web services I want to use
    , 'POST'
    , utl_http.HTTP_VERSION_1_1
    =======================================================

    You seemrd to have ruled out most potential problems I could think of.
    The error message just states that there is something wrong with the parameters that you use. Only point I can currently think of is a problem with the returned value.
    How did you declare you http_req variable? Does it use the utl_http.req type?

  • [Oracle JDBC Driver]Invalid parameter binding(s).

    Hi there
    I am using the OracleCachedRowSet, and it works fine until I tries to update a resultset with a null value. When I call rs.acceptChanges(connection); it results in the following exception.
    Please help if anyone has found a workaround to this problem.
    java.sql.SQLException: [BEA][Oracle JDBC Driver]Invalid parameter binding(s).
    at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    at weblogic.jdbc.base.BaseParameters.getParameter(Unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.setObjectInternal(Unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.setObject(Unknown Source)
    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:268)
    at oracle.jdbc.rowset.OracleCachedRowSetWriter.updateRow(OracleCachedRowSetWriter.java:429)
    at oracle.jdbc.rowset.OracleCachedRowSetWriter.writeData(OracleCachedRowSetWriter.java:534)
    at oracle.jdbc.rowset.OracleCachedRowSet.acceptChanges(OracleCachedRowSet.java:2926)
    at eurostat.Items.updateRS(Items.java:192)
    at eurostat.DBConnectionBean.updateRS(DBConnectionBean.java:94)
    at jsp_servlet.__mainpage._jspService(MainPage.jsp:248)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:246)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    Hi Avi
    Thanks for the suggestion, but I don't thint that is the problem. In other forums I have found people describing the same problem(both with Oracle and Sun's implementation of CachedRowSet). See this link for an example http://bugs.mysql.com/bug.php?id=9831. So I figured that those other people needed to have a solution to the problem, but I can't find it.
    /Thomas

  • Call to Java Method to Zip directory fails with error Invalid parameter 1

    Hi all,
    I try to translate the following Java Code to PeopleCode and I do not succeed in it.
    Can somebody please help me out ?
    On that website http://www3.ntu.edu.sg/home/ehchua/programming/java/J5b_IO.html I extracted the Java Code:
    import java.io.File;
    public class ListDirectoryRecusive {
    public static void main(String[] args) {
    File dir = new File("d:\\myproject\\test"); // Escape sequence needed for '\'
    listRecursive(dir);
    public static void listRecursive(File dir) {
    if (dir.isDirectory()) {
    File[] items = dir.listFiles();
    for (File item : items) {
    System.out.println(item.getAbsoluteFile());
    if (item.isDirectory()) listRecursive(item); // Recursive call
    PeopleCode
    I want to get all the files included in the directory
    Local string &SourceDirPath = S1_FS_RDCFG_AET.S1_CHMN_TODO;
    Local JavaObject &Javadir = CreateJavaObject("java.io.File", &SourceDirPath);
    Local array of any &StrArray;
    &ArrayOfAny = CreateArrayAny();
    Local JavaObject &JavaFilesArray = CreateJavaArray("java.lang.Object[]", 1024);
    &JavaFilesArray = &Javadir.listFiles();
    CopyFromJavaArray(&JavaFilesArray, &ArrayOfAny);
    ==> I alway get the error
    Message:
    Invalid parameter 1 for function CopyFromJavaArray. (2,116) S1_DSITE_ZIP.MAIN.GBL.default.1900-01-01 .DIRECTOR.OnExecute PCPC:511 Statement:9
    I thank you in avance
    Edited by: Meapri on Jan 23, 2013 9:33 AM

    The Pcode I wrote to Zip Directories
    Function AddFileToZip(&sDirSeparator, &zipInternalPath, &fileNameToZip, &zipFileName, &outFileStream, &zipStreamOut)
       Local JavaObject &file = CreateJavaObject("java.io.File", &fileNameToZip);
       Local JavaObject &inFileStream = CreateJavaObject("java.io.FileInputStream", &fileNameToZip);
       Local JavaObject &zipEntry = CreateJavaObject("java.util.zip.ZipEntry", &fileNameToZip);
       REM **  Créer le flux de sortie de données pour le fichier ZIP final;
       REM ** We will read &fileNameToZip into a buffer and write it out to &zip;
       Local string &ZippedfileName = &zipInternalPath | &sDirSeparator | &zipFileName;
       REM ** Make sure zip entry retains original modified date;
       &zipEntry.setTime(&file.lastModified());
       &zipStreamOut.putNextEntry(&zipEntry);
       Local JavaObject &buf = CreateJavaArray("byte[]", 1024);
       Local number &byteCount;
       &byteCount = &inFileStream.read(&buf);
       While &byteCount > 0
          &zipStreamOut.write(&buf, 0, &byteCount);
          &byteCount = &inFileStream.read(&buf);
       End-While;
       &inFileStream.close();
       MessageBox(0, "", 99000, 0, "Zipped File : " | &fileNameToZip);
    End-Function;
    Function getDirContent(&sDirSeparator, &parentFolder, &zipFileName, &outFileStream, &zipStreamOut)
       MessageBox(0, "", 99000, 0, "Directory to scan : " | &parentFolder);
       Local JavaObject &Folder = CreateJavaObject("java.io.File", &parentFolder);
       Local JavaObject &jItems = &Folder.list();
       /* Transformation en Array Pcode*/
       Local array of any &items = CreateArrayAny();
       Local number &idx = 1;
       &items [&jItems.length] = Null;
       CopyFromJavaArray(&jItems, &items);
       For &idx = 1 To &jItems.length
          Local string &Entry = &parentFolder | &sDirSeparator | &items [&idx];
          Local JavaObject &FileOrFolder = CreateJavaObject("java.io.File", &Entry);
          If &FileOrFolder.isDirectory() Then
             getDirContent(&sDirSeparator, &Entry, &zipFileName, &outFileStream, &zipStreamOut);
          Else
             AddFileToZip(&sDirSeparator, &parentFolder, &Entry, &zipFileName, &outFileStream, &zipStreamOut);
          End-If;
       End-For;
    End-Function;
    Local string &RootName = "C:\TEMP\TEST";
    Local string &sDirSeparator = "\";
    REM ** Create Output Zip File ;
    Local string &ZipFileName = &RootName | &sDirSeparator | "Temp2_Zip.zip";
    Local JavaObject &OutFileStream = CreateJavaObject("java.io.FileOutputStream", &ZipFileName, True);
    Local JavaObject &zipStreamOut = CreateJavaObject("java.util.zip.ZipOutputStream", &OutFileStream);
    REM ** Create Zip File Entries found in the directory;
    getDirContent(&sDirSeparator, &RootName, &ZipFileName, &OutFileStream, &zipStreamOut);
    REM Close Output Zip File ;
    &zipStreamOut.close();Edited by: Meapri on Feb 2, 2013 10:54 AM : copy and paste code that works!
    Edited by: Meapri on Feb 2, 2013 10:56 AM
    Edited by: Meapri on Feb 2, 2013 11:02 AM

  • Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).

    Hi,
    I have a file where fields are wrapped with ".
    =========== file sample
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    ==========
    I am having a .net method to remove the wrap characters and write out a file without wrap characters.
    ======================
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    ======================
    the .net code is here.
    ========================================
    public static string RemoveCharacter(string sFileName, char cRemoveChar)
                object objLock = new object();
                //VirtualStream objInputStream = null;
                //VirtualStream objOutStream = null;
                FileStream objInputFile = null, objOutFile = null;
                lock(objLock)
                    try
                        objInputFile = new FileStream(sFileName, FileMode.Open);
                        //objInputStream = new VirtualStream(objInputFile);
                        objOutFile = new FileStream(sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString(), FileMode.Create);
                        //objOutStream = new VirtualStream(objOutFile);
                        int nByteRead;
                        while ((nByteRead = objInputFile.ReadByte()) != -1)
                            if (nByteRead != (int)cRemoveChar)
                                objOutFile.WriteByte((byte)nByteRead);
                    finally
                        objInputFile.Close();
                        objOutFile.Close();
                    return sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString();
    ==================================
    however when I run the bulk load utility I get the error 
    =======================================
    Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).
    ==========================================
    the bulk insert statement is as follows
    =========================================
     BULK INSERT Temp  
     FROM '<file name>' WITH  
      FIELDTERMINATOR = ','  
      , KEEPNULLS  
    ==========================================
    Does anybody know what is happening and what needs to be done ?
    PLEASE HELP
    Thanks in advance 
    Vikram

    To load that file with BULK INSERT, use this format file:
    9.0
    4
    1 SQLCHAR 0 0 "\""      0 ""    ""
    2 SQLCHAR 0 0 "\",\""   1 col1  Latin1_General_CI_AS
    3 SQLCHAR 0 0 "\",\""   2 col2  Latin1_General_CI_AS
    4 SQLCHAR 0 0 "\"\r\n"  3 col3  Latin1_General_CI_AS
    Note that the format file defines four fields while the fileonly seems to have three. The format file defines an empty field before the first quote.
    Or, since you already have a .NET program, use a stored procedure with table-valued parameter instead. I have an example of how to do this here:
    http://www.sommarskog.se/arrays-in-sql-2008.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Pass values to Guid collection/array parameter for anonymous pl/sql block

    The following code pops the System.ArgumentException: Invalid parameter binding
    Parameter name: p_userguids
    at Oracle.DataAccess.Client.OracleParameter.GetBindingSize_Raw(Int32 idx)
    at Oracle.DataAccess.Client.OracleParameter.PreBind_Raw()
    at Oracle.DataAccess.Client.OracleParameter.PreBind(OracleConnection conn, IntPtr errCtx, Int32 arraySize)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    Any help or advice ?
    anonymous pl/sql block text:
    DECLARE
    TYPE t_guidtable IS TABLE OF RAW(16);
    p_userguids t_guidtable;
    BEGIN
    DELETE testTable where groupname=:groupname;
    INSERT INTO testTable (userguid, groupname)
    SELECT column_value, :groupname FROM TABLE(p_userguids);
    END;
    c# code:
    public static void SetGroupUsers(string group, List<Guid> users)
    OracleConnection conn = Database.ConnectionEssentus;
    try
    conn.Open();
    OracleCommand sqlCmd = new OracleCommand();
    sqlCmd.CommandText = sqls["SetGroupUsers"]; // above anonymous block
    sqlCmd.Connection = conn;
    sqlCmd.BindByName = true;
    OracleParameter p_guidCollection = sqlCmd.Parameters.Add("p_userguids", OracleDbType.Raw);
    p_guidCollection.Size = users.Count;
    p_guidCollection.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
    p_guidCollection.UdtTypeName = "t_guidtable";
    p_guidCollection.Value = users.ToArray();
    sqlCmd.Parameters.Add("groupname", OracleDbType.Varchar2, 30).Value = group;
    sqlCmd.ExecuteNonQuery();
    catch(Exception ex)
    System.Diagnostics.Debug.WriteLine(ex.ToString());
    finally
    conn.Close();
    }

    New question,
    How can I select records using "in" condition clause likes the following sentence?
    SELECT userguid, firstname, lastname FROM UserTable WHERE userguid in (SELECT column_value FROM TABLE(p_userguids))
    I tried using PIPE ROW like this, but ORACLE said "PLS-00629: PIPE statement cannot be used in non-pipelined functions"
    FOR i in p_userguids.first .. p_userguids.last
    LOOP
    SELECT userguid, firstname, lastname INTO l_userrecord FROM UserTable WHERE userguid=p_userguids(i);
    PIPE ROW(l_userrecord);
    END LOOP;

Maybe you are looking for

  • "Storage is not configured" during failover - COH-1467 still not fixed?

    I am runing a test program using two cache nodes and one "client JVM", all on the same machine (the first cache node is used as WKA). When I kill one of the cache nodes and the restart it again I get the following exceptions: In the surviving cache n

  • Problem with initialization Delta queue

    Hi Gurus, I have problem with initialization of delta queue when I try load transaction data from R3 (FM) to BI. Error message: Deviation of (64 seconds) between qRFC counter (000012365466830000080000) and actual time (08.03.2009 21:10:19). I have no

  • Cannot access photos in iPhoto through Finder

    I recently upgraded to iLife 8 from 7 because of a hard drive crash. If I open Finder to look for a picture, and I click on the iPhoto Library, it opens up iPhoto, instead of showing me the folder in Finder. Also, if I want to upload a picture file f

  • .exe default program issues

    I had an issue with all .exe opening in Notepad found this 'fix': HKEY_CLASSES_ROOT\.exe In right-side pane, change value of Default key to exefile 5. Now go to: HKEY_CLASSES_ROOT\exefile\shell\open\command In right-side pane, change value of Default

  • Apex/OHS issue:log files in opmn consume disk space

    Hi. I have installed OHS from Companion CD (10g Rel1) and the new Apex 3.0. There seems to be a problem because log files in opmn/logs are eating up my disk space. Apparently there's something missing or not configured yet. The exact error message is