Pb to setup replicated partition with substitution variables

Dear all,
I have the following problem with the replicated partition by using the substitution variables :
I would like to create a replicated partition using 3 substitution variables: &CurrPeriod, &CurrWeek, &CurrYear. The goal of this is to be able to copy data from application SourceApp to TargetApp every week, by changing the subst variables.
The script I have created is :
login useradmin identified by password on EssbServer
alter application SourceApp load database SourceDb
alter application TargetApp load database TargetDb
create or replace replicated partition SourceApp.SourceDb
Area ' "Account1", &CurrPeriod, &CurrWeek, &CurrYear, "ND_DISTRI","ND_PAGE","ND_PROD","VT", "REEL", "EUR" ' SourceArea
to TargetApp.TargetDb at EssbServer  as useradmin identified by password
Area ' "Account1",    "M_N",     "S_N",     "FY1" , "ND_DISTRI","ND_PAGE","ND_PROD","VT", "REEL", "EUR" ' TargetArea
+     mapped TargetArea ("&CurrYear") to ("FY1")+
+     mapped TargetArea ("&CurrWeek") to ("S_N")+
+     mapped TargetArea ("&CurrPeriod") to ("M_N")+
+     update allow;+
refresh replicated partition SourceApp .SourceDb to TargetApp .TargetDb at EssbServer all data ;
The issue is that this is not working. I don’t see any data when launching the Maxl script even if the script syntax is validated by essbase. The very strange thing is that when I replace the substitution variable by members, this script works fine, I see my data in the target cube. For example if I replace the subst variables by
Area ' "Account1", “Month1”, “Week1”, “Year1”, "ND_DISTRI","ND_PAGE","ND_PROD","VT", "REEL", "EUR" ' SourceArea
to TargetApp.TargetDb at EssbServer  as useradmin identified by password
Area ' "Account1",    "M_N",     "S_N",     "FY1" , "ND_DISTRI","ND_PAGE","ND_PROD","VT", "REEL", "EUR" ' TargetArea
+     mapped TargetArea (“Year1”) to ("FY1")+
+     mapped TargetArea (“Week1”) to ("S_N")+
+     mapped TargetArea (“Month1”) to ("M_N")+
So my conclusion is that there is something wrong with the syntax of the substitution variable in my mapping.
Your help on this would be very appreciated .

Hi,
I have the answer from Oracle support :
Hello,
This is a known bug.
BUG 7418041
This has been documented as a known issue in Essbase Release 9.3.1.3 with the following description: "Partitioning. Using substitution variables in replicated partition mappings incorrectly prevents data from replicating. [7418041]"
Currently the development team are working on a fix, but we don't have a release date yet.
The suggested workarounds are to use member names (which you have confirmed work) or use a Transparent partition in place of a replicated partition.

