Error in passing in the RECORD type in the API

Gurus,

Get the following error when I try and change from one type of RECORD in an API. I am in passage correctly?

Any help is appreciated.

Thank you
-Scott



Here is my error:

fnd_descr_flex_col_usage_pkg.load_row
*
ERROR at line 21:
ORA-06550: line 21, column 4:
PLS-00306: wrong number or types of arguments in the call to 'LOAD_ROW '.
ORA-06550: line 21, column 4:
PL/SQL: Statement ignored



Here is my anon block:

declare
Who_type RECORD TYPE IS
(
created_by NUMBER,
CREATION_DATE DATE,
last_updated_by NUMBER,
last_update_date DATE,
last_update_login NUMBER
);
v_who_type who_type;
date of v_sysdate;
Start
Select sysdate
in v_sysdate
Double;
v_who_type.created_by: = 0;
v_who_type. CREATION_DATE: = v_sysdate;
v_who_type.last_updated_by: = 0;
v_who_type.last_update_date: = v_sysdate;
v_who_type.last_update_login: = 0;
fnd_descr_flex_col_usage_pkg.load_row
(x_application_short_name = > 'SPL',)
x_descriptive_flexfield_name = > 'HR_LOCATIONS ',.
x_descriptive_flex_context_cod = > '441',.
x_application_column_name = > 'ATTRIBUTE5 ',.
x_who = > v_who_type,
x_end_user_column_name = > "District."
x_column_seq_num = > 10,
x_enabled_flag = > 'Y ',.
x_required_flag = > 'n',.
x_security_enabled_flag = > 'n',.
x_display_flag = > 'Y ',.
x_display_size = > 50,
x_maximum_description_len = > 50,
x_concatenation_description_le = > 25,
x_flex_value_set_name = > 50 characters,
x_range_code = > ",
x_default_type = > ",
x_default_value = > ",
x_runtime_property_function = > ",
x_srw_param = > ",
x_form_left_prompt = > "District."
x_form_above_prompt = > "District."
x_description = > ");

...

sreese wrote:
Tubby,

Im not asking for your help with this error. I want to define my own FILE type that mimics the call package so I can spend in my own variables.

Pretty sure I've described previously, there was a specific question with the answer that you do not understand?

>

The problem with this type of recording is that it contains all the 'who' columns that the application requires. When it is called from a package within the schema, the package has no difficulty arising from these data. When you call the package from an anon block, I have to pull my own values.

You did before declaring a LOCAL record type, then you need to reference to the PACKAGE of type folder, as I showed you... it makes you EF values even as you were in your first post.

I want to define the RECORD type of the manner in which it has been set to 'fnd_flex_loader_apis.who_type', but using my own variable and passing in the parameter. Make sense?

Thank you
Scott

Hope that helps.

Tags: Database

