Substitution Variables in Essbase Load Rules File

Hi,
Has anyone tried using substitution variables in Load Rules File Header definition?
I need to load data based on the Year & I have different Files for 3 Years- CurYr, BudYr1 & BudYr2. Is it allowed to specify the Year Substitution variable in the Rule File Header? I am getting an error while loading.
Appreciate your thoughts.
Thanks,
-Ethan.

Tim,
Thanks for the response.
I figured it out. The error message I was getting was because of some parsing issue. I have defined Year as "FY12" in quotes. I removed quotes & it worked.
Thank You.
Ethan.

Similar Messages

  • Substitution variable in sql load rules file

    Okay gurus,
    I need a little guidance, I have to replace the value of 201020 and 2008 from substitution variables. I have created the variables and set them up globally on the essbase server.
    201020 = FW00
    2008 = FY00
    WHERE ACT.FISCAL_WEEK_ID <= 201020
    AND ACT.FISCAL_YEAR_ID > 2008
    AND RTDIV.DIV IN (1,2,3,4,5,6,7,8,9,99) (This is the query with hard coded values of week and year)
    When i m trying to put sub variables there , its throwing the error. please find below the way i was trying to do it.
    WHERE ACT.FISCAL_WEEK_ID = '&FW00'
    AND ACT.FISCAL_YEAR_ID = '&FY00'
    But unfortunately, its throwing error Error: 1021001 Failed to Establish Connection With SQL Database Server. See log for more information
    I know that this is the generic error because if i put the hard coded value in sql load rules it works fine.
    Is it the right way to out sub var in sql load rules???
    Please advice and thanks in advance.

    Hi Genn,
    I tried to see the app log for sql but i m afraid that there is nothing in there, the only error message which I am getting in app log is this:
    Failed to Establish Connection With SQL Database Server. See log for more information
    Its an ASO cube and initially i was using the variable as FY00 AS "2008" it did not work and than i tried without quotes in variable but is still not working.
    Any idea..thanks in advance.

  • How to use a substitution variable in a load rule?

    I need to use a substitution variable in a load rule in a column, as I will receive a parameter to fix the Month and Year values within the data loading, could somebody tell me if this is possible. I put an expresion "&Yearproc" in the column value but it is not working.

    If you're a member of ODTUG (or even if not, you can sign up for an associate membership for free) you can download Glenn's presentation from 2009 Kaliedoscope "Little Used Features of Essbase (Like Data Mining and Triggers)" -- there is a section in that presentation on substitution variables -- he does a really good job in showing how this works.
    Go to: www.odtug.com, then Tech Resources, then Essbase/Hyperion, and search for Schwartzberg. Currently it's the ninth presentation on the list -- I think this changes based on popularity of downloads.
    Regards,
    Cameron Lackpour

  • Essbase Load Rules File Header Issue

    Hi,
    Is it possible to specify more than one member for the same dimension in the Load Rules file Header?
    Example: I need to load the same data in all the remaining months in current year.
    I tried using a substitution variable in the header which is defined as Aug,Sep,Oct,Nov,Dec.
    It loaded randomly. For each account, only one month is loaded.
    It loads only as many data points as in the data file regardless of the number of members from the same dimension specified in the Header definition.
    Any suggestions to correct this.
    Using a Calc script to do a data copy cannot be used because of other process limitations.
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    Randomly? That's really interesting. But yeah, I wouldn't expect that to work.
    I have a hard time thinking of a really good option that will handle an variable number of periods and is driven by a single subvar.
    Run the load multiple times, cycling through the subvar settings? Or (faster, if Period is dense) create one load rule for each period, with the data column copied multiple times using field manipulation and the future Periods assigned to each column (rather than using a 'Data' field) and run only the rule you need? That option doesn't use a subvar at all, but still requires conditional logic in the process.
    Alternatively, do the transformation in your source extract / parse the file. This is really the 'best' option but I appreciate there are sometimes constraints on changing upstream processes.

  • Variable in the Load Rule file

    Hi,
    We're running EAS 9.3.1 and trying to update a load rule to include a substitution variable in the header. The load rule works fine when the member name is defined explicitly and the variable works fine in the calc scripts. Any ideas? I tried removing the quotes and the & symbol already. See error below.
    Reading Rule SQL Information For Database [Plan1]
    Reading Rules From Rule Object For Database [Plan1]
    Unknown member [&CalcVersion] found while processing string ["Budget","&CalcVersion","Load","Functional"]
    Unexpected Essbase error 1019026
    Thanks.

    Did you remove the quotes by using the replace in "field Properties" and Global properties tab? I am trying to replace double quotes with null in the data file and it does not seems to be working.
    Thanks
    Yagna

  • Substitution Variable in Data Load Rule

    Hello,
    Is it possible to filter selected record or rejected record from a flat file using a substitution variable ?
    I use the v11.1.1.3.
    Thanks
    Rgds,
    Pierre

    A quich test on sample basic says no. I exported the data in column format and cleared the data. Then I created a load rule with selection criteria of a substitution variable and itdid not load any rows. I then changed the sub variable to an actual month and it loaded fine

  • Essbase load rule file

    I am trying to use load rule to append some data to Essbase cube. How do you define the rule on Essbase side, as a data file or SQL data source? I am trying to avoid the second option as the SQL Interface was not configured on Essbase Unix box. Is it possible?

    Thanks John for explaining this one!

  • Referencing a substitution variable in data load rule header definition

    Hi All,
    Im trying to add a substitution variable to the header definition of a DLR.
    the sub var is &CurrMonth.
    When I execute the data load I get an "unknown member error" with a list of all members in the header definition, including Oct which is my current month.
    It looks like the DLR is resolving the sub var but for some reason it is refusing to load data.
    We are on 9.2.0.1.
    Are sub vars referenced differently for DLR?
    Thanks for your help.
    Seb

    Hi Seb!
    Hope you're well. You're doing everything right with the subvars so the issue must be elsewhere. Is the list comma separated? Sorry I can' help more :(
    Gee

  • Substitution Variable in Essbase

    Hi Experts,
    In our report script, whenever there is a small change in say Product then we need to update several Rows/code in Report scripts.We were using Rename script for the same like -
    {Rename "ABC"} "testl"
    So, we thought of a solution where we can create say 3 Substitution variables as we have restriction of 255 chars say V1, V2 and V3 substitution variables having this Rename script. and finally create "V" substitution variable = V1+V2+V3
    Is there any possibility of having Substitution variable Value as sum of 3 other existing Substitution variables in Essbase? Say in my Case
    V = V1+ V2+V3
    Please help me out if there is any?

    Hi,
    Your thinking is sound and creative, however due to the way they work you can't define a subvar as a concatenation of other subvars because it will be interpreted literally. e.g.
    sv1 = hello
    sv2 = world
    sv3 = &sv1 + &sv2
    sv3 interpreted by essbase will be: &sv1 + &sv2 and throw an error.
    (If you think about it, concatenating two 255 char subvars into another would still exceed the character liimit.)
    So,
    if you want to concatenate several long subvars, just define them and mash them together:
    &sv1 &sv2 = hello world
    regards,
    Robb Salzmann

  • Data Load Rules file - Conditional load

    Hi,
    I need to create a data load rules file to load sales data. The data comes at product, entity, month, year, version, scenario, account level. I need to load data only towards two of the entities, NCC and NCCCBU, i.e if the product is coming under a particular hierarchy called UK then it needs to get loaded against NCC entity member and if the product is under the CBU hierarchy it needs to be loaded against the NCCCBU entity.
    All of the data comes in the same file so I need to load it in one go without splitting the file into two.
    Thanks
    Vikash

    You can achieve this.
    In the data load rule when you are mapping the entity column.
    set the propperties like this:
    Field properties -> Global Prpoperties
    Replace with
    UK NCC
    CBU NCCCBU
    Field properties -> Data Load Prpoperties
    Map the column with entity dimension.

  • Query regarding Metadata load in Essbase using rule file

    Hi
    In our application,we are  loading metadata using Essbase rule file and  here we are facing one problem.Suppose we have to load a level 0 member called "xxxx" under two different parent,assume the parent members are Parent_AAAA and Parent_BBBB.But our requirement is the consolidation operator for the first occurrence ( i.e under Parent_AAAA)  is "+" and for the shared member under Parent_BBBB is "-".But,when we are loading using rule file the consolidation operator for the shared member always being loaded as "+".Is there any trick to change the consolidation operator for shared member other than  changing it manually in outline?
    Pls help....Thanks in advance.

    I don't think there is a way to change the default setting.
    However, what you can do is  to have a different load rule and different text file with only the metadata that you want to have an exception for shared members. That way, you can achieve it as you do not have to change the existing rule file.
    Regards
    ORACLE | Essbase

  • Loading Data to Essbase using Rule File Failed

    Hi
    i'm using IKM SQL to Essbase Cbue,
    Now I would like to use rule file when loading data,
    I created one in Essbase cube, then define it on the target (flow) and the Tab on Rule seprator,
    I reversed the Essbase Cbue again.
    when loading I get the following error bellow
    (before loading I verfiy with sample file based on the same strcture from my source and load it via data load from EAS
    and it works fine. also it works without any rule file.)
    here's the error I'm getting from operator:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 23, in ?
    com.hyperion.odi.essbase.ODIEssbaseException
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx30.f$0(<string>:23)
         at org.python.pycode._pyx30.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.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.j(e.java)
         at com.sunopsis.dwg.cmd.g.z(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
         at com.hyperion.odi.connection.AbstractHypAppWriter.logErrorRecord(Unknown Source)
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.sendRecordArrayToEsbase(Unknown Source)
         ... 32 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.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.j(e.java)
         at com.sunopsis.dwg.cmd.g.z(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    pls advice what i'm doing worng?
    Thanks!

    So are you saying the data load interface works if you remove the rule in the options?
    Have you ever got any data loads to run with a load rule or without?
    Cheers
    John
    http://john--goodwin.blogspot.com/

  • Storing a Variable from a load rule

    Hi, I'm a newby to Essbase so I apologize if this is a simple question:I'm trying to store the current working day from a load rule and store it in a singe location in the model or even better in a variable. I've looked at substitution variables but it doesn't appear that you can set the value from a load rule and then use in the outline.I currently have a member in the period dimension where this is stored, however the value is being stored for each of the other dimensions as well, which seems a waste of storage.Any help would be much appreciated.Mark

    As usual, there are a number of ways to do this, and a substitution variable has (IMHO) been somewhat deprecated in favor of UDA's and alias table references for almost all things that substitution variables were intended.Between these two, an Alias is the most appropriate choice for your needs -- and easier in the long run. Assigning a "Current Workday" alias to the appropriate time period is well inside the abilities of a load rule, but to remove the previously set one, you'll need to use an MAXL or Esscmd script. Dropping the entire alias table is your best bet, and you'll either need to use a dedicated table (that only sets the one alias), or you'll need to ensure that the load rule assigns all the aliases in the table.While not 100% complete, the above should point you in the right direction.

  • Sql and load rule file query

    Currently loading the data with the script , which it contatins
    Retreving data from oracle through SQL interface on to rules files
    and loading the data.
    just my question is , if i get 0 records from oracle , i dont want to proceed with the loading of data (which is no useful ).
    Can i stop the loading if records are zero.

    As far as I know there is nothing in MaxLIt that could tell that there were no rows.The MaxL statement would return a zero code saying that the process worked ok. It would be prossible in your batch script to have mutiple calls to MaxL and between them to do something like make a call to your sql DB getting the count of rows for your query. Investigate the result and if it is zero, then get out of your load and calc process (I guess you could do that even before you try to load).
    Or how about scheduling a job that creates an output file with the count if it is greater than zero. If it is, then run the batch load process if it is not, then bypass it. There are multiple ways to do this outside of Essbase, just not in it.

  • Data Load Rule file -Date conversion

    Hi,While working on a Dataload rule file,I was facing this problem.I'm getting date in the format "m(m)/d(d)/yyyy hh:mm:ss". Is there a way to change this to "mm/yy" ??(There won't be anyproblem if I get mm/dd/yyyy hh:mm:ss style. but unfortunately not.)

    Can you run the file through a "conversion process" prior to loading?We do similiar thing here. We get a feed from Hyperion Enterprise and run it through a home grown conversion utility written in Windows Script before we load into Essbase.It reads in the file line by line and then writes out a new file properly formatted.

Maybe you are looking for