PLS-00231: function error

version : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
declare
v_mail_cust_code maz_sr_au_incentive_cust_hist.mail_cust_code%type;
function inc_uniq_code
return varchar2
is
v_unique_code maz_sr_au_incentive_cust_hist.mail_cust_code%type;
v_unique boolean := FALSE;
v_count number;
begin
while v_unique != TRUE
loop
select to_char(round(dbms_random.value(1000000,9999999))) into v_unique_code from dual;
select count(*) into v_count from maz_sr_au_incentive_cust_hist
where rtrim(mail_cust_code) = v_unique_code;
if v_count = 0 then
v_unique := TRUE;
end if;
end loop;
return v_unique_code;
end inc_uniq_code;
begin
select inc_uniq_code into v_mail_cust_code from dual;
dbms_output.put_line('inc_uniq_code : '|| v_mail_cust_code);
end;
error :
ORA-06550: line 22, column 8:
PLS-00231: function 'INC_UNIQ_CODE' may not be used in SQL
ORA-06550: line 22, column 8:
PL/SQL: ORA-00904: "INC_UNIQ_CODE": invalid identifier
ORA-06550: line 22, column 1:
PL/SQL: SQL Statement ignored
Can someone help ?
Thanks
Raghu

correction to by earlier post (table names were given in reverse earlier)
begin
insert into xyz_SR_AU_INCENTIVE_CUST_hist (a,b,c,d)
select a,b,c, package.function_name
from xyz_SR_AU_INCENTIVE_CUST_stage;
end;
error :
ORA-04091: table xyz_SR_AU_INCENTIVE_CUST_HIST is mutating, trigger/function may not see it
ORA-06512: at "xyz_DEV.xyz_INC_PKG", line 13
ORA-06512: at line 2
function code :
function inc_uniq_code
return varchar2
is
v_unique_code xyz_sr_au_incentive_cust_hist.mail_cust_code%type;
v_unique boolean := FALSE;
v_count number;
begin
while v_unique != TRUE
loop
v_unique_code := to_char(round(dbms_random.value(1000000,9999999)));
select count(*) into v_count from xyz_sr_au_incentive_cust_hist
where rtrim(mail_cust_code) = v_unique_code;
if v_count = 0 then
v_unique := TRUE;
end if;
end loop;
return v_unique_code;
end inc_uniq_code;
end xyz_INC_PKG;
xyz_SR_AU_INCENTIVE_CUST_stage does not have any triggers.
Trigger on xyz_SR_AU_INCENTIVE_CUST_hist
CREATE OR REPLACE TRIGGER xyzSRAUICH_TIMESTAMP_BIU_ROW
BEFORE INSERT OR UPDATE
ON xyz_SR_AU_INCENTIVE_CUST_HIST
FOR EACH ROW
BEGIN
IF inserting OR updating THEN
IF inserting THEN
:new.added_user:=USER;
:new.added_date:=SYSDATE;
ELSE
:new.added_user:=:old.added_user;
:new.added_date:=:old.added_date;
END IF;
:new.updated_user:=USER;
:new.updated_date:=SYSDATE;
END IF;
END;
Also, it seems no logic in including this :new.added_user:=:old.added_user;
:new.added_date:=:old.added_date;