Similar Questions

  • Error using BULK collect with RECORD TYPE

    Hello

    I wrote a simple procedure to declare a record type & then by a variable of type NESTED table.

    I then selects the data using COLLECT in BULK & trying to access it via a LOOP... We get an ERROR.

    ------------------------------------------------------------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PROCEDURE sp_test_bulkcollect
    IS

    TYPE rec_type () IS RENDERING
    emp_id VARCHAR2 (20).
    level_id NUMBER
    );

    TYPE v_rec_type IS TABLE OF THE rec_type;

    BEGIN

    SELECT employe_id, level_id
    LOOSE COLLECTION v_rec_type
    OF portfolio_exec_level_mapping
    WHERE portfolio_execp_id = 2851852;

    FOR indx IN v_rec_type. FIRST... v_rec_type. LAST
    LOOP

    dbms_output.put_line ('Emp-' | v_rec_type.emp_id (indx) |) » '|| v_rec_type.level_id (indx));

    END LOOP;

    END;
    -----------------------------------------------------------------------------------------------------------------------------------

    Here is the ERROR I get...


    -Errors of compilation for the PROCEDURE DOMRATBDTESTUSER. SP_TEST_BULKCOLLECT

    Error: PLS-00321: expression "V_REC_TYPE" is not appropriate for the left side of an assignment statement
    Online: 15
    Text: IN portfolio_exec_level_mapping

    Error: PL/SQL: ORA-00904: invalid identifier
    Online: 16
    Text: WHERE portfolio_execp_id = 2851852;

    Error: PL/SQL: statement ignored
    Line: 14
    Text: COLLECT LOOSE v_rec_type

    Error: PLS-00302: component 'FIRST' must be declared
    Online: 19
    Text: LOOP

    Error: PL/SQL: statement ignored
    Online: 19
    Text: LOOP
    ------------------------------------------------------------------------------------------------

    Help PLZ.

    and with a complete code example:

    SQL> CREATE OR REPLACE PROCEDURE sp_test_bulkcollect
      2  IS
      3  TYPE rec_type IS RECORD (
      4  emp_id VARCHAR2(20),
      5  level_id NUMBER
      6  );
      7  TYPE v_rec_type IS TABLE OF rec_type;
      8  v v_rec_type;
      9  BEGIN
     10     SELECT empno, sal
     11     BULK COLLECT INTO v
     12     FROM emp
     13     WHERE empno = 7876;
     14     FOR indx IN v.FIRST..v.LAST
     15     LOOP
     16        dbms_output.put_line('Emp -- '||v(indx).emp_id||' '||v(indx).level_id);
     17     END LOOP;
     18  END;
     19  /
    
    Procedure created.
    
    SQL>
    SQL> show error
    No errors.
    SQL>
    SQL> begin
      2     sp_test_bulkcollect;
      3  end;
      4  /
    Emp -- 7876 1100
    
    PL/SQL procedure successfully completed.
    
  • Runtime error in workflow using the API Web service with a VC:VirtualMachine parameter

    Hello

    I took the example for the execution of a workflow using powershell via the site Web of Joerg Lew Web service API and changed to pass an input parameter to the name of the Virtual Machine.

    I have no error in powershell, but when I check the events for the workflow in Orchestrator I see it failed with the error "Validation error for the parameter"vm". It's using out of the box "Start virtual machine and wait" stream  Is a problem with a virtual machine name is paid as a string? I tried to use the full name of the virtual machines and the ID.  I have provided the code below.  Can someone help with how to get this working?

    $vcoWS = new-WebServiceProxy-VCO, VCO - Namespace - Uri of the class http://192.168.1.65:8280 / vmware-vmo-webcontrol/webservice? WSDL
    $workflows = $vcoWS.getWorkflowsWithName ("Start the virtual machine and wait", "vcoadmin", "vcoadmin")
    $workflow = $workflows [0]
    # print the input parameters
    $workflow.inParameters
    # generates the table with input parameters (WorkflowTokenAttribute - objects)
    $inparams = @)
    # fill in the table, an entry for each input parameter
    $inparams += new-Object - TypeName VCO. WorkflowTokenAttribute
    $inparams [0] .name = "VM".
    $inparams [0] .Guy = "VC:VirtualMachine."
    $inparams [0] .value = "vm-113.
    #... turns on and off (use $null on $inparams if the workflow has no input parameter
    #... und implement
    $workflowToken = $vcoWS.executeWorkflow ($workflow.id, $inparams, "vcoadmin", "vcoadmin")

    Thank you

    David

    Hi David,

    > game $inparams [0] = "VC:VirtualMachine".

    This means that the type of entry for this workflow is an object of type 'VC:VirtualMachine '. So, passing the name of the virtual machine would not work. The expected value for such an entry is the string representation of an object which, in the case of the vCO is a unique object identifier. The object id unique vCO looks like this:

    dunes://service.dunes.ch/CustomSDKObject?ID= "15.23.34.34/vm-590'&dunesName='VC:VirtualMachine".

    but you don't need to know this (technically, if you know the ip address of the vCenter and the id of the virtual machine can be built but is not a recommended practice).

    The right way to find the string representation of the object "VC:VirtualMachine" with the name you need to do a few more things. I'll do the example in java and it should be easy to turn into powershell.

    QueryResult result = vcoWS.find ("VC:VirtualMachine", "xpath:name = \" vm-113\ "", username, password);

    String stringObjectRepresentation = null;

    If (result.getTotalCount () > 0) {}

    FinderResult = result.getElements () FinderResult [0];

    stringObjectRepresentation = finderResult.getDunesUri ();

    }

    Thus, the stringValue should be attributed to the line:

    $inparams [0] .value = stringObjectRepresentation

    Hope it will help.

    Without doubt, Joerg would be able to illustrate this solution with powershell later ;-)

  • dbms_xmlgen using the pl - sql record type

    Hello

    I want the pl - sql record type and want to generate xml data. Registration of dbms_xmlgen access pl - sql can type instead of the query?

    OR, please let me know any other packet pass pl - sql record type and generate XML data.

    Thanks in advance

    Registration of dbms_xmlgen access pl - sql can type instead of the query?

    Do not think, but you can't go the individual components of record:

    SQL> declare
      type rec is record
      (
        a   int,
        b   varchar2 (30)
      );
    
      r     rec;
      ctx   int;
      x     xmltype;
    begin
      r.a := 1;
      r.b := 'Michael';
    
      ctx := dbms_xmlgen.newcontext ('select :x id, :y name from dual');
      dbms_xmlgen.setbindvalue (ctx, 'x', r.a);
      dbms_xmlgen.setbindvalue (ctx, 'y', r.b);
      x := dbms_xmlgen.getxmltype (ctx);
      dbms_output.put_line (x.getstringval ());
      dbms_xmlgen.closecontext (ctx);
    end;
    /
    
     
      1
      Michael
     
    
    PL/SQL procedure successfully completed.
    

    ?

  • Using a GUI API I got on the blackberry site - error: "tried of BlackBerry to access the api secure."

    Hello
    This is so the API, I downloaded and imported into my project->
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    When I run it, I get "Error trying to access the api Module secure"

    It says its taken in charge for OS 4.2 and I think, so execute me on my blackberry 9900 OS 5 should work,
    I've been on these forums before and after the solutions, I ordered the signature of the key codes and signed the project as well.

    This is what appears in the signature box, just code until I run it:

    It compiles without error, but it still does not work.
    What I'm doing wrong exactly? Any help would be appreciated!
    Khalique - Amina

    Hey everybody,
    Anyone else who has this problem with these particular CBC of the advanced downloadable user interface files.
    Make sure the following is in place.

    Your JRE version is important.
    If you test on a device that is older than 7.1

    Change your JRE in a right click on the JRE and selecting the right JRE for your device. [some of you may need to download the right JRE].
    I installed the plugin for eclipse blackberry, so he automatically gave me all the available JRE. I just had to change.
    After that I changed it, I have not the reddest comments when I signed the code.
    AND
    It worked fine, no error message popping up for ' api access blocked attempts to.
    If anyone has questions and is the same problem. Please ask. I've spent hours on it, and I'd be happy to help you if I've been unclear!
    Take care!

  • attempts to secure access to the api.

    My dear, I tell them that I am developing my first application and having run my apps on a BlackBerry 8520 when I use background pictures.
    Working
    3.7.2 - Eclipse with the corresponding pluggin
    -BlackBerry JRE 7.1.0
    -OS on my device is 5.0.0.592

    Bookmark and share also, I installed keys to sign the application in these cases. In the Simulator, everything goes perfectly, but when I go to the triggers device error "seeks access to the api".
    The api I import into my application are for example:
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;

    The question is if there is a problem of incompatibility between the sdk jre, etc for which you should keep in mind when developing.
    Thank you in advance for any information you can give me on this subject.
    concerning

    Jorge

    You can have multiple JRE versions installed.
    You can install additional JRE using the eclipse update page.

    For your device, I suggest to use JRE 5.

  • Forms customization affects the migration of data via the API?

    Hello!

    We are in Oracle HRMS R12.1.3 update 11.5.10.2 and in the process of migrating data using API

    We have some forms of personalization in place (in the form of people PERWSHRG) w/c requires certain fields to be mandatory (required field).

    For example, the field country of birth where we used the customization to have the required field.

    HR (country of birth) data contains null values.

    It will throw an error during execution of the API?

    Please notify.

    Kind regards

    Elmer

    No error is thrown during execution of the API as the customization of forms does not change the column (field) to the level of database property

    and API only checks the constraints at the level of the database.

  • Return the record type


    Hello

    I have a requirement of the company, where I need to return a record type (OUT parameter) for environment call based on the given input value.

    Suppose that if the value is correct and corresponding record is found in the table then the return values for this key entry. If matching record is found, then return the exception to the calling environment.

    To do this, I created an example of test table and populated records.

    create table plch_test(dept_id number,dept_name varchar2(50),cost_centre number);
    insert into plch_test values(10,'SALES',1010);
    insert into plch_test values(20,'FINANCE',2010);
    insert into plch_test values(30,'MKTG',3010);
    
     
    SQL> select * from plch_test;
       DEPT_ID DEPT_NAME                                          COST_CENTRE
    ---------- -------------------------------------------------- -----------
            10 SALES                                                     1010
            20 FINANCE                                                   2010
            30 MKTG                                                      3010
    
     
     
    

    I wrote a simple block and gave a valid key dept_id (10 in this case) to display costcentre for this dept_id and dept_name I said tow types of records, one for valid record and another exception

    
    

    SQL> DECLARE 
      2  TYPE rec_dept IS RECORD(dept_name varchar2(50),cc number);
      3  l_rec_dept rec_dept;
      4  TYPE rec_exception IS RECORD(err_code number,error_message varchar2(300));
      5  l_rec_exception rec_exception;
      6  BEGIN
      7  SELECT dept_name,cost_centre
      8  INTO l_rec_dept
      9  FROM plch_test
     10  where dept_id=10;
     11  dbms_output.put_line('DEPT_NAME'||' '||l_rec_dept.dept_name||' '||'COSTCENTRE'||' '||l_rec_dept.cc);
     12  EXCEPTION WHEN NO_DATA_FOUND THEN
     13  l_rec_exception.err_code:=sqlcode;
     14  l_rec_exception.error_message:=sqlerrm;
     15  dbms_output.put_line(l_rec_exception.err_code||' '||l_rec_exception.error_message);
     16  END;
     17  .
    SQL> /
    DEPT_NAME SALES COSTCENTRE 1010
    PL/SQL procedure successfully completed.
    SQL> 
    
     
    

    Now for invalid dept_id and expose the message by using exception record type I stated.

    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2  TYPE rec_dept IS RECORD(dept_name varchar2(50),cc number);
      3  l_rec_dept rec_dept;
      4  TYPE rec_exception IS RECORD(err_code number,error_message varchar2(300));
      5  l_rec_exception rec_exception;
      6  BEGIN
      7  SELECT dept_name,cost_centre
      8  INTO l_rec_dept
      9  FROM plch_test
     10  where dept_id=40; --Invalid --data is not present
     11  dbms_output.put_line('DEPT_NAME'||' '||l_rec_dept.dept_name||' '||'COSTCENTRE'||' '||l_rec_dept.cc);
     12  EXCEPTION WHEN NO_DATA_FOUND THEN
     13  l_rec_exception.err_code:=sqlcode;
     14  l_rec_exception.error_message:=sqlerrm;
     15  dbms_output.put_line(l_rec_exception.err_code||' '||l_rec_exception.error_message);
     16* END;
    SQL> /
    100 ORA-01403: no data found
    PL/SQL procedure successfully completed.
    
    

    Now as you can see I need to include this point in a procedure with an input parameter and output must be a record types which will return

    rec_dept if it becomes a key input valid or an exception if she meets a key not valid.

    
    CREATE PROCEDURE test_prc IS(p_in_dept_id IN plch_test.dept_id,p_output ??????
    DECLARE 
    TYPE rec_dept IS RECORD(dept_name varchar2(50),cc number);
    l_rec_dept rec_dept;
    TYPE rec_exception IS RECORD(err_code number,error_message varchar2(300));
    l_rec_exception rec_exception;
    BEGIN
    BEGIN
    SELECT dept_name,cost_centre
    INTO l_rec_dept
    FROM plch_test
    where dept_id=p_ind_dept_id;
    RETURN l_rec_dept;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    l_rec_exception.err_code:=sqlcode;
    l_rec_exception.error_message:=sqlerrm;
    RETURN l_rec_exception;
    END;
    dbms_output.put_line('DEPT_NAME'||' '||l_rec_dept.dept_name||' '||'COSTCENTRE'||' '||l_rec_dept.cc);
    END;
    

    Hope that the explanation above help in imposes the requirement

    Kind regards

    Claudy kotekal

    Return a record which can mean two things is complicated; I'm not an experienced myself pl/sql developer, but this looks like a craft.

    The idea of exceptions under Sir Thomas of Kyte, is that any treatment must be stopped; You should RAISE an exception to the appellant so that he can figure out what to do with it.  What you are saying, this is an exception, but is not a little, cos it's okay, I'll just keep but I will go back to the appellant in any way, but the appellant shall include this registration type is - would it be a record representing a row of the table, or it might be an exception... yuck.

    (a) is it really an exception

    (b) what do you do with it? You he could log into a table, you could write to a file, you can display an error message on the screen

    But really, it's weird to want to pass an exception as return value.

    These are all considerations of design, not really anything to do with the pl/sql language in itself.

    But hard, if you send a record type a successful being found, registration-based stick to it and don't use it to return a record; do not try to do double duty with her flipping something else.  Just save the message put in a table, or print it to the console, or what you want to do with; but as I said, the most important decision is, is this really an exception. And is based on the data model and the expectations of cleanliness of the data etc.

    Think about how you call built-in functions. If you send garbage to a built-in function it does not return successfully, leaving you to figure out whether he succeeded or not by inspecting the return value; It goes kaboom, something bad happened.  That's what your function should do if something bad happens, that is to say, if you get an exception, it should probably go kaboom.

  • How to use the record type as a parameter IN PL/SQL procedure or package

    Hi people,

    I need help on the record as the OUT parameter type. I am able to get out a single line as a parameter, but not getting do not idea how to get a multi ranks as output parameter.

    I have the code that works very well for a single line. Please see CODE1.

    But when I try to get several lines, I'm failing to do. Please see the CODE2. I get the error of compilation as


    Error report:

    ORA-06550: line 11, column 35:

    PLS-00487: Invalid reference to the variable "P_NAME.

    ORA-06550: line 11, column 1:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    Any help or a sample execution of script would be really useful.

    Thanks in advance.

    YZ

    --------------------------CODE1------------------------------------------

    -------------------------Package Spec-------------------------------

    CREATE OR REPLACE

    PACKAGE xx_sample_pkg as

    --

    Xx_sample_table_rectype RECORD TYPE IS

    (p_name varchar2 (40))

    number of p_emp_id

    );

    PROCEDURE xx_sample_prc (xx_sample_rec1, OUT xx_sample_table_rectype);

    END xx_sample_pkg;

    ------------------------------Package Body------------------------

    create or replace

    PACKAGE xx_sample_pkg AS BODY

    --

    PROCEDURE xx_sample_prc (xx_sample_rec1 OUT xx_sample_table_rectype) IS

    BEGIN

    SELECT ename, empno

    IN xx_sample_rec1

    FROM scott.emp

    WHERE ename = 'SMITH ';.

    END xx_sample_prc;

    END xx_sample_pkg;

    -------------------------------------------Execute----------------------

    DECLARE

    l_rec_type xx_sample_pkg.xx_sample_table_rectype;

    BEGIN

    dbms_output.put_line ('xx_sample_prc appeal');

    xx_sample_pkg.xx_sample_prc (l_rec_type);

    dbms_output.put_line ('YZ' | l_rec_type.p_name |') '|| l_rec_type.p_emp_id);

    END;

    ---------------------------------------------------------------

    -------------------------CODE2-------------------------------------------

    -------------------------Package Spec-------------------------------

    CREATE OR REPLACE

    PACKAGE xx_sample_pkg as

    --

    Xx_sample_table_rectype RECORD TYPE IS

    (p_name varchar2 (40))

    number of p_emp_id

    );

    PROCEDURE xx_sample_prc (xx_sample_rec1, OUT xx_sample_table_rectype);

    END xx_sample_pkg;

    ------------------------------Package Body------------------------

    create or replace

    PACKAGE xx_sample_pkg AS BODY

    --

    PROCEDURE xx_sample_prc (xx_sample_rec1 OUT xx_sample_table_rectype) IS

    BEGIN

    SELECT ename, empno

    IN xx_sample_rec1

    FROM scott.emp;

    END xx_sample_prc;

    END xx_sample_pkg;

    -------------------------------------------Execute----------------------

    DECLARE

    l_rec_type xx_sample_pkg.xx_sample_table_rectype;

    BEGIN

    dbms_output.put_line ('xx_sample_prc appeal');

    xx_sample_pkg.xx_sample_prc (l_rec_type);

    for l_rec in 1.l_rec_type.p_name.count

    loop

    dbms_output.put_line ('YZ' | l_rec_type.p_name (l_rec) |) » '|| l_rec_type.p_emp_id (l_rec));

    end loop;

    end;

    ---------------------------------------------------------------

    bb8c573a-6ca3-4d7c-90ed-e55c2df67201 wrote:

    But now, my question would be why the record type could not be used? My understanding is missing some concept between use of type type array collection record vs. Please specify.

    Do not confuse the folder with the collection.

    SY.

  • Pass String [] (String Array) type of a parameter in 'change the binding Action.

    Hello

    We hope that you do very well. It is very important for me, kindly help me in this beyond.
    I have a scenario where I pass a parameter of type String [] that have a value of {'name'} to a Web service that returns values.

    I created a datacontrol WS, dragged and decreased the value of return on a jspx, then it asks me to give the entry value

    How he move to the setting in "change the binding Action"?
    When I say new String() {'name'}, it gives me the following error
    Failed to create an object of type: [Ljava.lang.String; of type: java.lang.String with value: new String() {'name'}]

    Similarly, I hard-coded this value in a managedBean added to requestScope/applicationScope and questioned using the #{applicationScope.AppCreationBean.epsName}
    But this time, it is said, the value is null. I guess that the value is not updated correctly initialized. But if I hardcode the value in the Get accessor method, I again get the error as above.

    Someone said to me how to pass an array of type String (IE, String []) with a value of 'Name' in the Wizard "Change the binding Action" is?

    Concerning
    RaviKiran

    Hello

    refer to a property of the managed bean that returns an object. Then in the Get method / create the array and return it

    Frank

  • Dynamic SQL with in bulk in the record type

    Oracle 10.2 g

    I received this Tom

    [http://asktom.oracle.com/pls/apex/f?p=100:11:0:NO:]

    I'm able to do this without dynamic SQL, but my requirement is to do it in dynamic SQL
     create table t1 ( x int, y int );
    
     insert into t1 select rownum, rownum+1 from all_users where rownum <= 5;
    
     create table t2 ( x int, y int, z int );
    
     declare
                type array is table of t1%rowtype;
                l_data array;
        begin
                select * bulk collect into l_data from t1;
      
                forall i in 1 .. l_data.count
                
                       execute immediate 'insert into (select x, y from t2) values :x' using l_data(i);
        end;
     
    Error at line 1
    ORA-06550: line 9, column 90:
    PLS-00457: expressions have to be of SQL types
    ORA-06550: line 9, column 20:
    PL/SQL: Statement ignored
    There is a work around in 11g, but can we do something in 10g?



    Thank you
    HESH.

    HESH wrote:

    but following does not.

    declare
    type array is table of t1%rowtype;
    l_data array;
    begin
    select * bulk collect into l_data from t1;
    
    forall i in 1 .. l_data.count
    
    execute immediate 'insert into (select x, y from t2) values :x' using l_data(i);
    end;
    

    I want just a dynamic SQL code for the insert with FORALL statement would adopt as well as collections.

    Doesn't make much sense.

    Extract you the data from the SQL engine in the table of the record type. If the output data that cursor SQL must be read in the SQL engine and copied into the memory of PL/SQL engine.

    Then, you send that VERY SAME DATA back to the SQL engine to be used by a SQL insert cursor.

    Where is the logic behind the extraction of data from SQL in a PL/SQL table structure and then push this same structure table on the SQL engine database? What is the purpose to send data on a detour of underperforming and non-scalale through the PL/SQL engine?

    You have any justification (technical or functional wise) to back up this absurd approach?

    Why this can be achieved using a single SQL cursor that does both the choice (extraction) and (in bulk) insertion - using the plain old INSERT... SELECT structure?

    And if the insert is variable, then what? Create a dynamic INSERT... SELECT cursor and execute it (using bind values). This simple... Right?

  • Siebel field values are not passed to the OPA: error on WD Smoke Test

    Hello

    I installed OPA siebel connector locally and deployed determination determination of web and server to tomcat server. The 'DS smoke Test' button works well, but the 'WD Smoke Test' does not work correctly. After the installation by clicking on the button opens a pop-up window with "page cannot be displayed".

    I changed the symbolic for 'Employee' as URL:

    http://localhost: 8085/siebel-web-determinations/startsession/AdminSmokeTest

    (from the original one: http://localhost:8085 / siebel-web-determinations/startsession/AdminSmokeTest/en-US? user = [UserID] & caseID =, [UserID], [ObjectID], AdminSmokeTest)

    This show opens the popup window and and it asks the question ' what is the text of valid user?' by clicking on it application "which is a Siebel Admin user's first name?" then the subsequesnt questions and after the last questions it shows if it is valid Siebel Admin record ot not. If the rule works correctly.

    Now my questions are:
    1. how the Siebel field values will be passed to the determination of the Web? Ideally result response (if that's a record valid sadmin) should have been displayed in the window pop up directly by clicking on the button 'WD Smoke Test' with the employee field values passed, instead he asks for input.

    2. the field mappings are definde in the automation of the Admin-Policy-> show mappings. The field values are passed correctly to the server of determination, but how to pass for determination of the Web? The same mapping works for the determination of the Web as well?

    3. If I use the old url for employee (http://localhost: 8085/siebel-web-determinations/startsession/AdminSmokeTest/en-us? user = [username] & caseID =, [UserID], [ObjectID], AdminSmokeTest) the user id is passed correctly but it is throwing an error.

    4. in the Administration - policy Automation-> Web determinations it gives the following error.

    [An error occurred when loading the case ID "8SIA-82CJP, SADMIN, AdminSmokeTest".
    This error has been recorded and is available in the application logs.

    Support and assistance please contact [email protected]].

    If I change the url as before, then he asks the same questions. What is this point of view?

    Thanks in advance!

    Kind regards
    ALIOU

    ALIOU,

    One of the key things to note about the OPA Web determinations for Siebel is which is needs component EAI run on the Siebel server for it to work. There is an article on this in the installation guide where there you preform a test to verify that EAI_ANON_ENU is running on the Siebel server (located on pages 12-13 on the installation guide).

    1. for determinations of Web works properly, you must leave the URL token exactly as indicated in the installation guide. In addition, determinations Web use EAI (mentioned above) to pass information to the Web of Siebel determinations.

    2. same as number 1.

    3. again once it goes back to check that the EAI runs.

    4. make sure that the user you are logged in as has the responsibility to use this point of view.

    In addition to all this... once EAI works you need to check the incoming Web Service URL and point them to the location of the IAE but also change the path to the IAE in the file data-siebe - adapt .properties. Also, be sure to match the user name and password in this file for what you use to connect to Siebel with.

    -Adam Starr

  • Error creating service with record type as a return type

    Hi, I tried the following code to get the nth highest sal using the service and the record type.
    CREATE OR REPLACE PACKAGE pack_rec_cur AS
    TYPE rec_type IS RECORD (
     name EMP.ename%TYPE,
     sal EMP.sal%TYPE);
      END;
    The lot above is created
    CREATE OR REPLACE 
      FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS
       rec pack_rec_cur.rec_type;
        CURSOR cur_rec IS
          SELECT ename,sal
            FROM emp
             WHERE sal is not null 
              ORDER BY DESC;
    BEGIN
     OPEN cur_rec;
      FOR i IN 1..n LOOP
       FETCH cur_rec into rec;
       EXIT WHEN cur_rec%NOTFOUND;
      END LOOP;
     CLOSE cur_rec;
     RETURN rec;
    END;   
    The above function is errors
    LINE/COL ERROR
    -------- ---------------------------------------
    4/7      PL/SQL: SQL Statement ignored
    7/16     PL/SQL: ORA-00936: missing expression
    SQL> 
    Could you please correct me where I am wrong

    Thank you.

    By clauase missing column name in the order. Is it ename desc?

    CREATE OR REPLACE
      FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS
       rec pack_rec_cur.rec_type;
        CURSOR cur_rec IS
          SELECT ename,sal
            FROM emp
             WHERE sal is not null
              ORDER BY ENAME DESC; ---added ename
    BEGIN
     OPEN cur_rec;
      FOR i IN 1..n LOOP
       FETCH cur_rec into rec;
       EXIT WHEN cur_rec%NOTFOUND;
      END LOOP;
     CLOSE cur_rec;
     RETURN rec;
    END;   
    
    ------------
    -OUTPUT
    -----------
    
    SQL> SET SERVEROUT ON
    SQL>
    SQL> DECLARE
      2     rec            pack_rec_cur.rec_type;
      3  BEGIN
      4     rec         := fun_rec_cur (6); --you get the 6th record in order of ename desc
      5     DBMS_OUTPUT.put_line ('ename::' || rec.NAME || '  sal ::' || rec.sal);
      6  END;
      7  /
    ename::MARTIN  sal ::1250
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    
  • How to create a type of record and a pl/sql table of this record type in the database

    Hello
    I want to create a record type, and then I want to create a PL/SQL table in the oracle 9i database.
    I did block PL/SQL.
    But when I'm doing it in the database it throws me a few errors.
    Could you please tell me how can I do?

    Concerning

    user576726 wrote:
    Hello
    I want to create a record type, and then I want to create a PL/SQL table in the oracle 9i database.
    I did block PL/SQL.
    But when I'm doing it in the database it throws me a few errors.
    Could you please tell me how can I do?

    Concerning

    RECORD type is only supported in PL/SQL for SQL, you must use the OBJECT type.

  • error message indicates that the new 450 turbo label printer does not support the type of paper 119

    error message indicates that the new 450 turbo label printer does not support the type of paper 119

    Contact the society of the printer.  There is nothing that Microsoft or Windows, can do to force the printer to accept a type of paper, though it says it will not accept it.

Maybe you are looking for