[UDF] if not exist input element, return value must be returned "nulltext".

Hi SDNers.
I need to make a UDF for special case.
I made under UDF but it has a problem.
When I delete a element in test, I expect to be returned the "nulltext" value.
Let me know how to coding.
- source code -
public String One2One(String in1, Container container) throws StreamTransformationException{
          if (in1==null) {
               return "nulltext";
          } else {
               return in1;

Hi
Are you using the below code in the UDF??
public String One2One(String in1, Container container) throws StreamTransformationException{
if (in1==null) {
return "nulltext";
} else {
return in1;
If so it wont work. UDF itself a function and not possible to use a function inside a fn,
Try the below code,
if (in1==null) {
return "nulltext";
} else {
return in1;
Also "When I delete a element in test," -- wat does it mean?
Regards
Ramg.

Similar Messages

  • RuntimeError in mapping.......package com.itc.xi.mapping.udf does not exist

    while testing a maaping, one of the UDFs threw the following runtime error...
    Error: package com.xxx.xi.mapping.udf does not exist...
    moreover, whats the CLASSPATH of the java package com.itc.xi.mapping.*
    Message was edited by:
            sudeep dhar

    Hi,
    You seem to be referring to some extrenal class in your UDF and this class is not available under imported archives.
    Please check what is the class being refefferd and make sure it is in the imported archives,.
    Regards
    Bhavesh

  • Container element 'ADDRESSSTRINGS' does not exists

    Dear all,
    I am trying to define expression for recipient type
    it gives me error
    container element 'ADDRESSSTRINGS' does not exists
    container element 'EXPRESS' does not exists
    container element 'TYPEID' does not exists
    Can you please share the technical detail of these parameters
    or is there some other problem
    Best of regards,
    Gaurav

    Hi Gaurav,
    These are the standard task container's for the send mail step type.
    No need create these container's and already they are available in the Task container.
    Have you used the standard task to send the mail? If so just double click the Task ID and you can find these container's under the Container Tab.
    Just delete the send mail step and create a new one. It will solve the issue.
    Thanks,
    Viji.

  • Router not seeing the return value from a webservice

    Hello. I have two input fields and a button that calls a web service, is an action that is passed to a router.
    So it looks like this form-->execute web service-->router-->decision
    I'm passing back a string of success or failure as follows:
    @WebMethod
    public String doLogin(String userName, String password)
    if(userName.equals("1"))
    return "failure";
    return "success";
    It executes the method fine, but the router doesn't see the return value correctly. It always evaluates to false (which is the default)
    My text boxes and button is defined as follows:
    <af:inputText value="#{bindings.arg0.inputValue}"
    label="Username:"
    required="#{bindings.arg0.hints.mandatory}"
    columns="#{bindings.arg0.hints.displayWidth}"
    maximumLength="#{bindings.arg0.hints.precision}"
    shortDesc="#{bindings.arg0.hints.tooltip}">
    <f:validator binding="#{bindings.arg0.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.arg1.inputValue}"
    label="Password:"
    required="#{bindings.arg1.hints.mandatory}"
    columns="#{bindings.arg1.hints.displayWidth}"
    maximumLength="#{bindings.arg1.hints.precision}"
    shortDesc="#{bindings.arg1.hints.tooltip}">
    <f:validator binding="#{bindings.arg1.validator}"/>
    </af:inputText>
    <af:commandButton actionListener="#{bindings.doLogin.execute}"
    text="doLogin"
    disabled="#{!bindings.doLogin.enabled}"
    action="doLogin"/>
    </af:panelFormLayout>
    My loginpagedef.xml is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.51.88" id="loginPageDef"
    Package="customerportal.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables">
    <variable Type="java.lang.String" Name="doLogin_Return"
    IsQueriable="false" IsUpdateable="0"
    DefaultValue="${bindings.doLogin.result}"/>
    <variable Type="java.lang.String" Name="doLogin_arg0"
    IsQueriable="false"/>
    <variable Type="java.lang.String" Name="doLogin_arg1"
    IsQueriable="false"/>
    </variableIterator>
    </executables>
    <bindings>
    <methodAction id="doLogin" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="doLogin" IsViewObjectMethod="false"
    DataControl="OracleWebServices"
    InstanceName="OracleWebServices"
    ReturnName="OracleWebServices.methodResults.doLogin_OracleWebServices_doLogin_result">
    <NamedData NDName="arg0" NDValue="${bindings.doLogin_arg0}" NDType="java.lang.String"/>
    <NamedData NDName="arg1" NDType="java.lang.String"
    NDValue="${bindings.doLogin_arg1}"/>
    </methodAction>
    <attributeValues IterBinding="variables" id="arg0">
    <AttrNames>
    <Item Value="doLogin_arg0"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="variables" id="arg1">
    <AttrNames>
    <Item Value="doLogin_arg1"/>
    </AttrNames>
    </attributeValues>
    </bindings>
    </pageDefinition>
    What am I doing wrong? I can never seem to get the router to view the result coming back from the web service. Thanks in advance!

    Hi,
    Can you try this
    <method-call id="DepartmentCheck">
    <method>#{bindings.DepartmentCheck.execute}</method>
    <return-value>#{pageFlowScope.checkResult}</return-value>
    <outcome>
    <fixed-outcome>result</fixed-outcome>
    </outcome>
    </method-call>
    <router id="routerReturnCheck">
    <case>
    <expression>#{pageFlowScope.checkResult==true}</expression>
    <outcome>succes</outcome>
    </case>
    <default-outcome>return</default-outcome>
    </router>
    just put the result of a method in pageFlowScope variable then the flow case go the router where you evaluate the variable
    hope this helps

  • "An Exchange Rate Does not Exist" error while creating an item

    Hi..
    Pre-requisites: RMS is installed without base data
    We are trying to create an item in RMS by filling the required information in "Item Maintenance window" and "Supplier details" screen. After this is done when we select the "Retail by Zone" link and the application prompts an error message : "An Exchange Rate Does not Exist", and all the values in "Retail by zone" screen are not populated. How do we ressolve this?
    Thanks in Advance
    Yamini

    Also, make sure that if a currency has a rate entry for example, 01-jul-2010, then make sure that ALL other currencies have a rate entry for 01-jul-2010, even if the rate has not changed for other currencies - a little trick I learned from an Oracle consultant.
    Alan

  • Sending a return value without pass/fail message

    Hi,
    I'm using the COM adapter to talk TestComplete application.
    I have a string value test step to evaluate a return value and determine if it's pass or fail (e.g. return 0 = pass, return 1 = fail).  This works perfectly.
    However, I have added another return value (e.g. return 2), the code executed fine, but it keeps displaying that step as "Failed", which is annoying.  Is there a way to suppress this failed message?
    Basically, here's what I need to do, return 0= display pass, return 1 = display fail, return 2 = display no message or just display done.
    Thanks so much!
    Solved!
    Go to Solution.

    The String Value Test step type only evaluates to Passed or Failed.  It does not do a tristate.  In fact any of the step types in the Tests (Pass/Fail Test, Numeric Limit Test, Multiple Numeric Limit Test, String Value Test) will always be pass or fail.  They never evaluate to just done.
    The Status Expression is what makes a step Pass or Fail.  Unfortunately with the default steps you cannot change the Status Expression.  You have to create a custom step type to do that.
    What are you setting your Step.Result.String to?  Or did you change the Data Source?
    Here are 3 options:
    1- Create a custom step based on the String Value Limit test and change the Status Expression such that you get your desired behavior
    2- Use and Action step and change the Status Expression such that you get your desired behavior.
    3- Continue using the step you are using but in the Post-Expression place some logic which turns off the Step.StepFailCausesSequenceFail if you are in return 2 state
    http://zone.ni.com/devzone/cda/tut/p/id/4302
    Hope this helps
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Creation of Remote Partition DB: datasource with ID does not exist in the collection

    Hi,
    I tried to create remote partitioned DB. Followed the below link to create it.
    http://msdn.microsoft.com/en-us/library/ms174751.aspx
    In 'partition Type selection' wizard, I selected the remote data source and landed in below error.
    'datasource' with 'ID' = 'XXXX' doesn't exist in the collection
    Can some one help me to resolve it?

    Hi Hsadham,
    According to your description, you are creating a remote partition with the error "'datasource' with 'ID' = 'XXXX' doesn't exist in the collection“,
    right?
    As you can see on that link,
    If you get an error indicating the data source does not exist in the collection, you must open the project of the storage database, db-storage, and create a data source that points to the master database, db-master.
    So in your scenario, please open the project of the storage database, db-storage, and create a data source that points to the master database, db-master. And then check if this issue persists or not. Besides, please ensure that all the prerequisites had
    been done in your environment and the configuration steps are correct.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Display pass or fail in Report based on return value

    Hi,
    I'm trying to integrate TestStand with TestComplete using the ActiveX/COM server adapter.  I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete return a string value (true|false) to TestStand.
    Now I need to get the TestStand report to display "pass" or "fail" text for this sequence call,  based on the return string from TestComplete.
    Is there someplace in Expressions or Post Actions that I can state and how:
    return value "True" = pass
    return value "false" = fail
    Thanks.
    Solved!
    Go to Solution.

    Hi,
    Option 1.) Use a String Value Test.   The Limits.String would be 'True'.  This would be the easiest because you already returning strings from your ActiveX call.   You could make your ActiveX calls a String Value Test.
    Option 2.) Use a Pass/Fail Step.   You could set the returned string to a local variable and then create another Pass/Fail step that would have the Pass/Fail criteria as Locals.StringReturned == 'True'
    These are two options that hopefully can get you started....
    Thanks,
    PH

  • Can't get the correct return value ?

    Hi,
    I'am using JDBC/ODBC to connect to a MS SQL Server 7 database. I run a stored procedure which updates a table. An update trigger however may rollback the entire transaction and issue a RAISERROR. A return value should be returned after this.
    However, in my servlet, I always retrieve the return value 1 (whether the transaction was rolled back or committed). What am I doing wrong ?
    Forgive me, all you experts out there, I am a beginner ...

    A RAISERROR should produce an exception. Checking the return value shouldn't matter nor be possible.
    What error number is being used for the RAISERROR? I tried different numbers and ended up using the standard 16. Is the trigger returning immediately following the RAISERROR? I remember problems with that, the stored proc would continue if I didn't.

  • Simple NOT EXIST but returns wrong values

    I have been doing this for a couple of month and this makes sense to me but I get the wrong answer.
    T1 contains 1 to 10
    U2 contains 1 to 5
    SELECT T1a.num
    FROM T1 T1a
    WHERE NOT EXISTS
    (select T2b.num
    from T1 T1b, U2
    WHERE T1b.num = U2.num
    GROUP BY T1a.num
    I expect to get 6 to 10,
    but am getting NO ROWS SELECTED.
    Ideas more than welcome

    You are trying to :-
    1. Use table T1 twice which is not needed
    2. In the inner sub-query, you are using column T2b.num
    alias 'T2b' is not defined, in which case you should be
    getting SQL Error
    (select T2b.num
    ERROR at line 4:
    ORA-00904: invalid column name
    Try This,
    1 SELECT T1a.num
    2 FROM T1 T1a
    3 WHERE NOT EXISTS
    4 (select Null
    5 from U2
    6 WHERE U2.num = T1a.num
    7 )
    8* GROUP BY T1a.num
    Test Db>/
    NUM
    6
    7
    8
    9
    10

  • Invoke/db adapter get not the return value of a procedure

    Hi,
    I have a problem with a db adapter.
    A db adapter calls a wrapper procedure and fill data in a object type.
    the wrapper procedure call a procedure in a other schema.
    In that schema the procedure make a insert in a database table
    and give a return value(success_msg or error_msg).
    schema1.pkg_wrapper.proc1(p_in IN schema2.param1_t,p_out out schema2.param2_t)
    is
    begin
    schema2.pkg.proc1(p_in IN param1_t,p_out out param2_t)
    end;
    In one enviroment the bpel process running well in the second enviroment not.
    I had found that the bpel process write in the database and the out parameter is filled with 'ok'.
    But there ist a problem to transfer the value from the called procedure to the db adpater/invoke.
    The releases of the application server and the database a the same, also the releases of jdeveloper.
    My second problem the instance didn't comming back and the entry in the domain.log is
    <2008-04-25 12:51:48,056> <WARN> <mmerkel.collaxa.cube> <BaseCubeSessionBean::logWarning> Error while invoking bean "finder": [com.collaxa.cube.engine.core.InstanceNotFoundException: Instance not found in datasource.
    The process domain was unable to fetch the instance with key "2e52cdd31acca03e:5800031c:119819b87bf:-7bdd" from the datasource.
    Please check that the instance key "2e52cdd31acca03e:5800031c:119819b87bf:-7bdd" refers to a valid instance that has been started and not removed from the process domain.
    ORABPEL-02152
    Instance not found in datasource.
    The process domain was unable to fetch the instance with key "2e52cdd31acca03e:5800031c:119819b87bf:-7bdd" from the datasource.
    Please check that the instance key "2e52cdd31acca03e:5800031c:119819b87bf:-7bdd" refers to a valid instance that has been started and not removed from the process domain.
    and
    <2008-04-25 13:47:53,666> <ERROR> <mmerkel.collaxa.cube.engine> <CubeEngine::processStaleInstance> Instance 2670008 has already been marked as stale ... skipping
    <2008-04-25 13:47:53,672> <ERROR> <mmerkel.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "instance manager": [com.collaxa.cube.engine.core.InstanceStaleException: Inconsistent process guid.
    The instance "2670008" was created with process guid "MD5{ed3f0862561da5254a6cf2fd5a440500}"; the current guid for the process "bucheReo" (revision "1.0") is "MD5{0a8bf160d2ff79eabb2f4b479e876cd0}". Whenever a process is deployed on top of an existing process with the same process id and revision tag, all instances created from the previous process are marked as stale.
    If you are accessing this instance from the console, your browser may be referring to an out-of-date page; please click on the Instances tab to get the current list of active instances.
    ORABPEL-02032
    Inconsistent process guid.
    The instance "2670008" was created with process guid "MD5{ed3f0862561da5254a6cf2fd5a440500}"; the current guid for the process "bucheReo" (revision "1.0") is "MD5{0a8bf160d2ff79eabb2f4b479e876cd0}". Whenever a process is deployed on top of an existing process with the same process id and revision tag, all instances created from the previous process are marked as stale.
    If you are accessing this instance from the console, your browser may be referring to an out-of-date page; please click on the Instances tab to get the current list of active instances.
    Have anyone a idea?
    Every help is welcome?
    Thanks, Michael

    Hi,
    “You should be able to use an assign to copy an output parameter value from the BPEL variable associated with the output parameter of the stored procedure.”
    Yes, that is working well for the input variable. But that doesn’t work for the output variable in the second environment.
    The whole bpel process working well in one environment and does not in the second.
    By now I think there is any adjustment in the database or in the aplication server that we not found and that make the trouble
    What I do is that a invoke element (Invoke_WriteREOInDB) call the db adapter WriteREOInDB. My input variable WriteREOInDB_InputVariable is filled, the db adapater call a procedure and I see my data in the table. Now the procedure gives the result value ‘ok’
    In the invoke element I had the output variable WriteREOInDB_OutputVariable. In the next step I want to assign the value of WriteREOInDB_OutputVariable to my global output variable.
    But the instance didn’t coming back. In the console I get the following message:
    “Instance not found in datasource.
    The process domain was unable to fetch the instance with key "2e52cdd31acca03e:5800031c:119819b87bf:-7e0b" from the data source.”
    So I see nothing in the bpel console.
    Any idea?
    Thanks
    Michael

  • UDF Required for checking input value.

    Hi,
         I'm in need of an UDF for checking the input value and pass constant based on that.
    Requirement.
                        We are having 1 field on the source side which need to be checked.
                        If the first character of the input is alphabet (No case sensitive)
                        then pass a constant "X" to the output field.
                        Other wise donot create that particular element.
    Example : If INPUT = A12345 then OUTPUT = X
                    If INPUT = 12345D then OUTPUT element must not be created.
    Regards,
    Swapna

    use the following code in a udf and then pass the result to createIf standard function to help you with the requirement.
    String chkValue = input.subString(0,1);
    String flag = "false";
    if ((chkValue >= 'A' && chkValue <= 'Z') || (chkValue >= 'a' && chkValue <= 'z')) {
    flag = "true";
                          return flag;
    else
    {return flag;}

  • Input element in web dynpro java not working

    Hi,
    Iam new to webdynpro java. iam trying on external context mapping example from sap help.when i run the application i have assigned a context to a input element that should be accessed  by another other component's window view .when i follow steps given in diagram for external context mapping when i run the application i am not able to enter the data into the input textbox.it became read only.plz suggest me a good example for external context mapping and some times i am not able to enter a value for input field when i assign a context attribute to it.i have assigned a node context to the input element.
    Thanks and regards
    prasad

    Hi Prasad,
    An externally mapped node always exists within the context of a component interface controller and have its isInputElement property set to true.
    External context mapping is possible only for independent nodes of a component interface controller not independent attributes.
    Also, for external context mapping, look at below thread -
    external context mapping
    Regards,
    Sen

  • ALV Filter Selection w/ error "WBS element 0000000000000000 does not exist"

    Hello,
    In a few ALV reports, we have WBS Element column showed in ALV list and WBS Element defined as type BSEG-PROJK, which has conversion routine ABPSP.
    When WBS Element is used for ALV list Filter, in Selection screen, error message "WBS element 0000000000000000 does not exist" is pop up as we hit Enter key or click on u201CSelection optionsu201D button with no value entered in Input fields.
    We get same error even after we enter an existing WBS Element in Low selection input field and hit Enter key.
    Itu2019s ok if we enter existing WBS Element value in both Low and High selection input fields.
    We know we have workaround by entering both Low and High input field, and we can fix ALV reports by using character based WBS Element, such as PRPS-POSKI.
    BUT, as users told me, they donu2019t have this problem before and it just happened. We checked the recent Transports and couldnu2019t see anything relevant.
    Could any of you let me know if you have any clue or if thereu2019s any other way to fix it besides changing report by report.
    Thank you.
    SL

    Hello,
    In a few ALV reports, we have WBS Element column showed in ALV list and WBS Element defined as type BSEG-PROJK, which has conversion routine ABPSP.
    When WBS Element is used for ALV list Filter, in Selection screen, error message "WBS element 0000000000000000 does not exist" is pop up as we hit Enter key or click on u201CSelection optionsu201D button with no value entered in Input fields.
    We get same error even after we enter an existing WBS Element in Low selection input field and hit Enter key.
    Itu2019s ok if we enter existing WBS Element value in both Low and High selection input fields.
    We know we have workaround by entering both Low and High input field, and we can fix ALV reports by using character based WBS Element, such as PRPS-POSKI.
    BUT, as users told me, they donu2019t have this problem before and it just happened. We checked the recent Transports and couldnu2019t see anything relevant.
    Could any of you let me know if you have any clue or if thereu2019s any other way to fix it besides changing report by report.
    Thank you.
    SL

  • Start screen does not exist in batch input data

    I'm using .NET Connector calling Rfc_Call_Transaction funtion throught a proxy, i stablished all the params as you can see in the code below, but i get the message cited in the subject 'Start screen does not exist in batch input data'.
    What do you think is happening? or Where can i get the samples needed for perform this type of request?
            private BDCDATA FillBDCDATA(string Program,
                                        string Dynbegin,
                                        string Dynpro,
                                        string Fnam,
                                        string Fval)
                BDCDATA st_DATA = new BDCDATA();
                st_DATA.Program = Program;
                st_DATA.Dynbegin = Dynbegin;
                st_DATA.Dynpro = Dynpro;
                st_DATA.Fnam = Fnam;
                st_DATA.Fval = Fval;
                return st_DATA;
            private void button3_Click(object sender, System.EventArgs e)
                SAPProxy proxy = null;
                try
                    proxy = new SAPProxy("ASHOST="  + txtHost.Text +
                        " SYSNR="  + txtSysnr.Text +
                        " CLIENT=" + txtMand.Text +
                        " LANG="   + txtLang.Text +
                        " USER="   + txtUser.Text +
                        " PASSWD=" + txtPass.Text);
                catch(Exception excpt)
                    txtMsg.Text = excpt.Message;
                if (proxy == null)
                    return;
                BDCDATATable tblBDCDATA = new BDCDATATable();
                MESSAGEINF infMessage = new MESSAGEINF();
                //BDCDATA st_DATA = new BDCDATA();
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BDC_OKCODE", "/00"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-BLDAT", "30.12.2004"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-VERSN", "0"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "FMPS-FIKRS", "ente"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-JAHR",  "2005"));
                proxy.Rfc_Call_Transaction("FM9J","", out infMessage, ref tblBDCDATA);
                txtMsg.Text = infMessage.Msgtx;

    Jose,
    I imagine you are passing, for the Dynbegin parameter of the private method FillBDCDATA, invalid values.
    Why don't you try this way:
    tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "X", "0111", " "," "));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BDC_OKCODE", "/00"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-BLDAT", "30.12.2004"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-VERSN", "0"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "FMPS-FIKRS", "ente"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-JAHR", "2005"));
    I hope I could help you.
    Regards,
    Daniel Carvalho

Maybe you are looking for

  • Disable menubar and location from popup dialog in new browser window

    How to hide the toolbar, menubar, location and status for the popup window (not inline, but new browser window style) using ADF 11g? Just like HTML javascript: window.open ('page.jsp', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, m

  • Need to change Pipeline URL

    Hello, I need to change the pipeline url for my XI. I did changed it in SLD -> Business System and in SXMB_ADM -> Integration Engine Configuration. But when I check the configuration in SXMB_ADM (F7), it seems that everything is not correct: Yellow t

  • The problem of Shockwave10 online setup

    It seems the online setup of Shockwave10 has problem. Many times, shockwave movie can not be seen after Shockwave10 is installed on line, especially on Win98/WinXP(I guess it has the same matter in winMe) OS.(And I guess it relates to IE version, but

  • I have tried to add nosquint addon and am told will be added after restart, but nothing happens

    The install dialog box says firefox in not allowing the, and I click the allow button. I restart the computer, but nothing happens. I had no trouble install previously (I had a problem with a program and had to reinstall firefox. The addon does not c

  • [SOLVED] E173u-2 HELP?

    i am having problems connecting to the internet with my e173u-2 supplied by virgin mobile australia. it shows up in networkmanager applet in gnome 3.42 and i can turn it on but when i try to connect it fails but of course it works fine in win 7. i ha