UDF question - how detect a non existing sender element

Hi all,
i have a question according UDF. I have a sender message that contains a field, that sometimes has a content ans some time not. If no content then als the element doesn't exists (occurrence 0...1). The target element of this one has the occurrence status 1.
So i have to create a function, that writes an empty string in case of no sender element. I know that i can configure this function with the MM Blocks (if exists ...). But for re-using reasons i'd like to create a UDF for this function.
Now my question, how can i detect if no data in the sender (src) file?
Here my try, which doesn't works:
AbstractTrace trace = container.getTrace();
trace.addInfo("container: "container);+
trace.addInfo("iData: "iData);+
if(iData == null){
+     trace.addInfo("NO ELEMENT found!");+
if(container == null){
+     trace.addInfo("NO container found!");+
if(iData.length() < 1){
+     trace.addInfo("Empty or No element found - insert empty entry (space)");+
+     return " ";+
return iData;
Thanks in advance
Michael

Hi Michael,
Create a UDF of type value,
Suppose in is the input and out is output of UDF..
Then Code as follows:
if(in==null)
   out = " Empty String Found ";
else
   out = in ;
return out;
Use this code...and get ur problem solved!!!
Regards,
AshwinM
[Dont forget to mark the answer]

Similar Messages

  • How do delete non-existing Repository

    There was a repository with a server and some VMs. I accidentally destroyed the LUN holding that storage. How do I clear it from VM Manager's display? I need to recreate the server pool, repository, discover the host, and I'd like to use the same names and IP addresses. I can always uninstall/reinstall manager, but that seems a bit harsh.
    Oracle VM 3.1.1 Manager and a single, non-clustered host.

    Hi, out of curiosity, I just ran the script on my test environment that has currently no errors. Is this what the output should look like? Tehre was no questions...
    [root@ovmmgr-ec bin]# ./ovm_upgrade.sh dbuser=ovs dbpass=Oracle34 --fixup
    find: /tmp/ovmpatches: No such file or directory
    Copying xsl files to patch path location
    `./transform_003000002000_010.xsl' -> `/tmp/ovmpatches/transform_003000002000_01 0.xsl'
    `./transform_003000003000_010.xsl' -> `/tmp/ovmpatches/transform_003000003000_01 0.xsl'
    Copying deleted classes files to patch path location
    `./deletedClasses.xml' -> `/tmp/ovmpatches/deletedClasses.xml'
    INFO (OvmUpgrade.java:117) Oracle OVM Manager Upgrade Processor
    INFO (OvmUpgrade.java:118)
    INFO (OvmUpgrade.java:326) Upgrade Initialization Starting
    INFO (OdofDirector.java:219) Oracle Distributed Object Fabric (ODOF): Copyright (C) 2007, 2011 Oracle. All rights reserved.
    INFO (OdofDirector.java:220) ODOF Version: 1.0.0.0
    INFO (OdofDirector.java:221) Initializing...
    INFO (OdofDirector.java:278) Initialization Complete!
    INFO (OvmUpgrade.java:328) Upgrade Initialization Complete
    INFO (FixupStage.java:23) Database Fixup Starting
    INFO (ObjectStore.java:133) Fixing up Exchange... (2147 objects)
    INFO (ObjectStore.java:144) Fixup has processed 1000 of 2147 objects
    INFO (ObjectStore.java:144) Fixup has processed 2000 of 2147 objects
    INFO (ObjectStore.java:252) Fixup Complete!
    INFO (FixupStage.java:26) Database Fixup Complete
    [root@ovmmgr-ec bin]#
    Regards,
    T

  • XPath - how to get non exist nodes? please help!

    Hi!
    There is a so xml structure:
    main_node
    node_a
    node_a_1
    node_a_2
    node_a_3
    the 'node_a' node repeats 3times in the XML. The 'node_a_2' node is not in the first recurrence of 'node_a' node.
    When I want to get the 'node_a_2' nodes by XPath, I get a List, which consists of 2 element.
    But I want to get a so list, which consists of 3 elements, the first is null and the others are the elements of 'node_a_2' node!
    This is the code:
    List getElementByXPath(String Path) throws org.jaxen.JaxenException {
    org.jaxen.XPath P = new org.jaxen.jdom.JDOMXPath("/"+Path.replace(".","/"));
    List Back = P.selectNodes(ArrivedXML.getRootElement());
    return Back;
    Please help, how can i do it!
    Thank You very much!
    rflair

    the structure again...:
    main_node
    ....node_a
    ........node_a_1
    ........node_a_2
    ........node_a_3

  • Yet another pointless question about the practically non-existent iMac G5 Apple Hardware Test (AHT) disk.

    I have a 17" iMac G5 (iSight model) also known as model A1144, PowerMac12,1 or MA063LL/A.
    Where do I download the Apple Hardware Test (AHT) disk for this machine? Apparently nowhere. However, it would really help me on my quest if I knew what I was looking for.
    Does anyone know what AHT version is compatable with my machine? 2.2.1? 2.3.1?
    How about the part number on the disk? I have some Intel disks that say 2Z691-5734-A that (obviously) won't work.
    Is the AHT on Disk 1 or Disk 2? I'm starting to think there never was an AHT for this model.
    Where do I get those ASD disks the so called "geniuses" have?

    Disk 1: 2Z691-53179-A
    Disk 2: 2Z691-5493-A
    Compatible with eMac (2005), iBook G4 (Late 2004), iBook G4 (Mid 2005), iMac G5 17-inch (ALS), iMac G5 20-inch (ALS), iMac G5 (17-inch iSight), iMac G5 (20-inch iSight), iMac (Early 2006 17-inch), iMac (Early 2006 20-inch), Mac mini, Mac mini (Late 2005), Mac mini (Early 2006), MacBook Pro, Power Mac G5 (Early 2005), Power Mac G5 (Late 2005), PowerBook G4 (15-inch Double-Layer SD), PowerBook G4 (17-inch Double-Layer SD)
    http://www.welovemacs.com/2z69153179a.html
    AHT I think was on a seperate CD.
    Thanks Kappy, if v2.2.1 then search for...
    018-1680-A.dmg

  • XML/XPath question--how to select a range of elements with XPath?

    Hi there,
    I have an XML DOM in memory. I need to do hold it and issue only parts of it to my client app in "pages". Each page would be a self-contained XML doc, but would be a subset of the original doc. So for instance the first page is top-level elements 1-5. 2nd page would be 6-10 etc. Is this solution best solved with XPath? If not, what's the best way? If so, I have the following question:
    Is there a way to use XPath to select a range of nodes based on position within the document? I know I can do an XPath query that will return a single Node based on position. So for example if I wanted the first node in some XML Book Catalog I could do XPathAPI.selectSingleNode(doc, "/Catalog/Book[position()=1]"); I could wrap the previous call in a loop, replacing the numeric literal each time, but that seems horribly inefficient.
    Any ideas? Thanks much in advance!
    Toby Buckley

    Your question is about marking a range of cells. 99% of the code posted has nothing to do with this. If you want to create a simple table for test purposes then just do:
    JTable table = new JTable(10, 5);
    JScrollPane scrollPane = new JScrollPane( table );
    getContentPane().add( scrollPane );
    In three line of code you have a simple demo program.
    When I leave the mouse button again, these bunch/range of cells shall stay "marked". table.setCellSelectionEnabled( true );
    and I'd like to obtain, say, a vector of a vector containing just those data marked beforeUse the getSelectedRows() and getSelectedColumns() methods for this information. I would suggest you create a Point object to reflect the row/column position and then add the point to an ArrayList.

  • HT5312 when you forget your security question how do you ask  apple to send u the answer

    If I forgot my security question how can i let apple send me the answer on my email

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    (104086)

  • Try the following: Where is my profine stored? It brings you to non existing buttons etc. This is so for most iof the support.

    It 's a general problem: the structure of the "help sysytem" has been changed (perhaps in part I dion't kow) so the the flow of questions ends up to non existing (no more existing..) tips, suggestions, or whole instructions of how to, no more existing or operating.
    Very frustrating.
    I've foun my profile, in Linux, on the terminal with something like "find -name *.mab " and got it in a split second. None of the suggested ways in the help suite worked!
    This is a general question for the site designers, thanks for helping [Indeed: it's the Help menu...]. Greets,
    Giancarlo.

    unhappy and frustrated wrote:
    You make it difficult to buy your products
    Errr... no, they really don't.
    You don't need a disk (which will be out of date by the time you get it anyway) - just download the current version and insert the serial number when prompted.

  • NI Elvis throwing error 7, NI 488: Non existent board, NI Elvis traditional throwing error 2, NI 488: Write detects no Listeners when attempting to launch labview

    I wrote a program on a laptop in our lab that used both the NI Elvis power supplies and DMM.  On the laptops in the lab, which connected to NI Elvis through a board in the NI-PXIe device the program worked perfectly both as a vi and as an executable.  The program needed to be put on some computers in another lab for student use with a different version of labview, and everything worked except for the variable power supplies.  I activated debugging and it reported Error 7 at New File, NI 488: Non-Existent Board.  After attempting to trouble shoot this and not finding any helpful results I attempted to rewrite the program on the computers directly, since I could only put the program on the computers as an executable since it was written in 8.6 and the computers only have 8.0 and 8.2.  To begin I was going to launch labview from NI Elvis to use one of the example codes as a base for my program.  When attempting to do this I got Error 2 with the possible causes being Labview memory full and NI 488: Write detected no listeners.  My question is are the two errors related, and how can I fix these errors?  All the NI Elvis software is 2.0, the original program was written in Labview 8.6, the computers have Labview 8.0 and 8.2 on them.  The NI Elvis devices are connected directly through the computers, rather than through another device, I'm not sure if this might be causing some obscure hardware issue.

    Hello Chris,
    It looks like this error is associated with not having administrator privileges. Take a look at this other forum post for more information:
    http://forums.ni.com/t5/Academic-Hardware-Products-NI/Error-2-when-starting-LabVIEW-from-ELVIS-Instr...
    If you can log in as an administrator you should be able to avoid getting error 2 when you launch LabVIEW from NI Elvis. Alternatively, you can upgrade to NI-ELVIS 3.0, because the issue is fixed in that version of NI-ELVIS. You can find this by going to ni.com/support and searching for "NI-ELVIS 3.0"
    Colden

  • HT5312 Ok So I did everything it told me but then when I went to the part where it asks you the security questions (Third picture) It didnt have send reset security info thingy! So how am I supposed to reset them now?

    Ok So I did everything it told me but then when I went to the part where it asks you the security questions (Third picture) It didnt have send reset security info thingy! So how am I supposed to reset them now?

    The email response is automated, and almost certainly is detected as "junk" or "spam". So, try again and check your spam folders for their reply.

  • I purchased 2 itunes ecards and they were not received and I am unable to edit them.  support is non existent!!  Any ideas how I can cancel these since they weren't received?

    I ordered two itunes cards tonight and my granddaughter didn't receive either of them!
    I was unable to obtain online support of any kind.
    The gift view will not allow me to edit the gift, delte or change it. 
    Any ideas how I can delete these from my account?  Itunes support is non-existent!!

    She's checked the spam folder on her email account as well as the inbox ? You should also be able to try resending it (and double-check the email address) : http://support.apple.com/kb/HT1541
    If you can't then contact iTunes Support :  http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • My iPhone 5S prompts me for my password to an Apple ID email that no longer exists as an account.  How do I change my Apple ID address without having to change the primary address to a non-existent email account?

    I cannot sign into icloud on my phone because the Apple ID is an email account that has been deactivated and deleted.  How can I change my Apple ID without having to change the primary email address to this non-existent account? If I did so, I wouldn't be able to access the account to receive the verification email. Please help!

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You should not need to verify the old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • So, I made my account a while ago before I had an iPhone so I can get music. The result of that I can't remember my security questions, and it tells me to send a rescue email an alert, but it doesn't show you how to get to that page. Can someone help me?

    So, I made my account a while ago before I had an iPhone so I can get music. The result of that I can't remember my security questions, and it tells me to send a rescue email an alert, but it doesn't show you how to get to that page. I am getting quite annoyed because apples hours arent the best fitted to my scedule since I have school and work, so I cant call and ask how to get fixed. Please help me all I want to do is buy some music...

    Click here and fill out the form.
    (90729)

  • HT5616 I have an apple id; but when I try to sign in to iCloud, I get the msg that the apple id is not an iCloud account.  However, apple was able to bill me for my non-existent iCloud account.  How does that happen?

    I have an apple id; but when I try to sign in to iCloud, I get the msg that the apple id is not an iCloud account.  However, apple was able to bill me for my non-existent iCloud account.  How does that happen?

    If you didn't create an iCloud account on an iOS device or Mac, you don't have one.  You can't create an account on a PC.  If you were charged for an iCloud storage upgrade without having an account, contact the Apple online store at the bottom of this page for a refund.

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

Maybe you are looking for

  • How to open  a tiff file on a specific page?

    Hi, I would like to open a tif file in internet explorer at a specific page. My tif file gets 3 pages. I succeed in opening it in internet explorer at the first page by just cliking on this link: But i would like to open the tif file directly at its

  • Uploading of Excel data in Internal Table in WebUI

    Hello All , I have Requirment to Upload the .xls or .xlxs file into Excel . Can any one explain me me how to do i have followed i have used the following code 1. In the application use file upload to upload the file. 2. caputure the content and lengt

  • Webutil_host.host problems (bugs???)

    Hi, I'm using the webutil_host.host(commandline) command to execute batchfiles on a client pc. These batch files are also echoing messages to the screen. In the client server version, when I use the host command, the messages appear in my ms-dos box.

  • Disable text as black

    When I export my book to PDF some text in some documents prints as low resolution dark black. My documents in InDesign show no sign of this. I read that "disable text as black" could be a potential solution. Where would I find this option -- I don't

  • Grey question mark in harddrive window

    On my iMac OSX10.4.8, When I open the Macintosh HD window, either from the desktop or the dock, a large, static,grey question mark appears at the top of the window on the mettalic looking window frame, just to the left of the small (spotlight?) searc