Using Concat function - in Excel Source

Hi,
I am using an Excel file as a source and oracle table as a target.
In the Excel file i need to concatenate two columns and map it to the target oracle column based on a condition.
I used the concat function in Expression Editor, but its throwing an error 'Undefined expression' as our source is not a oracle.
What should i do to execute the excel function in ODI?
Thanks in Advance
Ram Mohan T.

Hi,
Probably, you have mistake in Excell syntax, try to concutenate columns by Oracle (set 'target' radiobutton in mapping and use '||') and we will see...

Similar Messages

  • Using concat Function in Mapping

    Hello,
    I have a mapping where I'm using the standart concat function to concatenate the content of two queues. Every queue has normally only one entry. When both queues have one entry, it is working without any issues.
    But now my problem: First queue has one entry and second queue has only a supresser. When I want to concatenate both queues, the result is also a supresser. But I'd like to have that the result will be the entry of the first queue when second queue exists of supresser...
    How can I get this realized that the concat function is also working in this case? 
    Is there maybe a workaround?
    Thank you for your help.

    Hi Lukas
    You can add the node function MapwithDefault with default value space after the field which is having suppress value.
    Then add the output of MapwithDefault to the second input of concat function.
    This will generate the output as the value of first field.
    let me know if you have any doubts.

  • Concatanate new line using concat function in BPEL process

    Hi,
    Anyone please tell me how can i concatenate new line at the end of a string in concat function?

    If using xsl you can use this one:
    <xsl:value-of select='concat("First Name :: ",/ns1:ProcessRequest/ns1:firstName)'/>
    <xsl:text> &hashxD; &hashxA;</xsl:text>
    <xsl:value-of select='concat("Last Name :: ",/ns1:ProcessRequest/ns1:lastName)'/>
    give # in place of hash

  • Error when using SUM function in Excel template

    I am trying to use the XDO_METADATA to create a sum of a column from my XML data and I am getting the following error in the Template Viewer:
    [111412_104246459][][PROCEDURE] Log Level is changed to PROCEDURE
    [111412_104246553][oracle.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    Time: 0.125 sec.
    FO Formatting failed.
    <Line 317, Column 116>: XML-23029: (Error) FORG0001: invalid value for cast/constructor
    @Line 317 ==> <Cell Index="2" Style="R7C3" Field="XDO_?SUM_V_CR_MO_IDD1?"><xsl:value-of select="sum(.//G_CR_MST_D/V_CR_MO_IDD)"/>
    when I use:
    XDO_?SUM_V_CR_MO_IDD1?     <?sum(.//G_CR_MST_D/V_CR_MO_IDD)?>
    or
    [111412_104048508][][PROCEDURE] Log Level is changed to PROCEDURE
    [111412_104048554][oracle.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    Time: 0.078 sec.
    FO Formatting failed.
    <Line 317, Column 105>: XML-23029: (Error) FORG0001: invalid value for cast/constructor
    @Line 317 ==> <Cell Index="2" Style="R7C3" Field="XDO_?SUM_V_CR_MO_IDD1?"><xsl:value-of select="sum(.//V_CR_MO_IDD)"/>
    when I use:
    XDO_?SUM_V_CR_MO_IDD1?     <?sum(.//V_CR_MO_IDD)?>
    I believe the XSL to be correct because when I change it to a count it works and when I go into BI Publisher 11g and create the query in the data model and then create a summary from it, the summary is created.
    Can anyone help?

    I went back to basics and created reports (via EXCEL templates) like I was asking based on good old EMP and DEPT and I found exactly the same problems I was mentioning. I looked at the templates provided but they were not calculating totals, like me they were selecting them and then just displaying them on the page.
    Anyway, I have narrowed it down to the fact that when you do aggregates like sum(.//SAL) this works if you have a salary for every value. I did an outer join with DEPT so I did have empty rows and why I still experienced the problems.
    Basically XSL does not like adding (including using the sum function) values that effectively have nulls in them which is why I get the cast/constructor errors because it is trying to turn a NaN value to a number and does not (or cannot) do it.
    You need to either have a value in every row of your column (maybe possible by selecting nvl in your query) and make sure that you check the "create empty nodes" checkbox in the data model of BI Publisher.,
    the other solution is an xsl solution where you would have to make sure that you only added non null values and for that you would have to investigate xsl blogs.
    It is, by the way, why my count worked because it is just counting that the record exists it does not care what the element content is or isn't.
    Closing thread.

  • Loading data using send function in Excel to aggregate storage cube

    Hi there
    just got version 9.3.1. installed. Can finally load to aggregate storage database using excel essbase send. however, very slow, especially when loading many lines of data. Block storage much much faster. Is there any way you can speed up loading to aggreagate storage data base? Or is this an architectural issue and therefore not much can be done?

    As far as I know, it is an architectural issue.. Further, I would expect it to slow down even further if you have numerous people writing back simultaneously because, as I understand it, they are throttling the update process on the server side so a single user is actually 'writing' at a time. At least this is better than earlier versions where other users couldn't even do a read when the database was being loaded; I believe that restriction has been lifted as part of the 'trickle-feed' support (although I haven't tested it)..
    Tim Tow
    Applied OLAP, Inc

  • BPEL 1st Scenario (Using concat function and display)

    Hi,
    I am completely new to BPEL space and i am trying to execute the 1st scenario, which is to concat the source text with some input value and print the output.
    I installed the software's mentioned in the link - https://java.net/projects/oraclesoasuite11g/pages/Home ( Please let me know if anything is missed out)
    The issue that i am facing is when i am trying to deploy the project I am getting "IntegratedWeblogicServer" option in "application server" (wizard), which in turn doesn't have "SOAServers", so i am not able to complete the wizard.
    I have seen some posts saying "connection should be set up ,with application server and integrated server", how to do that ?
    Also, please let me know how to get to the admin's page, where the input text will be filled into and is there any particular sequence in which the servers (Oracle BPEL process manager/Oracle DB/Oracle service bus/Web logic server/). I am hoping I have all the components but i am not able to configure them correctly.
    Could someone help me on this.
    Regards,
    Pallab

    Hi All,
    I am assuming there is some installation issue, as multiple components needs to be installed for this scenario. To do it correctly, I want to start afresh, I have to following software installable and below is my system details. Please guide me if anything is missed out, and how to get the "SOASERVERS"  while deploying the project(in application server).
    Also I am not getting any integration server,in [JDeveloper->view-> integration server] (seen some blog, where they are asking to configure it after configuring the application server), how to configure it , if at all it is necessary.
    1.jdevstudio11117install.exe
    2.ofm_soa_generic_11.1.1.7.0_disk1_1of2.zip;ofm_soa_generic_11.1.1.7.0_disk1_2of2.zip
    3.OracleXE112_Win32.zip
    4.ofm_rcu_win_11.1.1.7.0_64_disk1_1of1.zip
    5.ofm_osb_generic_11.1.1.7.0_disk1_1of1.zip
    6.wls1036_generic.jar
    Also which servers needs to be started and in which order it should be started.
    Could anyone please guide how to proceed with these installable.
    Regards,
    Pallab

  • SQL Concat function seem not to work properly in SQL query data model. BIP 11g

    I try to use this function to show entire name CONCAT(name, ' ', surname) and it doesnt show the surname. it looks like it only tooks 2 arguments. I use it with the option "Add element by expression" within a SQL Query - Data set.
    Lucia

    i don't believe you
    please post more info, may be screen or sql or some more useful statement
    CONCAT(name, ' ', surname) and it doesnt show the surname
    may be because for some case "surname" is empty  or may be you incorrect use concat function
    one way mentioned by BluShadow is " || " operator  - http://docs.oracle.com/cd/B28359_01/server.111/b28286/operators003.htm#SQLRF51156
    and another is concat function http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions026.htm#SQLRF00619
    so for your case it can be like
    CONCAT(CONCAT(name, ' '), surname)

  • Issue in concat function

    Hi All,
    I have a requirement like all the input variable of BPEL Notification process have to be sent in the mail body.
    But when i use concat function I am getting error as 'Invalid XQuery Expression'.
    I have used concat like
    Concat('Hi the of the Customer you are looking for is Name:','','INPUT VARIABLE WHICH I GET', 'Age', '',''INPUT VARIABLE2 WHICH I GET')
    Can anyone say me how this can be done.
    Thanks in advance

    Hi vivek thanks for your reply.
    The example which u have given wil work for different variables. But I want to assign all the inputvariables in my Notification Process Mail body.
    Any example where concat can be used for many string variables will be of great help.
    I wil explain the scnerio
    I am getting the Customer Name, Customer ID, Customer Address.... as input to BPEL Notification process.
    I want my Notification body to look like this.
    Hi,
    The details of customer are:
    Name of the Customer : Vivek (THIS IS THE INPUT VARIABLE WHICH I GET IN BPEL PROCESS)
    Customer ID: 2334566(THIS IS THE INPUT VARIABLE WHICH I GET IN BPEL PROCESS)
    Customer Address: 47, XXXXXX, XXX street, xxxx-444444(THIS IS THE INPUT VARIABLE WHICH I GET IN BPEL PROCESS)
    what expression can i use to concat all these things. I want to do it in one expression.
    I have nearly 15 input variables which has to be send in my mail.

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

  • How to use Special Characters in CONCAT function or another form with Xquer

    Hello everyone
    I'm using PS3 OEPE within message flow (proxy)and I'm using Xquery.
    I'm using the CONCAT function, but this does not allow me to concatenate special characters not allowed, for example:
    I want to concatenate these strings:
    String1 = “&amp;lt;get-person&amp;gt;&amp;lt;id-person&amp;;gt;”
    String2 = “123”
    String3 = “&amp;lt;/id-person&amp;;gt; &amp;lt;/get-person&amp;gt;”
    I want to represent characters regex. It means no XML characters
    Someone knows some way, any function that allows me to concatenate in OSB these values with Xquery?
    Edited by: chromosoma on Sep 5, 2012 5:59 PM

    Hi,
    It seems to me you're doing things in the most complicated way possible...
    Firstly, you should use codepoints-to-string not the reverse... Secondly, the function work with decimals, not hexa
    http://www.xqueryfunctions.com/xq/fn_codepoints-to-string.html
    http://www.xqueryfunctions.com/xq/fn_string-to-codepoints.html
    This works...
    concat(codepoints-to-string(38),'lt',codepoints-to-string(59),'get-person')But this also works... Note that I've inserted a space between the &amp; and the lt so the forum formatting can show it...
    let
    $String1 := "& lt;get-person& gt;& lt;id-person& gt;",
    $String2 := "123",
    $String3 := "& lt;/id-person& gt;& lt;/get-person& gt;"
    return
         concat($String1,$String2,$String3)And, finally this also works... So what's the reason for escaping &lt; and &gt; with &amp;lt and &amp;gt; and why codepoints?
    let
    $String1 := "<get-person><id-person>",
    $String2 := "123",
    $String3 := "</id-person></get-person>"
    return
         concat($String1,$String2,$String3)Cheers,
    Vlad

  • Error when trying to use excel source editor in SSIS 2012

    I am using SQL Server 2012. This error occurs when I try o select the name of excel sheet in excel source editor in SSIS 2012.  I am on win 7 64 Bit machine. I have office 2010. 
    Could not retrieve the table information for the connection manager 'Excel Connection Manager'. Failed to connect to the source using the connection manager 'Excel Connection Manager'. 
    Thanks in advance

    Hi Satya, I even tried installing 32-bit ACE OLE DB providers even before posting this and I do not have permissions
    to install it on my machine. I will work with IT Dept and update the status on how it goes. 
    Thanks

  • How to use the function EXEC_SQLCMD_MSQ in Excel?

    Hi Friends,
    can anyone explain how to use use this function EXEC_SQLCMD_MSQ in Excel to get the result.
    I have written excel macro to use this function,  statement like "Select * from t001" but the function doesn't reply any value.
    My objective is to pass the (any, generalised)
    sql statment to this function and get the result in Excel file.
    Please give the solution for this.
    Thanks
    Shankar

    Hello Shanker,
    The Fm EXEC_SQLCMD_MSQ is used in report RSMSQ020.
    U can do the same in ur report.
    If useful reward the points.
    Regards,
    Vasanth

  • To format an Excel worksheet invoked by oracle form using DDE functions

    I'm exporting data from oracle form6 into excel sheet using DDE functions.
    Is there any DDE functions to format the excel sheet.

    Maybe you can use format commands through DDE (if the DDE server suports them) but I personally don't know.
    My approach is to record an excel macro which formats your sheet and then invoke the macro through DDE. You can fill cells with control numbers (like number of rows, number of cells) so you can make your macro even smarter by reading these numbers.

  • Excel Source cannot find sheet when using Foreach Loop Container

    I have SQL Server 2012 SSIS. I need help with Foreach Loop container.
    1) I have C:\\Excel\ folder and multiple Excel.xlsx files are stored there to be imported
    2) I have Foreach Loop Container
    -Foreach File Enumerator is selected
    -Expressions are empty
    -Folder is set as  C:\\Excel\
    -Files is *.*
    -Variable is created. User::Filename, 0
    2) I have created variable FileName, String,0
    3) I have Excel Connection Manager
    -ExcelFilePath = @[User::FileName]
    4) I have data flow task with Excel Source and OLE DB Destination
    Error occured with Execute:
    [Excel Source [2]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
    [Excel Source [2]] Error: Opening a rowset for "SheetName$" failed. Check that the object exists in the database.
    Kenny_I

    Hi Kenny_I,
    The issue occurs because you have not specified a valid value for the variable @FileName. The error persists even if we set the “DelayValidation” property of the Excel Connection Manager to True. After you assign a value like “C:\Excel\Test1.xlsx” (without
    quotes) to the variable, the package should work fine.
    Reference:
    http://www.bidn.com/blogs/mikedavis/ssis/625/loop-through-excel-file-in-ssis
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Using hsgetvalue function to retrieve Hyperion Planning Data

    Hi All,
    Lots of discussion about hsgetvalue, but still I do not succeed in using this function. Maybe someone can help.
    Is this function work for HFM or also Hyperion Planning? Currently we are using Hyperion Planning 11.1.1.3 with related Essbase. This is what we've tried in Excel:
    =hsgetvalue(“";”Scenario#BudFin;Year#FY12;Period#Begbalance;Partner#NA_Partner;Product#A251;Account#BOM Weight;Version#Working;Misc#R-SBDA;Entity#No Entity;Currency#Qty") ===> the result is syntax error.
    =hsgetvalue("","Scenario#BudFin","Year#FY12","Period#Begbalance","Partner#NA_partner","Product#A251","Account#BOM Weight","Version#Working","Entity#No Entity","Currency#Qty","Misc#R-SBDA") ===> the result is No Connection.
    Actually I'm still confused about the Connection parameter, which connection name we have to use?
    Thanks.
    Gajah

    Hi,
    HsGetValue
    Data sources: Financial Management, Hyperion Enterprise, Essbase
    HsGetValue retrieves data from the data source for selected members of a dimension. When HsGetValue retrieves no data, the value specified for the #NoData/Missing Label replacement option is used.
    When users select Refresh or Refresh All, only HsGetValue is called. When users select Submit, HsSetValue is called first, HsGetValue is then called only if HsSetValue returns successfully.
    Syntax
    HsGetValue(“Connection”,”POV”)
    Connection parameters can have these values:
    Empty: the default connection
    HsActive: the active associated connection
    The user-defined name for a private connection
    You connect to data sources through shared or private connections.
    _# Shared Connections_
    Shared connections are stored in a central location and are available to multiple users through the Smart View Panel. You cannot add, edit, or rename shared connections, but you can save them as private connections, which you can edit and rename.
    _# Private Connections_
    Private connections are those that you create by saving a shared connection to your local computer or by entering a URL to a provider that is not configured for shared connections. When you create a private connection, it becomes the active connection.
    Creating Private Connections
    You can create a private connection from a connection that is not listed in Shared Connections if you know the URL.
    To add a connection using a URL:
    1. From the Smart View ribbon, click Panel.
    2. From the Smart View panel, click the arrow next to "Home" Icon, and then select Private Connections.
    3. In the text box, enter the URL or the local storage directory for the data source to which you want to connect. The URL syntax for the various data sources is as follows.
    Financial Management: http(s)://servername:port/hfmofficeprovider/hfmofficeprovider.aspx
    Hyperion Enterprise: http://servername:port/heofficeprovider/heofficeprovider.aspx
    Planning: http(s)://servername:port/HyperionPlanning/SmartView
    Essbase: http(s)://servername:port/aps/SmartView
    Reporting and Analysis: http(s)://servername:port/raframework/browse/listxml
    Financial Close Management: http://servername:port/fcc/servlets/smartview/fcmsvservlet
    Oracle Hyperion Strategic Finance: http://servername:port/StrategicPlanning/SmartView
    4. Click Next Button
    5. Enter the Name of the connect as "Essbase_Conn"
    6. Enter username, password and connect the worksheet.
    Now you can create functions by two methods -
    1. Using Function Builder
    2. Manually (Which you have opted)
    To create a function manually:*
    1. In Excel, click the cell in which you want to enter the function.
    2. Enter = (equal sign).
    3. Enter the function name, HsGetValue, for example.
    4 Enter parameters for the function,
    HsGetValue(“Connection”,”POV”)
    Connection parameters can have these values:
    # Empty: the default connection
    # HsActive: the active associated connection
    # The user-defined name for a private connection
    so the function looks like this:
    HsGetValue(“Essbase_Conn”;"Year#Jan;Measures#Sales;Product#100;Market#East;Scenario#Actual")
    5. To refresh the worksheet, from the Smart View menu, select Refresh. Functions are validated only when you refresh them.
    REFERENCE: Chapter 2 & Chapter 15 of the SmartView Guide at http://docs.oracle.com/cd/E17236_01/epm.1112/sv_user.pdf
    KosuruS
    Edited by: KosuruS on Jul 12, 2012 9:55 AM

Maybe you are looking for