Similar Messages

  • SQL data Load rule with Substitution variable

    Hi,
    I have a data load rule with MySQL as a data source. I have requirement where user does not want to see Current day data in cube and they keep changing days not to be loaded.
    I have setup the substitution variable SUBv as '2009-11-04' and have scripts to update it daily.
    Data Load rule in where condition contains
    brand = 'HP' and region = 'east' and date <> &SUBv
    Now, above where condition does not work for date <> &SUBv but if I set substitution variable SUBv as "brand = 'HP' and region = 'east' and date <> '2009-11-04' " and set load rule where condition with just &SUBv it would just work fine. I dont know whats wrong in 1st place.
    I dont want to create multiple where condition in substitution variable (Don't we have limit on them?). I have 40+ load rules which might use this SUBv substitution variable if I find a way to define it so that it work as "brand = 'HP' and region = 'east' and date <> &SUBv"
    Thanks,
    Vikram

    I did some research and came to know when using substitution variable in Load rule need to keep substitution variable first in string..
    It worked out magically.

  • Issue with substitution variable with @MDSHIFT in BR in Calc Manager

    Hi Experts,
    We have a BR in EAS which is working fine.
    and exported to Calcmanager, now while validation it is giving error "@BaseScenario" is not found.
    the code is
    @MDSHIFT("LFLSalesIncVAT_GBP_C_DHP"->&BaseScenario->"Final"->"CD_FinalPlanPL",-1,"Year",,1,"Period",);
    if i hard code it like @MDSHIFT("LFLSalesIncVAT_GBP_C_DHP"->"P7PP"->"Final"->"CD_FinalPlanPL",-1,"Year",,1,"Period",); working fine.
    is there any limitation with calc manger and substitution variables?
    Thanks
    GP

    There seems to be many issues with validations in calc manager, does the rule run if you dont validate.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Creating a range with Substitution Variables for Report Script

    Is it possible to create a range with substituion varables for use in a report script. For example instead of listing "Jan" "Feb" "Mar" "Apr" in the report script can I use a sub varaible like Jan:Apr that will list them all out?

    while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine

  • Multiple Insertion with substitution Variable

    Hi, I want to insert multiple values with single substitution variable in single column. I mean my query is as under.
    Add a column to infobb02 called 'Wife' and populate it with first names. If there is no wife, enter null. Write a PL/SQL loop to gather wife names from the 'user' using a substitution variable.
    That means I have to insert values of wife column by user using substitution variable and must be use loop.
    Thank you.

    You'll need a client application capable of prompting. Maybe a shell script or perl? Java? PL/SQL executes on the server and can't prompt.

  • Problem with substitution variable

    Hi All,
    I am facing problem with usage of substitutiion variable. I have following code in my script
    Edited by: Tarak on Mar 4, 2009 3:27 AM

    sorry I missed the script.
    create table tempdata
    (description varchar2(200))
    TABLESPACE &tspacename
    /Sqlplus is not asking for the value of tspacename.I am getting following error.
    TABLESPACE &tspacename
    ERROR at line 3:
    ORA-02216: tablespace name expectedI am not sure what is wrong with SQLPLUS setting.Can anybody help?

  • Maxl Clear Script with Substitution Variables

    Hi,
    I am new to Maxl and I am trying to write a clear script with Maxl on an ASO Cube. The script should only clear data on a certain version and year that changes every month. I am using the following syntax and it doesn't work.
    alter database ASOSamp.Sample clear data in region '{[&SV_CurrentPeriod]}';
    What is the correct syntax here?
    thanks,

    alter database ASOSamp.Sample clear data in region '{[&Test]}';...with the subvar 'Test' set to Jan...works on my 11.1.2 test system.
    Incidentally, when you say "it doesn't work", do you mean you get a MaxL error, or it doesn't clear the expected region? I was assuming the former, but you don't say.

  • Unable to execute the substitution variable in calc scripts in essbase 11.1

    Unable to execute the substitution variable in calc scripts in essbase 11.1.3
    FIX(&CURRVERSION,COLA)
    Unit=units*Listprice;
    dataexport "file" "," "E:\NEW.TXT";
    ENDFIX
    Error: 1200471 Error parsing formula for FIX STATEMENT (line 1): expression expected before [)]
    This is error it throws when executing the calculation script
    I wonder whether its a problem with substitution variable i want to know wat went wrong inside the fix statement
    I have created substitution variable use maxl
    Installed the essbase in custom manner and standlone mode nt register with the shared services ,
    Is this problem with the custom installation of essbase
    Regards
    shenna

    If you remove the substitution variable and replace it with the actual value (whatever that is), does the code work? That will tell you if the issue is around the substitution variable or not.
    John -- First you race Glenn, then you race me -- and you always win. :)
    Regards,
    Cameron Lackpour

  • (Substitution Variables) not working in "SQL Developer" Environment !!!!!!!

    this photo illustrate how that (Substitution Variables) not working in "SQL Developer" Environment :-
    http://www.imagehosting.com/show.php/1555180_ddddd.PNG.html
    any solve for this problem ?????!!!!!!!!!!

    There is a dedicated forum for SQL Developer related questions
    SQL Developer
    I should admit however, that query you have provided ( with substitution variables) works like a charme in my environment (SQL Developer 1.1.0.23 build 23.64)
    Best regards
    Maxim

  • Substitution Variables Not Working in Web Analysis

    <p>Our current month /current year (CMCY)substitution variables donot work in Web Analysis.  The variables are set up properlyon the Essbase server and work fine with the excel add-in. The prior month / current year (PMCY)sub variable does workin Web Analysis.  Does anyone know why web analysis is hit ormiss with sub variables?</p>

    There is a dedicated forum for SQL Developer related questions
    SQL Developer
    I should admit however, that query you have provided ( with substitution variables) works like a charme in my environment (SQL Developer 1.1.0.23 build 23.64)
    Best regards
    Maxim

  • How to Use SPOOL Command with Bind Variables

    For the Following SPOOL I want the GEN_DATE to be entered by the User at the time of execution of the SQL Script. Is it possible in SPOOL Command.
    set colsep , -- separate columns with a comma
    set pagesize 1000 -- get rid of disturbing ---- between pages
    set heading on -- Print column heading
    set trimspool on -- remove trailing blanks. eliminating the spaces up to eol
    set linesize 700 -- line size should be the sum of the column widths
    spool spool_results.csv
    SELECT *
    FROM GUI_SITE_JOURNAL
    WHERE GENDATE_ BETWEEN '2012-11-01 00:00:00:00000' AND '2012-11-02 00:00:00:00000'* ORDER BY GEN_DATE;
    spool off;
    The reason is to give the ability to user so that he can enter any range without modifying the code of the script.
    Can Any one help me please.
    Edited by: user10903866 on Feb 18, 2013 7:44 PM

    Hi,
    user10903866 wrote:
    For the Following SPOOL I want the GEN_DATE to be entered by the User at the time of execution of the SQL Script. Is it possible in SPOOL Command.Do you want the user input in the SPOOL command, or do you want it in the query?
    set colsep , -- separate columns with a comma
    set pagesize 1000 -- get rid of disturbing ---- between pages
    set heading on -- Print column heading
    set trimspool on -- remove trailing blanks. eliminating the spaces up to eol
    set linesize 700 -- line size should be the sum of the column widths
    spool spool_results.csv
    SELECT *
    FROM GUI_SITE_JOURNAL
    WHERE GENDATE_ BETWEEN '2012-11-01 00:00:00:00000' AND '2012-11-02 00:00:00:00000'* ORDER BY GEN_DATE;What is the data type oif gen_date?
    If it's a string, that's a big mistake. Information about dates belongs in DATE columns.
    If it's a DATE, then don't try to compare it to strings, such as '2012-11-01 00:00:00:00000' .
    spool off;
    The reason is to give the ability to user so that he can enter any range without modifying the code of the script.
    Can Any one help me please.One way to do that is with substitution variables:
    SET     VERIFY  OFF
    ACCEPT  start_gen_date     PROMPT "Starting date (e.g., 2013-02-18 23:00:00.00000): "
    ACCEPT  end_gen_date     PROMPT "Ending date   (e.g., 2013-02-18 23:59:59.99999): "
    SPOOL  spool_results.csv
    SELECT    *
    FROM        gui_site_journal
    WHERE        gen_date  BETWEEN '&start_gen_date'
                    AND     '&end_gen_date'
    ORDER BY  gen_date;
    SPOOL  OFFThere are security considerations. Substitution variables give devious users the power to issue any SQL command, such as DROP TABLE. Users that have SQL*Plus access already have that power, anyway.

  • HSGetValue and substitution variables

    Hi volks,
    is it possible to use the SmartView Hsgetvalue/HSSetValue with substitution variables  like &CurrFC  etc..
    any examples (Syntax) ?
    Thanks in advance
    M

    user11956030 wrote:
    Hello everyone i'm having a little trouble on using define command for a hw assignment.
    Here is what is needed:
    1)Use the DEFINE command to define a variable sal and initialize it to 6000
    2)In the declarative section declare two variables: ename of type employees.last_name and emp_sal of type employees.salary. Pass the value of the substitution variables to emp_sal.
    Here is what i put in and it doesn't work:
    SET SERVEROUTPUT ON
    SET VERIFY OFF
    DEFINE sal=6000
    DECLARE
    ename emp.last_name%TYPE;
    emp_sal emp.salary%TYPE;
    emp_sal = &sal;
    BEGIN
    END;
    Thanks for the help.The assignment operator in PL/SQL is :=, with a colon first.
    Change:
    emp_sal = &sal;to
    emp_sal := &sal;Also, a stand-alone assignment statement like that can not be in the DECLARE section. Put it after BEGIN.
    It is allowed to assign a value when you declare a variable, like this:
    emp_sal emp.salary%TYPE := &sal;but it is not allowed to have an empty BEGIN section. If you want to assign the value in the DECLARE section, then put something (anyhting, at least for now) in the BEGIN section.
    For example:
    DECLARE
         ename     emp.last_name%TYPE;
         emp_sal emp.salary%TYPE          := &sal;
    BEGIN
         dbms_output.put_line (  TO_CHAR (emp_sal)
                        || ' = emp_sal at start of BEGIN section'
    END;
    /= (without a colon) is the PL/SQL (and SQL) equality operator . You can use it in constructions like this:
    IF  emp_sal = &sal 
    THEN
    END IF; Edited by: Frank Kulash on Nov 30, 2009 7:26 PM

  • Re: Enter Substitution Variable pop up

    Windows 2008 - OS
    Oracle 11.2.0.2 - Database
    SQL Developer 3.1.0.7
    I am getting a very annoying pop ups about entering a substitution variable in Oracle SQL Developer, how can I set this off?
    I get the pop up when I try to open any connection, it doesn't matter what database.

    Jim Smith wrote:
    Do you have a login.sql with substitution variables?
    Tools | Preferences | Database | Filename for connection startup script.Jim,
    Yes I had a file name and as soon as I removed it, it worked
    - thanks, really apprecaite it.
    Edited by: 868332 on Mar 2, 2012 8:08 AM

  • Substitution Variable in Partition

    Can a substitution variable be used in a partition? I need to add the current month (from our Time Periods dimension) to a partition. Right now, I am adding it manually. I'd like to automate the process. Does anyone use a partition that changes dynamically? Thanks.

    I'm using a replicated partition. Here is the definition:<BR><BR>( @IDESCENDENTS("Accounts") AND @UDA("Accounts","Capex")) ( @remove(@LEVMBRS("Time Periods","Lev0,Time Periods"),@List(BegBalance, apr,may,jun,jul,aug)) ) ( (@LEVMBRS("Years","Lev0,Years") AND @IDESCENDANTS("Years")))("Forecast")("Current""Final") ( (@UDA("Business Unit_Segment","BU_CORP") AND @IDESCENDANTS("Business Unit_Segment")))"Department""Billing Pool""Expense Type"<BR><BR>See the Time Periods where I have the months hard coded? The last day of every month, I need to add that month (when the books close). So, on Sept 30th, I will add 'Sep' to the list. I'd like to automate this process. We have a substitution variable that we update every month which would work but I'm not sure how to use it in a partition.

  • Peculiar problem with Essbase (Calc Script) - substitution variable / UDAs

    This is odd but I have a script like :
    VAR iloop=1,break=0;
    FIX(<required POV>)
    Loop (20,break)
    VAR Country_total1,Country_total2,Country_total3;
    FIX (@UDA(Entity,@ALIAS(@CONCATENATE("&Country",iloop)))) // &Country1, &Country2 - are substitution variables with UDAs stored as strings
    Statements;
    /* +<statements for calculating total values.. for that country and stored against variables>+ */
    Country_total1=Country_total1+ +<Calculation>+
    ENDFIX
    /* Second part : Now again the calculations stored in the variables are to be stored against specific entities */
    FIX (@UDA(Entity,@ALIAS(@CONCATENATE("&Country",iloop))))
    FIX(@ISUDA(Entity,<Check1>)
    ..... Assign to relevant account
    ENDFIX
    ENDFIX
    ENDLOOP
    ENDFIX
    Now the problem is that the first fix statement works just fine, but the FIX statement in the 'second part' throws an error
    Error: 1200354 Error parsing formula for [FIX STATEMENT] (line 66): expected type [STRING] found [EXTVAR] ([iloop]) in function [@CONCATENATE]
    If I hard code the 'second part' FIX statement to the substitution variable directly - it works just fine.
    How can the first statement work and not the second one ? They are exactly the same.

    Glenn, thanks - I hadn't thought of that :).
    But it still does not entirely solve my problem (please see my previous post depicting a requirement similar to ours )
    - We have lots of countries (50-60+ might be much more) and each country can have multiple entities (3-4 on an average - can go unto 7-8)
    - so good guess would be around 200 entities
    - So say I have to do it for 2 countries only (two entity types). Then I need 4 variables - 2 for each country ('country 1 ET1 total', 'Country 1 ET2 Total')
    When the list is 20 counties - variables become 40 :(.
    - Still leaving aside the 40 variables for a bit -
    There are subsequent steps of calculations which needs to be done based on these totals (which are exactly the same for all countries) - just that we need the correct totals to begin with and the rest is already stored in the DB
    So since I have a different variable for each country - I cannot write one single calculation block to use the variables sequentially one by one (can I ?)
    I might have to write a separate calculation block for each of these countries. (20 separate blocks)
    That's what I was trying to avoid and simplify with the substitution variable (but is not working)
    - Create substitution variables - which would store the alias of the required countries (2/10/20 as many required)
    - Loop through these substitution variables - using them one by one
    - So I just need one single block of calculation with all the variable in the calc script being reused after each country calculation is done
    - and the user need not go into the script, as the only thing that will change are the countries. And he can change it easily through the substitution variable.
    Edited by: Ankur on Jun 27, 2012 12:53 PM

Maybe you are looking for