Variables at ODI 11.1.1.7 must be uppercase?

Hi guys,
Recently, I have upgrade ODI from 10g to 11.1.1.7 at the upgrade guide I saw that variables in ODI 11.1.1.5 must be in uppercase if they are not in this format I can use "".
This apply to ODI 11.1.1.7?

I believe it applies. Why dont you just test this in ODI 11.7?

Similar Messages

  • Error encountered while assigning a value to a variable in ODI.

    we are getting the below error while trying to assign the o/p of the below query to a variable in ODI.THis error is encountered when the Table1 is empty....
    select b.res from (select (select CEIL((select count(1) from Table1)/2) - #SMARTS.loop_variable from dual) result from dual) a, (select CEIL((select count(1) from cst_dsa.m_pb_cable_data)/2) res from dual) b where a.result >= 0
    java.lang.Exception: Error: No value to affect to this variable for DefDate:2012-05-22 13:57:07.0
    DefN:null
    DefV:null
    IndStore:H
    ITxtDefT:null
    ITxtVar:null
    SessNo:800100
    VarDatatype:N
    VarName:SMARTS.total_loop_count_cable
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.execStdOrders(SnpSessTaskSqlV.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTaskTrt(SnpSessTaskSqlV.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    can somebody pls let me know ,how to handle this exception..

    This error means that there is no value to assign to your variable, because specified query doesn't return result row. You should rewrite your query to guarantee that it would return row in any case.
    For example, select nvl(min(b.res), -1) from (select (select CEIL((select count(1) from Table1)/2) - #SMARTS.loop_variable from dual) result from dual) a, (select CEIL((select count(1) from cst_dsa.m_pb_cable_data)/2) res from dual) b where a.result >= 0 group by a,b
    Edited by: apiminov on 15.06.2012 8:18
    Edited by: apiminov on 15.06.2012 8:19

  • Using variables in ODI 11.1.1.5

    Hi,
    i have created 4 variables in ODI 11g as mentioned below:
    1.Variable_name = v_date
    datatype = alphanumeric
    default value = '30-NOV-2011 11:00:00'
    2.Variable_name = v_time_offset
    datatype = alphanumeric
    default value = 125
    3.Variable_name = v_starttime
    datatype = alphanumeric
    default value = '30-NOV-2011 11:00:00'
    4.Variable_name = v_endtime
    datatype = alphanumeric
    default value = '30-NOV-2011 11:30:00'
    I have created a filter on the source table to pull the records only for the time between v_starttime and v_endtime.
    Now, in the ODI package, I have declared all the above 4 variables. Here I want to calculate the variable values v_starttime and v_endtime to pass on to the interface. I have used the below calculations to set the variables :
    v_starttime = #v_date+(#v_time_offset/1440)
    v_endtime = #v_date+((#v_time_offset+5)/1440)
    Now when I execute the package, the package(the interface) is getting failed with the error - invalid character. When I looked into the variables to see whether they are refreshed properly, they didn't. In the Operators, Under 'History' of variables section, the value of both the variables are showing as #v_date+(#v_time_offset/1440) and #v_date+((#v_time_offset+5)/1440) only. Thats means the varaibles are not evaluated properly. Kindly help me how can I fix this ? Many thanks in advance ...
    regards,
    sai

    Hi Sai,
    Please try below one
    Take 2 more ODI variable 1) v_STime and 2) v_ETime
    In v_STime write below query
    select to_date(to_char(v_date,'yyyy-mm-dd'),'yyyy-mm-dd')+(to_number(#v_time_offset)/1440) from dual;
    In v_ETime write below query
    select to_date(to_char(v_date,'yyyy-mm-dd'),'yyyy-mm-dd')+(to_number(#v_time_offset)+5/1440) from dual;
    Note: For v_date,v_starttime and v_endtime variable please don't take default value just write below query
    Query: select sysdate from dual;
    Hope this may helps you
    Regards,
    Phanikanth

  • Help : How to use list of values in Variable in ODI

    Dear All,
    I have a multiple values in table, and I would to use these values a a parameter in ODI to retrieve rows based on these values. As I know that we can use single value in variable in ODI.
    Any one can Help me please?

    Can't you use a join between the tables ?
    ODI mostly take advantage of native technologies.
    i.e If my source technology is oracle then i will create a join between the table i.e. MAINTABLE.column = LOVTABLE.COLUMN and also put a filter on LOVTABLE to take required values.
    OR you can write a subquery in the Filter i.e. MAINTABLE.COLUMN in ( Select LOVVALUES from LOVTABLE where LOVTABLE.ATTRIBUTE = 'BUSINESS_UNIT')

  • Difference Between 2 dates using variables in ODI

    Hi,
    I have 3 variables in ODI,
    Start Date, End Date and Duration.
    Start Date - Alphanumeric -  select TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    End Date - Alphanumeriic - select TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    Duration - Alphanumeric - select to_date(#Start_date, 'DD-MM-YYYY HH24:MI:SS') - to_date(#END_date, 'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    It says invalid character.
    Please let me know how can I find the difference of the start date and end date as duration

    Have you tried
    select to_date('#Start_date', 'DD-MM-YYYY HH24:MI:SS') - to_date('#END_date', 'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    Cheers
    John

  • How can more than one value be assigned to a variable in ODI

    Hi,
    I am inserting 2 values in  DB Table.
    I want to get both the values in a single variable in ODI.
    Pls tell me how can it be done?
    Thanks in advance.

    Hi Deca,
    Can you pls tell me is the following code fine or not?
    <?xml version = '1.0' encoding = 'UTF8'?>
    <EmpodiCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/tar" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <Empodi xmlns="">
          <empid>1</empid>
          <empname>ani</empname>
          <bonus>#SOA_ODI_SALARY*0.1</bonus>
          <annualsalary>#SOA_ODI_SALARY*12</annualsalary>
       </Empodi>
    </EmpodiCollection>
    here #SOA_ODI_SALARY is a variable which is calculating salary from a table src_ws_soa_odi having the code as  select Basic_sal from src_ws_soa_odi.
    Actually the problem we are facing is that this transformation #SOA_ODI_SALARY*0.1 needs to be mapped in a bpel component as its input, but when i am checking the payload of the bpel component it is showing as follows :
    <message>
    <properties>
    <property  name="tracking.compositeInstanceId"  value="750014"/>  
    <property  name="tracking.ecid"  value="449b4b64fa2729cc:-5b3fd395:140c49e9de6:-8000-00000000000505cc"/>
    <property  name="transport.http.remoteAddress"  value="172.18.22.193"/>
    </properties>
    <parts>
    <part  name="request">
    <EmpodiCollection>
    <Empodi>
    <empid>1</empid>  
    <empname>ani</empname>
    <bonus>3400*0.1</bonus>
    <annualsalary>3400*12</annualsalary>
    </Empodi>
    </EmpodiCollection>
    </part>
    </parts>
    </message>
    So from my observation I can see the calculation is not taking place in ODI, so pls let me know where i am doing wrong.
    Your help is highly appreciated.
    Thanks,
    Anindya.

  • Is it possible to read Essbase Substitution variables from ODI?

    Is it possible to read Essbase Substitution variables from ODI?

    Hi,
    You can do it with custom code, if you have a read of a blog I wrote :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    About half way through I go into reading essbase sub vars using the essbase java API.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to assign a value to ODI Variable using ODI Procedure

    Hi ,
    Is it possible to assign a value to a ODI Variable using ODI Procedure ?
    If it is possible how we can do that.
    BEGIN
    IF #Counter=1
    Then
    #Next_Increment:=#Counter+1;
    End if;
    END;
    In my example I have 2 ODI Variables #counter and #Next_increment.
    I am trying to assign VALUE TO A ODI VARIABLE #next_increment from another ODI Variable #counter.
    thanks
    prasanna

    Prasanna,
    I have a similar requirement where I need to assign values to ODI variables within a procedure. How do we make use of an ODI package to accomplish this ?
    Actually, I have a sequence of ODI steps, and there is a call to a procedure 'LOG ERROR' from every step which gets called in case error occurs in any step. I just need to identify from which step the error came.
    Please help.

  • Changing substitution variables through ODI

    Hi John!
    We using ODI for loading data, before load we have to clear data.
    I have 2 questions regarding this issue:
    1. Can I change substitution variables through ODI
    2. Can I execute BR in Essbase.cmd
    Regards
    Sasha

    Hi,
    1. You can call maxl to update the substitution variables, either using the pre-maxl options in the KMs
    or you can execute an OS command through an ODI procedure
    2. I am not sure what you are asking, are you asking whether you can execute BRs through ODI, if so have a read of my last blog where I covered how to do it.
    You can execute BRs by using the command line launcher, have a read of the blog anyway because it goes through the command line launcher.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to get a value from file to variable in ODI?

    hi
    i created a variable and i want to assign the value of the variable from the flatfile...can v do that ?
    i will be having the value in the flatfile...i want to assign the value to the variable...
    Edited by: sai praneeth on Feb 15, 2009 10:34 PM

    I don`t know how to realize your requirement that assign variable from flatfile directly.
    But I have done this kind of assignment from database table to odi variable.
    So I think, you can transform this variable value in flatfile to database table firstly, and then assign it to odi variable which you want to use.
    Just a kind of solution :-)

  • Using Variables in ODI

    I am attempting to insert 20 years of data into our Data Warehouse using ODI.
    The Problem is that the query to retrieve the data takes upwards of 48+ hours. That is just the query running in a query tool.
    So what i would like to do is to run the query by quarters...
    ie: 1/1/1991 to 3/31/1991, 4/1/1991 to 6/30/1991, 7/1/1991 to 9/30/1991, 10/1/1991 to 12/31/1991, etc...
    I was attempting to create the begin and end dates as variable and use a loading package as my package to get the data into the warehouse.
    I set it up as the two beginning interfaces are Set Variables: my_start_date default value '10/1/1990' and my_end_date default value of '12/31/1990'.
    The 3rd and 4th are to be the incrementors, Refrech Variable:
    my_start_date Refreshing tab has a select query of : Select to_char(ADD_MONTHS(to_date(#my_start_date, 'MM/DD/YYYY'), 3), 'MM/DD/YYYY') from dual
    my_end_date Refreshing tab has a select query of : Select to_char(ADD_MONTHS(to_date(#my_end_date, 'MM/DD/YYYY'), 3), 'MM/DD/YYYY') from dual
    The 5th step is my ODI Interface with my source table (MY_SRC) that has a Filter of MY_SRC.TRANSACTION_DATE between to_date(#my_start_date, 'mm/dd/yyyy') and to_date(#my_end_date, 'mm/dd/yyyy')
    The last step is the Evaluate Variable to check to see if the my_start_date is greater than today.
    ~~~~~~~~~~~~~~~~~
    The problem i am getting is the 5th step fails with an error of:
    1843 : 22008 : java.sql.SQLException: ORA-01843: not a valid month
    ORA-02063: preceding line from #######
    Has anyone out there attempted to do this? I have been able to do this type of package with a single numeric variable, but i am having dificulties with the dates. Any ideas would be extremely helpful. Thanks.
    Tom Cusick
    Systems Programmer

    Ahh, ok now i see the Variables, looked right over them before.
    And I think i see the problem. My variables are being set to the correct date but as a date and not a string so when i am putting them into the filter it is not seeing the variable as a stirng and thus causing the problem.
    Ok so now i need to figure out how to make sure it is a string going to my interface and not a number.
    Thanks for pointing out where i can find the history information.

  • HOW TO CALL A PACKAGE VARIABLE INTO ODI

    Hi,
    Please help me with a solution for capturing a variable from a package into odi. I have seen the solution given by cezar in odiexperts.com but we are not looking for a package creation thru odi. Please suggest any other method.
    Thanks
    Venkat

    Pass it to the SP as a variable
    - there are examples in the cf docs

  • How to get essbase substitution variable in ODI

    Hi All,
    I have a problem that I need to get the substitution variable from Essbase /EAS to work on some SQL statement in ODI.
    How can I do in ODI ???
    Thanks for all ..
    Thomas

    Hi,
    If you read my blog post :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    In the post there is a section on retrieving essbase substitution variables and using them in ODI.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using Variable in ODI

    Hi,
    I need to use a ODI varible in procedure. That is, when i execute a procedure the data from a oracle table should be stored in the ODI variable.
    Later i need to use the same variable in another procedure. But now how can i use the ODI variable in a procedure to store the oracle data.
    Some thing like this,
    declare
    begin
    select empno into #sud from emp_source where ename='Mohan';
    end;
    Here sud is the ODI variable i declared. i am getting some error here. so anyone who know please help me.
    Thanks in advance,
    Ram Mohan T.

    Hi Ram,
    You could not store the data to variable by procedure.
    Better way, write a sql quer for getting the value from the oracle table by:
    1) create a variable say var1
    2) Write a sql query in Refresh tab like( select empno from 'specify the schema properly' emp_source where ename='Mohan')
    3)Select the appropriate Logical schema in that
    4)validate the query by click right most top corner button
    5) after validation click refresh button inthat refresh tab.
    6)it execute the query and hold the values in history tab.
    Note: whatever query using in the variable sholud be returns a single value
    After refreshing the variable you can use it in some other procedure too
    Thanks,
    Madha.

  • \Critical Use of variables in ODI

    Hi,
    I have a problem in which i have to use a filename which is dyanamic. so if my job is following:
    variable(containing dynamic name)--->interface
    everything runs fine
    but if
    variable(containing dynamic name)--->scenario of interface
    it doesnt works
    seems odi does not resolve variables in scenario
    Please suggest is it possible or not as i need to put a scenario and not the interface.

    I have put the value of the variable which i want to use in the input of scenario in the additional variables tab of scenario
    Project Variable Value
    General Filename #General.Filename
    General Filename
    I m getting this error:
    va.lang.Exception: Specified variable not found in the Repository : GENERAL.Filename
         at com.sunopsis.dwg.dbobj.SnpSession.updateVarWithSessVar(SnpSession.java:2905)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSessVariables(SnpSession.java:2466)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java:2433)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1855)
    also current command is
    OdiStartScen "-SCEN_NAME=DYNAMICFILE" "-SCEN_VERSION=001" "-GENERAL.Filename=#General.Filename"
    I want to use variable from project general named as filename as an input to the scenario
    Please suggest me the correct way to do it.

Maybe you are looking for

  • How can I reformat my portable hard drive?

    I have a Seagate 1TB portable hard drive, connected by USB to my MacBook Pro. I use it as my Time Machine. I have been getting error messages saying the drive is not working. I have tried to repair it via Disk Utility but get this message: Error: Dis

  • Templates - CS4

    Hi I only seem to have (lots of!) templates for advertising. In previous versions there were quite a few more. I installed from the full master Collection, & as far as I can remember, I just hit default & let it do its stuff. Should other templates h

  • Problem in stock allocation !!!!

    Dear Experts,     This is  regarding the  stock allocation, in particular storage location *Unrestricted stock showing 744 * quantities but in CO09 tcode avaialbility overview shows 744Confrmd issues as 734 and but cumulative quantity showing  0 i di

  • Inclusion of Cube in infoset in Ver 3.5

    Hi Is anybody tell me how to include the cube in infoset since i came to know that the infoset can have ods only. We are using BW ver 3.5 . Actually we are looking for infoset facility to have intersection functionalinty.

  • How to unhide the menu bar without revealing the title bar?? (i wanna do,what happens when i press alt)

    when i press alt with "menu bar" unchecked.... menubar is revealed. I want this to stay.