Similar Messages

  • Function may not be use in SQL - PLS-00231

    Here is my code,
    -- Database 10g Enterprise Edition Release 10.2.0.2.0
    declare
    v1 varchar2(2000);
    function test_func ( v2 varchar2) return varchar2
    is
    begin
    return v2 || 'x' || v2;
    end;
    begin
    -- ok
    v1 := test_func('Hello');
    --- Error PLS-00231: Function may not be used
    --insert into xxxx values test_func(….
    select test_func('World') into v1 from dual;
    end;
    I don’t want to define test_func in database as a stand-alone/package function. Is there any other way in 10G.
    Thanks.

    Works for me...
    SQL> select banner from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Solaris: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    SQL> set serverout on
    SQL> declare
    2 v1 varchar2(2000);
    3 function test_func ( v2 varchar2) return varchar2
    4 is
    5 begin
    6 return v2 || 'x' || v2;
    7 end;
    8 begin
    9 -- ok
    10 v1 := test_func('Hello');
    11 dbms_output.put_line (v1);
    12 end;
    13 /
    HelloxHello
    PL/SQL procedure successfully completed.

  • Function scope in Package  PLS-00231:

    In my package body, one local function_A is calling local function_B. Since both functions will not be called outside of the package (function_A will be called by a public procedure, which is defined in the package spec), I did not want to define A and B in my Package spec. However, when I compile the body, I get the following error message:
    Error(46,30): PLS-00231: function 'FUNCTION_B' may not be used in SQL
    If I add function_B to my package spec (even though it is not public), the error message will go away.
    Does anybody knows why?
    Thanks.

    The error message appears to indicate that function_B is being called in a SQL/DML statement:
    select function_B(n) from...
    If this is the case, and is necessary (i.e. it's not a pointless query select function_B(n) from dual) then function_B must be declared publically in the package spec as the SQL engine - and hence any SQL or DML statement - is outside the scope of the package, regardless of whether the only SQL calling it is in the package or not.
    Note that this forum is for discussion of the Oracle SQL Developer development tool. General PL/SQL queries such as this are better dealt with on the PL/SQL.

  • Error PLS-00231 When Calling a Local Function In a Procedure

    I hope someone can help me find a workaround to this problem:
    I have a function defined within a PL/SQL block. When I call the function from a SQL statement, I get the PLS-00231 error, which says "Function <fn name> may not be used in SQL.". I don't really understand why I can't do this, since the function works perfectly if I create it in the database. Unfortunately, storing the function in the database is not a desirable option.
    Below is a very simple example program to illustrate the point. Any feedback would be greatly appreciated. Thanks. Brian
    DECLARE
    var INTEGER;
    FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
    BEGIN
    RETURN i;
    END;
    BEGIN
    SELECT return_it (4)
    INTO var
    FROM dual;
    END;
    --

    Your function return_it is not part of database so you cant use in query.
    Here is what you can do
    08:18:20 SQL> ed
    Wrote file afiedt.buf
    1 DECLARE
    2 var INTEGER;
    3 FUNCTION return_it (i IN INTEGER) RETURN INTEGER IS
    4 BEGIN
    5 RETURN i;
    6 END;
    7 BEGIN
    8 var := return_it (4);
    9 DBMS_OUTPUT.PUT_LINE('var = '||var);
    10* END;
    08:18:26 SQL> /
    var = 4
    PL/SQL procedure successfully completed.

  • Static class functions: PLS-00801: internal error [phd_get_defn:D_S_ED:LHS]

    Any ideas why this would generate an internal error - referring to a static class function in that class constructor's parameter signature?
    Test case (on 11.2.0.2) as follows:
    SQL> create or replace type TMyObject is object(
      2          id      integer,
      3          name    varchar2(30),
      4 
      5          static function DefaultID return integer,
      6          static function DefaultName return varchar2,
      7 
      8          constructor function TMyObject(
      9                  objID integer default TMyObject.DefaultID(), objName varchar2 default TMyObject.DefaultName()
    10          )return self as result
    11  );
    12  /
    Type created.
    SQL>
    SQL> create or replace type body TMyObject is
      2 
      3          static function DefaultID return integer is
      4          begin
      5                  return( 0 );
      6          end;
      7 
      8          static function DefaultName return varchar2 is
      9          begin
    10                  return( 'foo' );
    11          end;
    12 
    13          constructor function TMyObject(
    14                  objID integer default TMyObject.DefaultID(), objName varchar2 default TMyObject.DefaultName()
    15          )return self as result is
    16          begin
    17                  self.id := objId;
    18                  self.name := objName;
    19                  return;
    20          end;
    21 
    22  end;
    23  /
    Type body created.
    SQL>
    SQL> declare
      2          obj     TMyObject;
      3  begin
      4          obj := new TMyObject();
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06550: line 0, column 0:
    PLS-00801: internal error [phd_get_defn:D_S_ED:LHS]If the static class functions are removed from the constructor and applied instead inside the constructor body, it works without error. Likewise you can call the constructor with the static class functions as parameters, without an internal error resulting.
    SQL> create or replace type TMyObject is object(
      2          id      integer,
      3          name    varchar2(30),
      4 
      5          static function DefaultID return integer,
      6          static function DefaultName return varchar2,
      7 
      8          constructor function TMyObject(
      9                  objID integer default null, objName varchar2 default null
    10          )return self as result
    11  );
    12  /
    Type created.
    SQL>
    SQL> create or replace type body TMyObject is
      2 
      3          static function DefaultID return integer is
      4          begin
      5                  return( 0 );
      6          end;
      7 
      8          static function DefaultName return varchar2 is
      9          begin
    10                  return( 'foo' );
    11          end;
    12 
    13          constructor function TMyObject(
    14                  objID integer default null, objName varchar2 default null
    15          )return self as result is
    16          begin
    17                  self.id := nvl( objId, TMyObject.DefaultID() );
    18                  self.name := nvl( objName, TMyObject.DefaultName() );
    19                  return;
    20          end;
    21 
    22  end;
    23  /
    Type body created.
    SQL>
    SQL> declare
      2          obj     TMyObject;
      3  begin
      4          obj := new TMyObject();
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> declare
      2          obj     TMyObject;
      3  begin
      4          obj := new TMyObject(
      5                          objID => TMyObject.DefaultID(),
      6                          objName => TMyObject.DefaultName()
      7                  );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> Had a quick look on support.oracle.com and did not turn up any specific notes dealing with the use of static class functions in the parameter signature of the constructor. Known issue? Any other workaround besides the one above?

    Hi,
    there is a bug: "Bug 8470406: OBJECT INSTANCE CREATION FAILS WITH ERROR PLS-00801 IN 11GR1", it shows the behaviour in 11g but not in 10.2. It gives exactly the symptoms you also see, move it to the body and it works. But there is no solution/patch given.
    Herald ten Dam
    http://htendam.wordpress.com

  • PLS-801 internal error when returnig rowtype in select clause

    Hi,
    looks like the following case is not handled in version 11.1.0.6.
    I created a function which returns a ROWTYPE
    and when calling this function from a simple sql statement an internal error occurs.
    create table testing as select 1 id, 'A' val from dual;
    create or replace function ret_row return testing%rowtype is
    cursor cur_t is
    select * from testing;
    r testing%rowtype;
    begin
    open cur_t;
    fetch cur_t into r;
    close cur_t;
    return r;
    end;
    select ret_row from dual; when executing this select statement the following error occurs:
    SQL> select ret_row from dual
    ERROR at line 1:
    ORA-06553: PLS-801: internal error [55018]Didn't find any notes from the metalink about this error.
    Ants

    Perhaps in this specific case you can view your output as ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    5 rows selected.
    Elapsed: 00:00:01.48
    satyaki>
    satyaki>
    satyaki>create table testing as select 1 id, 'A' val from dual;
    Table created.
    Elapsed: 00:00:03.16
    satyaki>
    satyaki>set lin 80
    satyaki>
    satyaki>desc testing;
    Name                                      Null?    Type
    ID                                                 NUMBER
    VAL                                                CHAR(1)
    satyaki>
    satyaki>
    satyaki>set lin 310
    satyaki>
    satyaki>create or replace function ret_row return testing%rowtype is
      2  cursor cur_t is
      3   select * from testing;
      4   r testing%rowtype;
      5  begin
      6   open cur_t;
      7   fetch cur_t into r;
      8   close cur_t;
      9   return r;
    10  end;
    11  /
    Function created.
    Elapsed: 00:00:03.06
    satyaki>
    satyaki>
    satyaki>select ret_row from dual;
    select ret_row from dual
    ERROR at line 1:
    ORA-00902: invalid datatype
    Elapsed: 00:00:00.25
    satyaki>
    satyaki>declare
      2       y testing%rowtype;
      3  begin
      4       y := ret_row;
      5       for i in 1..y.ID
      6       loop
      7         dbms_output.put_line(y.ID);
      8         dbms_output.put_line(y.VAL);
      9       end loop;
    10  end;
    11  /
    1
    A
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.16
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • PLS-00801: internal error [74301]

    Hi!
    I've written one general procedure to recompile all the objects, but i've received this error. Can anyone tell me what went wrong in my code?
    satyaki>ed
    Wrote file afiedt.buf
      1  create or replace procedure compile_all(object_tp in varchar2,ot out varchar2)
      2  is
      3    cursor c1
      4    is
      5      select distinct object_name
      6      from user_objects
      7      where object_type = upper(object_tp)
      8      and   status = upper('invalid');
      9    r1 c1%rowtype;
    10    type obj_rec is table of user_objects.object_name%type;
    11    obj_tab obj_rec;
    12    cnt  number(5);
    13  begin
    14    open c1;
    15    loop
    16      fetch c1 bulk collect into obj_tab;
    17      forall i in 1..obj_tab.count save exceptions
    18        execute immediate(' ALTER '||upper(object_tp)||' '||obj_tab(i)||' COMPILE ');
    19        exit when c1%notfound;
    20    end loop;
    21    close c1;
    22    ot := 'SUCCESSFULL';
    23  exception
    24    when others then
    25      ot := sqlerrm;
    26* end;
    satyaki>/
    Warning: Procedure created with compilation errors.
    satyaki>
    satyaki>
    satyaki>sho errors;
    Errors for PROCEDURE COMPILE_ALL:
    LINE/COL ERROR
    0/0      PLS-00801: internal error [74301]
    satyaki>Regards.
    Satyaki De.

    But, michael it is not solving the purpose for me -
    satyaki>
    satyaki>CREATE OR REPLACE PROCEDURE compile_all (object_tp IN VARCHAR2, ot OUT VARCHAR2)
      2  IS
      3     CURSOR c1
      4     IS
      5        SELECT DISTINCT object_name
      6                   FROM user_objects
      7                  WHERE object_type = UPPER (object_tp)
      8                    AND status = UPPER ('invalid');
      9  
    10     r1        c1%ROWTYPE;
    11  
    12     TYPE obj_rec IS TABLE OF user_objects.object_name%TYPE;
    13  
    14     obj_tab   obj_rec;
    15     cnt       NUMBER (5);
    16  BEGIN
    17     OPEN c1;
    18  
    19     LOOP
    20        FETCH c1
    21        BULK COLLECT INTO obj_tab;
    22  
    23        FORALL i IN 1 .. obj_tab.COUNT SAVE EXCEPTIONS
    24           EXECUTE IMMEDIATE 'BEGIN EXECUTE IMMEDIATE ''ALTER '' || :object_tp || '' '' || :obj_tab || '' COMPILE'';  END;'
    25                       USING object_tp, obj_tab (i);
    26        EXIT WHEN c1%NOTFOUND;
    27     END LOOP;
    28  
    29     CLOSE c1;
    30  
    31     ot := 'SUCCESSFULL';
    32  EXCEPTION
    33     WHEN OTHERS
    34     THEN
    35        ot := SQLERRM;
    36  END compile_all;
    37  /
    Procedure created.
    satyaki>
    satyaki>
    satyaki>drop table e_emk;
    Table dropped.
    satyaki>
    satyaki>
    satyaki>select test_sat_d('SMITH') from dual;
    select test_sat_d('SMITH') from dual
    ERROR at line 1:
    ORA-06575: Package or function TEST_SAT_D is in an invalid state
    satyaki>
    satyaki>
    satyaki>select object_name
      2  from user_objects
      3  where object_type = upper('function')
      4  and   status = upper('invalid');
    OBJECT_NAME
    ABC
    SP_GET_STOCKS
    TEST_SAT_D
    satyaki>
    satyaki>
    satyaki>create table e_emk
      2  as
      3    select empno,ename
      4    from emp;
    Table created.
    satyaki>
    satyaki>
    satyaki>select object_name
      2  from user_objects
      3  where object_type = upper('function')
      4  and   status = upper('invalid');
    OBJECT_NAME
    ABC
    SP_GET_STOCKS
    TEST_SAT_D
    satyaki>
    satyaki>
    satyaki>declare
      2    rm    varchar2(30000);
      3  begin
      4    compile_all('function',rm);
      5    dbms_output.put_line('Status - '||rm);
      6  end;
      7  /
    Status - ORA-24344: success with compilation error
    PL/SQL procedure successfully completed.
    satyaki>
    satyaki>
    satyaki>set serveroutput on
    satyaki>
    satyaki>
    satyaki>select object_name
      2  from user_objects
      3  where object_type = upper('function')
      4  and   status = upper('invalid');
    OBJECT_NAME
    ABC
    SP_GET_STOCKS
    TEST_SAT_D
    satyaki>As you can see after dropping the table i've executed the function and quite naturally it throws error. Now, after creation of the same table with same structure when i ran the compile all it should successfully compile the last function. But, it is not able to perform this, the reason it throws error after compilation of first function which is ABC and returns to exception section. But, i want to compile all the function even if it throws the error. Now, what should be my next step?
    Regards
    Satyaki De.

  • RA-06553: PLS-801: internal error [55018]

    Hi Friends.. Please Help in this.
    CREATE OR REPLACE
      FUNCTION dept_for_name(
          deptnamein IN departments.department_name%type)
        RETURN departments%rowtype
      AS
       l_return departments%rowtype;
      FUNCTION is_secret_dept(
          deptnamein IN departments.department_name%type)
        RETURN BOOLEAN
      AS
      BEGIN
        RETURN
        CASE deptnamein
        WHEN 'Administration' THEN
          true
        ELSE
          false
        END;
      END is_secret_dept;
      BEGIN
        SELECT * INTO l_return FROM departments WHERE department_name=deptnamein;
        IF is_secret_dept(deptnamein) THEN
          l_return:=null;
        END IF;
        RETURN l_return;
      END;
    select dept_for_name('Administration') from dual;
    when i run this with select statement it gives the error.
    RA-06553: PLS-801: internal error [55018]
    How to solve this Please help me.
    Thanks

    Thanks for reply.
    I am not find in this..
    execute dbms_stats.delete_database_stats
    when i give this command it gives the error insufficient privs.
    Please suggest is there any other choice for this problem

  • ERROR: ORA-06553: PLS-801: internal error [55018]

    Sorry for my bad english ...
    I got error ...
    ERROR: ORA-06553: PLS-801: internal error [55018]
    if I build function than return %rowtype like this
    SELECT * INTO var_return FROM .......
    RETURN var_return
    Oracle 11g in RedHat Linux
    Thanks before ...

    Hi,
    Perhaps this link can help you.
    Regards

  • Is there a way to hide a function error indicator in a print view?

    I've got a numbers report with a function error and I was wondering if there's a way to hide the exclamation point when printing it out?  Not trying to hide something, just to avoid displaying an error when its unimportant.
    Thanks!

    Tim,
    You might try including the IFERROR function in your expression. This will suppress the error message.
    Jerry

  • 'setProgress is not a function' error while setting the progress of a progress bar manually

    I want to set value of a progress bar in an accordian but I am encountering 'setProgress is not a function' error. Any idea what's wrong with following code.
    Observation:
    If I move the progress bar out of the Accordian then the error goes away and the progress bar appears fine.
    I want to set the progress bar eventually to {repMonitor.currentItem.threatLevel} but for now I am just testing with hypothetical threat value i.e 60
        <mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10" width="554" height="242" change="monAccordianChange()" >       
           <mx:Repeater id="repMonitor" dataProvider="{monitoringArray}">
              <mx:Canvas width="100%" height="100%" label="{repMonitor.currentItem.firstName+' '+ repMonitor.currentItem.lastName}" >
                <mx:Image x="10" y="10" source="{repMonitor.currentItem.imageName}" width="175" height="118"/>
                  <s:Label x="200" y="14" text="Threat Level:"/>
                  <mx:ProgressBar x="200" y="30" mode="manual" label="" id="bar" width="200" creationComplete="bar.setProgress(60,100);" />
              </mx:Canvas>
           </mx:Repeater>
        </mx:Accordion>

    Okay.. Thanks.
    On another forum I ve been told that I need to use getRepeaterItem. How can I use it to set my progress bar such the value of progress may be taken from repMonitor.currentItem.threatLevel?

  • Extension function error:  Method not found 'round'

    Hi
    In an RTF Template I'm including one of the following expression in a field:
    <?xdoxslt:set_variable($_XDOCTX, 'VSalesNetVal', xdoxslt:round(LOT_NET_SALES_VALUE))?>
    or
    <?xdoxslt:set_variable($_XDOCTX, 'VSalesNetVal', round(LOT_NET_SALES_VALUE))?>
    Preview from BI Publisher Template Builder for Word 10.1.3.3.3 works fine.
    But when I run the report from eBS, which has XML Publisher 5.6.3, the concurrent finishes in error with the following message:
    Post-processing of request 8058734 failed at 11-JUL-2009 19:26:41 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Checked the OPP Log at and got the following stack:
    [7/11/09 10:26:41 PM] [UNEXPECTED] [204214:RT8058734] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:624)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:421)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:233)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'round'
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 18 more
    Why doesn't it recognize 'round' as a valid function?
    XML Pub v5.6.3 lists "round" as one of xsl functions.
    Any idea or workaround?
    Thanks in advance.
    David

    Any solution for the above problem?
    O.

  • I got this warning when i open a specific page on my website in IE : MuseJSAssert: Error calling selector function:Error: A security problem occurred.

    Hi,
    I found out when i'm in IE and go to the page 'Artists'
    and i click on a name, for example: 'Abel Equipe ELA/I Gomes'
    I get this warning :
    MuseJSAssert: Error calling selector function:Error: A security problem occurred.
    This is only in IE, not when i use Safari or Chrome
    this is the website link
    Any ideas how to solve this problem?

    There's an invalid hyperlink on the Abel Equipe ELA/I Gomes page on a bit of text that reads "with your input." You need to find this text within Muse, clear the hyperlink and enter a valid one.

  • Error in UseOneAsMany Function Error in SAP XI

    Error in UseOneAsMany Function Error in SAP XI
    Hi Experts,
    I am trying the Example of function UseOneAsMany. My Input and Output XML Files are provided below:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_MM4 xmlns:ns0="http://test/mapping.test">
       <Header>
          <MatNo>MatNo</MatNo>
          <MatDesc>MatDesc</MatDesc>
       </Header>
       <Item>
          <MatNo>MatNo1</MatNo>
          <ItemNo>ItemNo1</ItemNo>
          <MatGroup>MatGroup1</MatGroup>
          <Mattype>Mattype1</Mattype>
          <Plant>Plant1</Plant>
       </Item>
       <Item>
          <MatNo>MatNo2</MatNo>
          <ItemNo>ItemNo2</ItemNo>
          <MatGroup>MatGroup2</MatGroup>
          <Mattype>Mattype2</Mattype>
          <Plant>Plant2</Plant>
       </Item>
    </ns0:MT_MM4>
    My Expected Output should be :
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup1</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo1</MatNo>
    <ItemNo>ItemNo1</ItemNo>
    <Mattype>Mattype1</Mattype>
    <Plant>Plant1</Plant>
    </Item>
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup2</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo2</MatNo>
    <ItemNo>ItemNo2</ItemNo>
    <Mattype>Mattype2</Mattype>
    <Plant>Plant2</Plant>
    </Item>
    </ns0:MT_MM4R>
    But for me Headers are coming first and then followed by two items. Please let me know how to solve the issue and also please provide the explanation.
    Thanks,
    GIRIDHAR

    Hello,
    Change ur structure little bit (add parent node "Record") and then use java mapping pasted in below blog to remove Record node to get ur desired structure.
    File Conversion using 'Nodeception'
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
    <Record> --- 0..Unbounded
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup1</MatGroup>
    </Header>
    -<Item>  
    <MatNo>MatNo1</MatNo>
    <ItemNo>ItemNo1</ItemNo>
    <Mattype>Mattype1</Mattype>
    <Plant>Plant1</Plant>
    </Item>
    </Record>
    <Record>
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup2</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo2</MatNo>
    <ItemNo>ItemNo2</ItemNo>
    <Mattype>Mattype2</Mattype>
    <Plant>Plant2</Plant>
    </Item>
    </Record>
    </ns0:MT_MM4R>
    Thanks
    Amit Srivastava

  • Getting 'insertItemAt is not a function' Error Message

    I am using abode pro 8 and am getting a 'insertItemAt is not a function' error message using the following code. (This code below was written as an example to show the process I want - I want to clear a combo box, then add data to it.)
    The error message only appear in a one of my pdf's I currently use, otherwise it works as written. Because I want the data to appear listed from top to bottom within the combo box from 1 to 5, I insert 5 first. 5 gets inserted, but when the code tries to insert 4, it trippers the error message. Any thoughts - is there another way to insert data into a combo box?
    var i = 0;
    var ii = 5;
    var v = new Array();
    v[1] = 1;
    v[2] = 2;
    v[3] = 3;
    v[4] = 4;
    v[5] = 5;
    //Combo Box
    this.getField("Fund Company-Long-Name").clearItems();
    var a = this.getField("Fund Company-Long-Name");
    for (var i= ii;  i > 0; i--)
                 if(v[i] != undefined)
                             app.alert(i);      
                             a.insertItemAt(v[i], (i, ""));
    v[0] = " ";
    a.insertItemAt(v[0], (0, ""));
    this.getField("Fund Company-Long-Name").value = " ";  
    //================Gives this error message=============
    Acrobat Database Connectivity Built-in Functions Version 8.0
    Acrobat EScript Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Functions Version 8.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 8.0
    Acrobat Multimedia Version 8.0
    Acrobat SOAP 8.0
    a.insertItemAt is not a function
    4:Field:Mouse Down

    Yes, I'm actually looking at those two methods now. New questions arise.
    If my combo Box is called "Fund Company-Long-Name", how could I add a varying number of items to it, using the "setItems" command?
    I can get it to work for a defined number of items, as below. But I don't know how to insert a variable to replace ["A", "B", "C"] below.
    /=======================================
    this.getField("Fund Company-Long-Name").clearItems();
    var a = this.getField("Fund Company-Long-Name");
    a.setItems(["A", "B", "C"]);

Maybe you are looking for