Expression editor: generic function GET

Hi there,
I want to send an e-mail, that contains context data with cardinatlity 1..n.
My context looks like this:
|- Data Object (1..1)
|---STATUS (1..n)
|----- ApprovedBy (0..1)
|----- ApprovedOn (0..1)
|----- DeclinedBy (0..1)
|----- DeclinedOn (0..1)
|----- DeclinedReason (0..1)
For printing the declining reason in the e-mail, I tried the following:
get(DataObject/Status/DeclinedReason,count(DataObject/Status/DeclinedReason))
This should retrieve the last "DeclinedReason" reason entry, but I get the following log entry:
error commit():Caught exception while dispatching onCommit events: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
Even get(DataObject/Status/DeclinedReason,1) doesn't work, although count(DataObject/Status/DeclinedReason) returns 1.
Can you tell me how to retrieve the fields of the last STATUS element?

Cheers, it works now:
get(DataObject/Status/DeclinedBy,(count(DataObject/Status/DeclinedBy) - 1))
I thought, I tried that before

Similar Messages

  • Including customized xquery functions in XQuery/XSLT expression Editor-OSB

    Hi,
    I have written a customized xquery function. I want this to be included in the List of Xquery Functions which is displayed by Oracle Service Bus in the XQuery/XSLT
    Expression Editor. OSB displays the built in xquery functions in the XSLT/Xquey Expression Editor. Is there any way to add the customised xquery to this list, so that it can be dragged and dropped later?
    Thanks,
    Balaji.

    I doubt if that is exposed out side of Oracle Engineering (Not public/documented). Please raise a support ticket for enhancement. If PM should concur you might get the steps that need to be performed for this feature.
    Thanks
    Manoj
    Edited by: Manoj Neelapu on Jun 8, 2010 8:37 AM

  • User and global function not resolved and not visible in expression editor

    Testing ODI 11.1, I'm trying to affect the value of a (project) variable with a project function result within an ODI package.
    My text variable is actually affected but with the litteral name "myfunction('myarg')" instead of its proper result (implemented with Oracle but it doesn't even get so far).
    Best hint I got : when I open an expression editor, my variable is visible but my project function is not (although clearly accessible through the project browser tree ; same behavior at global level )
    Am I missing something obvious ?
    Thanks

    Hi,
    In the following case study, and I quote from it..
    " Note that you should never see the function names in the generated code. If you do, check out the following elements:
    User Function names are case sensitive. Make sure that you are using the appropriate combination of uppercase and lowercase characters
    Make sure that you are using the appropriate number of parameters, and that they have the appropriate type (string, number or date)
    Make sure that there is a definition for the User Function for the technology in which it is running. This last case may be the easiest one to oversee, so try to keep it in mind!
    As long as you see SQL code in place of the User Function name, the substitution happened successfully."
    found ....
    http://blogs.oracle.com/dataintegration/2009/09/odi_user_functions_a_case_stud.html

  • Unable to See the Technology Function in The Expression Editor- ODI 11G

    Hi,
    I am developing Interface whereas i am unable to see the Technology functions in the Expression Editor where i am trying to do some transformation .
    Secondly in the Header it is showing Default language in place of SQL(Oracle)
    any fix please..
    Thanks,
    KP

    I fixed it myself- thanks
    Below was the step i did which resolved the issue. hope this will help others
    Go to ODI Studio
    In Topology- Expand Language
    Import New Language
    import in synonym INSERT_UPDATE mode
    The Language definitions from $ODI_HOME/oracledi/xml-reference/LANG_SQL.xml
    click OK
    close ODI Studio and Open again. that fixed my issue.
    Thanks,

  • Not able to functions in the expression editor

    Hi,
    I have Installed ODI "11.1.1.5".
    While doing the column mapping I am not able to see any default functions (which will be on bottom left side) like string functions,math functions.....etc in the expression editor....but I am able to see the all the tree structure on the right side like global variables,local variables,odiref functions....etc....
    Please help me out on this......
    regards,
    Sai.

    Hi Sai,
    In mapping property (when you select a mapping column in interface) > implementation tab > you can find pencil image, click the same icon it will open a Expression Edition window where you can find string functionality, math function etc
    Eg: in Expression Edition window you can find functions for String, expand String and you can find String functions. For Math, expand Operators and you can find Math operators like +, _, * etc.,
    Regards,
    Phanikanth

  • In the expression editor dialog box my TAB key doesn't function correctly

    This is bizarre behavior that seems to have started recently.
    In Visual Studio 2012, an SSRS project, any expression editor dialog:
    The tab key doesn't work right.
    Open the expression editor and:
    * I see a blinking cursor and I can type in the expression box.
    * If I hit the tab key, the cursor disappears and I cannot type.  I appear to lose focus in the editor but focus doesn't appear to go anywhere else in the dialog box.
    * If I hit the tab key a 2nd time, the cursor is still gone and I cannot type. 
    * If I hit the tab key a 3rd time, I can finally type again and note that I am now
    3 tabstops in.  In other words it seems like the tabs were working but I lost the ability to type anything until I "tab" 3 magical times. 
    I can work around this by hitting tab key then grabbing the mouse and clicking where the cursor SHOULD be which returns focus to the text area.
    Hopefully this image helps clarify:
    Anybody know what is wrong?
    Microsoft Visual Studio Professional 2012
    Version 11.0.61030.00 Update 4
    Microsoft .NET Framework
    Version 4.5.50709
    Installed Version: Professional
    LightSwitch for Visual Studio 2012   04938-004-0034007-02367
    Microsoft LightSwitch for Visual Studio 2012
    Office Developer Tools   04938-004-0034007-02367
    Microsoft Office Developer Tools
    Team Explorer for Visual Studio 2012   04938-004-0034007-02367
    Microsoft Team Explorer for Visual Studio 2012
    Visual Basic 2012   04938-004-0034007-02367
    Microsoft Visual Basic 2012
    Visual C# 2012   04938-004-0034007-02367
    Microsoft Visual C# 2012
    Visual C++ 2012   04938-004-0034007-02367
    Microsoft Visual C++ 2012
    Visual F# 2012   04938-004-0034007-02367
    Microsoft Visual F# 2012
    Visual Studio 2012 Code Analysis Spell Checker   04938-004-0034007-02367
    Microsoft® Visual Studio® 2012 Code Analysis Spell Checker
    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
    Visual Studio 2012 SharePoint Developer Tools   04938-004-0034007-02367
    Microsoft Visual Studio 2012 SharePoint Developer Tools
    ASP.NET and Web Tools   2012.3.41009
    Microsoft Web Developer Tools contains the following components:
    Support for creating and opening ASP.NET web projects
    Browser Link: A communication channel between Visual Studio and browsers
    Editor extensions for HTML, CSS, and JavaScript
    Page Inspector: Inspection tool for ASP.NET web projects
    Scaffolding: A framework for building and running code generators
    Server Explorer extensions for Windows Azure Web Sites
    Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure
    Color Theme Designer   1.0
    Designer for creating new color themes
    NuGet Package Manager   2.8.50126.400
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
    PreEmptive Analytics Visualizer   1.0
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
    SQL Server Analysis Services   
    Microsoft SQL Server Analysis Services Designer 
    Version 11.0.3369.0
    SQL Server Data Tools   11.1.40706.0
    Microsoft SQL Server Data Tools
    SQL Server Integration Services   
    Microsoft SQL Server Integration Services Designer
    Version 11.0.3369.0
    SQL Server Reporting Services   
    Microsoft SQL Server Reporting Services Designers 
    Version 11.0.3369.0
    BIDSHelper
    BIDS Helper 2012 - An add-in to extend SQL Server Data Tools - Business Intelligence (SSDTBI formerly BI Development Studio)
    (c) 2014 Version 1.6.6.0
    http://www.codeplex.com/bidshelper
    SQL Prompt 6
    For more information about SQL Prompt, see the Red Gate website at
    http://www.red-gate.com
    For customer support, call 1-866-733-4283.
    Copyright © 2006–2009 Red Gate Software Ltd

    Hi Bostaevski,
    Thank you for posting in MSDN forum.
    According to your description, as you said that the cursor disappears and cannot type issue. It seems that the issue may be not Visual Studio the VS IDE issue.
    In addition, I find a similar thread about the
    Expression Editor Cursor Issue,
    please see:  
    http://www.beta.microsoft.com/VisualStudio/feedbackdetail/view/780682/vs-2012-rdlc-expression-editor-cursor-issue#.
    Therefore, I suggest you could also try to press alt with left and right arrow keys and check if it is works fine.
    Thnank for your understanding!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SSRS date format in Expression Editor issue

    Hi,
    In the SSRS Report I am using a date field in the expression(=Fields!StartDate.Value), it returns the values in 'mm:dd:yyyy hh:mm:ss'. I dont want the hh:mm:ss part, I want only mm:dd:yyyy. is it possible using the expression editor with the built in SSRS functions?
    Thanks,

    Hi Mahasweta,
    Thanks a lot again ......=formatdatetime(Fields!StartDate.Value,2) works .......
    Please Note : While using format(Fields!StartDate.Value,"mm/dd/yyyy"), i didnt get the 'mm' part, there was '00', rest dd and yyyy works file. Where as =formatdatetime(Fields!StartDate.Value,2) works perfectly.
    In the =formatdatetime(Fields!StartDate.Value,2) expression, what does this '2' stands for? where shall i get more information....

  • Return as XML in NWDS Expression editor

    Hello experts,
    when I`m building mapping in swing application, I can set that target node will be returned as XML (return as XML checkbox in context menu).
    I did not find that choice in expression editor in NWDS.
    Can you please point me how to get same or at least similar functionality in NWDS?
    Thank you
    VB

    Nobody challenged this before?
    I cannot believe - it is really simple in java client in mapping, but I need it in BPM process creation.
    I want to use that for simple logging using reporting activity. I want to send whole raw xml into one field of reporting activity, because it is problem with 0..unbounded elements mapping into reporting activity.

  • Image not uploading to Express Editor

    Hello,
    I have a high resolution scan of an old glass negative image that I just uploaded to PS.
    I need to do some editing/cleaning however when I click on the express editor,  the image selected does not appear.  I only get a white blank and no image.  The original scan is at 5800dpi. 
    Why cant I get the Image to appear in the Express Editor?

    Try the Express forum:
    http://forums.adobe.com/community/psexpress/psexpress_onlinetools

  • Receiver Determination -- Expression Editor is empty

    Hi all,
    Scenario is the following:
    SAP (RFC) sends data to XI (3.0), XI sends it to Oracle DB (stored procedure)and gets back the return-message from Oracle, then forwards it to SAP (RFC). (Inbound Synchronous). Everything works well.
    Now I'd like to add just a condition to the existing  Receiver Determination and here's my problem:
    Receiver Determination --> Conditions --> Left Operand --> Expression Editor (there's no structure, everything empty!) I've even refreshed xi cache etc. No success!
    Could you please help me? All kind of suggestions / documentation are welcome!
    Thank you in advance!
    Greetings from NC
    Khaled

    Hi all,
    Thank you very much for your suggestions. FYI, I've done the followings:
    - Did clear SLD cache and 'Complete Cache Refresh' (TA:sxi_cache).
    - Did insert manually an xPath expression --> getting errors.
    - Did add the SWCV of Sender to the Receiver and vice versa (in SLD) --> so there's a link between both.
    Still not working and getting the message in Integration Builder: "Message interface no longer exists in the Integration Repository."
    I'll appreciate any further suggestions.
    Have a good time!
    Regards
    Khaled

  • Read source XML as a string in expression editor

    Hi all,
    Is there any way to read an entire container objects source (an XML message) in an integration process as a string using an xpath expression in the expression editor?
    I would like to pass the source XML of a container object as a string into an import parameter in a mapping.
    I have solved for now by creating a separate mapping for each type of message. But I have many message types and would like to have just one mapping if possible, where at runtime I can pass a different message source.
    I have looked for an xpath function that will return the XML source of a node but no luck.
    I have seen the "use sap XML toolkit" checkbox on an operation mapping. Does this have any feature that would help?
    Or, is there any way to pass a different source message schema into a mapping at runtime?
    Thanks all,
    RBL

    Hi.
    I have a similar problem:
    In the Expression Editor, my structure looks like this:
    procNfe (element/type:procNfe)
       CNPJRec (element/type: string)
       procNFeStr (element/type: string)
    I need to compare if the first 3 caracters in the infNFe-Id is iqual to NFe.
    The following XPath Expression does not consider any TAG (anywhere I put X-outside any tag, it works. Therefore I need to search inside <infNfe....id="HERE">
    XPath Expression:
    /p1:procNFe[substring(p1:procNFeStr, 1, 1) = "X"]
    Payload:
    <n0:procNFe xmlns:n0="http://sap.com/xi/NFE/common"......>
      <n0:CNPJRec>17469701009980</n0:CNPJRec>
      <n0:procNFeStr><?xml version="1.0" encoding="UTF-8"?><nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.10"><NFe xmlns="http://www.portalfiscal.inf.br/nfe"><infNFe versao="1.10" Id="NFe35100217469701004911550010000000860089724956"><ide>...............
    Any sugestions?

  • Can't see structure in Expression Editor

    Hello everybody,
    I want to set an condition für the receiver aggrement.
    I have an IDOC for the output structure.
    In Weblog
    the is a structure shown in the expression editor
    on page 6.
    Under which conditions is the structure shown?
    Thanks a lot.
    Regards Mario

    Hi Mario,
    I hope by now your doubts might have got cleared.
    Well in the weblog, I had to do a mapping wherein I check the source message and on some rules of validation i set a flag in my output structure.
    Now say I dont use the BPM (a dummy BPM with just a receive and send step),then while using the condition editor I will get only the source structure. But it is of no use to me as my flag field is set in the target and I need to route my message based on that field. So in order to get that field i use the BPM. There would be two receiver determination,
    1. From sender to BPM &
    2. BPM to receiver
    and it is in the 2nd receiver determination that i check the field (since here the sender will be the BPM and i see the target structure in the condition editor).
    Hope this clears your doubt(and rather not confuse you more )
    Regards,
    Shabarish

  • Unity express- express editor

    Ran across the editor express http://www.ciscosystems.or.at/en/US/docs/voice_ip_comm/unity_exp/rel7_0/administrator/GUI/edit_exp.html#wp1018788
    while doing mortal combat with the CUE editor windows app.  
    The express editor good for everything but the most complex menus imo. 

    You have to use two steps, Get Digit String and a Switch.
    Get Digit String into a variable "DialedDigits", first-digit timeout ~5 seconds or so, subsequent digits 2 or 3. Collect [your extension length] digits. Valid map is 0123456789. No cancel digit, no terminating digit.
    Success: Try to Redirect to DialedDigits as an extension, handle failure as necessary
    Timeout: Collected less than 4 digits, but may have collected and stored a menu option.Switch on "DialedDigits":
    "1": Menu option 1 handler
    "2": Menu option 2 handler
    Other menu options as appropriate
    "" (empty string): Play "Sorry, I didn't hear your input, please try again", other error logic
    Default (other than the above): Play "Sorry, didn't understand your input, please try again", other error logic
    Unsuccessful: Don't think this happens w/o a cancel digit.

  • Validation Assignment expression editor pop-up

    Hi All,
    When am trying to open the validation/assignment expression editor, its not opening at all.
    looks like its hidden somewhere. am using the 7.1 ramp-up.
    I have re-installed the Datamanager component.
    Have checked with calculated fields, its working.
    Kindly revert to me asap.
    thanks
    Alexander.

    Hi Alex,
    I am just guessing here, but it might be a bug or if you're using two monitors every now and then, you might have moved the popup to the other screen for better visibility like I do
    When I get back to one monitor it opens the popup in the non visible area of my laptop. You might try and extend virtually your desktop to reach wider area and see if it's there by scrolling...
    Console is a different application and it remembers the position of the popup window separately... that's why you have it there.
    Again... just an idea
    Regards,
    Boris

  • Difference between  Generating Function,  Generic Function, Conversion func

    Difference between  Generating Function,  Generic Function, Conversion function?

    Hi,
    Generating functions are those functions which do not fetch any values from the source message,but generate target message based upon some conditions.All functions(regardless of whether Used Defined or standard) which do not take any values are called generating functions.functions of the Constant function category(e.g.constant,copyvalue,sender,receiver) are generating functions.
    conversion is used to convert the data from one format to the other.
    for ex: we use the FCC parameters to get the desired solutions .
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/frameset.htm
    SAP conversion agent it a tool that helps to convert unstructured data
    (like EDI messages, work files, pdf files etc) into XI (or from XI)
    you just use an IDE to develop the program that you can later on
    put inside the adapter module (for fiel adapter for example)
    so no programming (as it's drag and drop)
    for many documents
    generic function?
    All functions (regardless of whether they are standard or user-defined functions) that do not have input values are refered to as Generating Functions (Constant, Sender, Receiver and CopyValue() are generating functions).
    Thanks
    Vikranth

Maybe you are looking for