Changing a Load rule programatically. (SQL interface)

Does anyone know if you can change the source odbc connection for a load rule programatically? I'd like to write a MAXL or script that will change my cubes to point to my dev OR my test environment - but I have 15 load rules for each cube. (5 or 6 cubes to change).Thanks.

As far as I have been able to determine you can not modify a load rule programatically. Your only solution is to copy the load rule then change the sql query. Alternatively you could use a view as the underlying SQL i.e. Select * from View. You could then modify the view as required. i.e. run the load with the view pointing to table1 then modify the view to point to table 2 and run the load again.

Similar Messages

  • Problem with load rule/server performance

    Version 11.1.2.1
    Hi just a couple of questions:
    1) Load rule: I cannot retain the field property definition after I get my data from SQL. When I go define, save and re-open the load rule, the field property is still there. When I get the data from SQL it takes the column header from SQL. I've tried the header/record to skip the 1st record but it doesn't work. I have the same exact load rule in 9.3.1 and it retains the field properties. What am I doing wrong?
    2) I am curious as to why my Essbase server is really slow in general. I am running Microsoft Server 2008 R2 with 4 CPU * 2.3 GHz + 16 GB RAM. I know the processor is below requirement but it is dog slow. Just curious about some of you are using in terms of processors.
    Thanks

    Typically when you build a load rule using SQL interface when you first retrieve data, it uses the SQL column names as the load rule field headers. After the retrieve, you shuold be able to go into the field properties and change the names to the Dimension names. I've not see where once you set the filed names in field peoperties, it overrides them with SQL column names. If you are gettting thie, I suggest you open an SR with Oracle. The workaround as someone suggested is in your SQL to use the actual Essbase names as the column names
    Like in the case of Sample.Basic
    Select
    SKU as Products
    ,State as MArket
    ,'Actual' as scenario
    ,Measures
    ,Jan
    from XXXXXX

  • Dimension Build Load Rule Reject Record

    Hi,
    I'm trying to create a load rule that build the accounts dimsenion with a flat file. I would like to exclude any accounts that starts with "S" from being added to the account dimension. I have a parent/child build method for this load rule. i'm using the Reject Record to set the condition that any string contain S will be rejected but for some reason when I load it doesn't do anything. it makes EAS freeze up. so, my flat file looks like this.
    New Accounts,S50000,Accounts - S50000
    New Accounts,60000,Accounts - 60000
    New Accounts,S45000,Accounts - S45000

    Hi,
    Your posting does not tell me what you entered in the reject record setting to try to achieve the desired result. If you entered "S" and used the "Contains" setting it should have worked providing you know your data and don't have occurrences of this character possible other than in the first ordinal position. If you tried to use a wildcard asterisk callout, Essbase load rule select/reject logic does not take wildcard inputs (like "S*").
    Instead, a tried and true trick of Essbase load rules is to make a copy of the field in question, split it up and take background select/reject action on just the first character of a reference copy of the original field. This is done by using the field "create on join" method and simply joining the field to itself (an unintuitive but effective way to make a copy of a field for use in the load rule settings). Having done this, now split the copy of the field after one character. The remaining field section can be set to ignore for dim builds (or data loads as you might have to do later to match your dim build results in data loads). Now you have a single character field for which you can set the reject setting of contains or equal to "S" and then... please get this part... ignore the field for dim builds in field properties. Essbase will not try to use this partial field to build anything since it is ignored, but the assigned reject logic on occurrences of the isolated single character field will still be interpreted.
    This is old school Essbase but it still works. I am not here to say it is intuitive or that it represents the ultimate functionality in an ETL interface. Many with SQL skills would take care of this pre-load-rule in SQL string management. But this method is not that hard to apply and is effective if all you want to do is use load rule settings. Let me know if it helps.
    Darrell

  • 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.

  • Error while opening SQL source for a Data Load Rules File

    Hi ,I have created Data Laod rules file.When I try to open a SQL source for this rules file (File->Open SQL) , I get an error saying "Your server does not have a SQL connection Option, Please check with your system administrator"Further I get a message "There are no data sources defined. PLease create one to continue.".I have created DSN on my Essbase server.What is the problem.What needs to done to open SQL files.Thanks.

    I have Essbase 7.1 I guess for version 7.1 the SQL interface option is intalled with the Analytic server itself .Am I right?I have setup the DSN also.Please help to resolve this issue.Thanks .

  • 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.

  • SQL Load rules file

    Hi Experts,
    I'm trying to create SQL based load rule for BSO application.I'm not sure what i'm missing but in data field it shows " 0" or "-0" in EAS while retriving a data from Oracle.When I execute same query on oracle data was there.
    The data field which i'm not getting correctly is "SUM(aa."AMOUNT").Any suggestions ?
    Thanks in avd
    Vipul

    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.

  • Change the mapping generation code from sql*loader to pl/sql

    I want to use a mapping with a flat file operator to generate pl/sql code even if a mapping generate sql*loader code as default.
    I tried to change the Language generation property of the mapping but an API8548 error message is shown. The suggested solution by OWB is to change the language generation code in the property inspector of the mapping.
    I can't use external table because I have to work with a remote machine.
    What i have to do to change the generation code from SQL*Loader to PL/SQL?

    How about breaking this out into 2 mappings? In the first mapping, map a flat file operator to an table using SQL*Loader code. Then define a second mapping using the table as source and therefore generate PL/SQL. Then use process flow to launch the 2nd map to run after completion of first.

  • Using Sql views in Load rules

    <p>I am trying to create a load rule from a SQL view. When I openthe Sql in the Rules file, the headers show up, but there is nodata.</p><p>Is there something else I need to do? (I did not create the SQLviews myself)</p><p>I am quite capable of loading data/dimensions from a SQL queryor table, but this table needed to be combined with another so myMIS supprt created a view for me to use to load from.</p><p> </p><p>Any help would be greatly appreciated!</p><p> </p><p> </p>

    I had probems with certain column types in the past. Had to convert them to strings. It's been a while so I dont remember what type. The best way to find something like this is to modify your sql to return one column, try it and see it it works, if it does, then add a the second column, etc. It can be tedious if you have a lot of columns but beats sitting there scratching your head.

  • How to load oracle views data in essbase via sql interface

    <p>Could someone explain to me how to use Essbasesql-interface.</p><p>We have some oracle views for data and a certain number of DLRsfor otl building and data loading.</p><p>I know that there is an INCBUILDDIM syntax for sql source inwich you just specify the dlr and the oracle user-password toconnect.</p><p>How does it find the appropriate view to fill the dlr? How doesit work?</p><p> </p><p>Thanks in advance</p><p>eakp</p>

    Hi,
    How are you loading, if you are loading from a SQL table you would just load a null into the database
    e.g. loading data into sample basic
    Measures,Period,Scenario,Market,Product,Data
    Sales,Jan,Actual,Florida,100-10,10
    Cogs,Jan,Actual,Florida,100-10,+NULL+
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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.

  • 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!

  • Having issues after installing Essbase V9.3.1,configuring the SQL interface

    I am having issues after installing Essbase V9.3.1 and configuring the SQL interface. we are using UNIX/AIX box for our Essbase server and UDB DB2 9.1 SP6 as our SQL Interface.
    When tried to run an ESSCMD script to perform BUILDDIM operation on Essbase application using the load rule (with the SQL interface), got the error as recorded in the application log file and is attached at the bottom and the .odbc.ini file on the server looks as follows.
    Can somebody tell me whether .odbc.ini needs any correction or what else should I do to correct the issue and able to work thru using SQL interface? Appreciate any help provided in this regard. Thanks,
    .odbc.ini
    [ODBC Data Sources]
    DOLU003=IBM DB2 ODBC DRIVER
    [DOLU003]
    Driver=/home/db2inst1/sqllib/lib/libdb2.a
    Database=DOLU003
    [ODBC]
    Trace=0
    TraceFile=odbctrace.out
    InstallDir=/home/db2inst1/sqllib/odbclib
    [Mon Apr 20 15:16:29 2009]Local/New_Bud/Budget/Olapadm/Info(1021020)
    Cannot read SQL driver name for [] from [home/hyperion/.odbc.ini]
    [Mon Apr 20 15:16:43 2009]Local/New_Bud/Budget/Olapadm/Info(1013091)
    Received Command [SQLRetrieve] from user [Olapadm]
    [Mon Apr 20 15:16:43 2009]Local/New_Bud/Budget/Olapadm/Info(1021020)
    Cannot read SQL driver name for [] from [home/hyperion/.odbc.ini]
    [Mon Apr 20 15:16:43 2009]Local/New_Bud/Budget/Olapadm/Info(1021004)
    Connection String is generated
    [Mon Apr 20 15:16:43 2009]Local/New_Bud/Budget/Olapadm/Info(1021041)
    Connection String is [DSN=DOLU003;UID=...;PWD=...]
    [Mon Apr 20 15:16:43 2009]Local/New_Bud/Budget/Olapadm/Info(1021006)
    SELECT Statement [SELECT * FROM DB2OLADM.BD_DIMENSION_DEF_PC WHERE DIMENSION_ID
    = 12 ORDER BY TREE_NODE_NUM, PARENT_NODE, CHILD_NODE] is generated
    [Mon Apr 20 15:16:44 2009]Local/New_Bud/Budget/Olapadm/Info(1021013)
    ODBC Layer Error: [7] ==> [[DataDirect][ODBC 20101 driver]6013]
    [Mon Apr 20 15:16:44 2009]Local/New_Bud/Budget/Olapadm/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Mon Apr 20 15:16:44 2009]Local/New_Bud/Budget/Olapadm/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    --------------------------------------------------------------------------------------------------------------------------------------------

    I had similar errors when first setting up the SQL interface. Are you on a 64 bit operating system on the essbase server? If so Essbase needs to use the 32 bit odbc driver, not the default 64 bit driver.
    The 32 bit driver is still available here SysWOW64\odbcad32.exe <-----This is the 32 bit (Use)
    The Administrative tools by default uses system32\odbcad32.exe <----This is the 64 bit (Don't Use)
    Once I opened the 32 bit driver interface directly and set it up the errors went away.

  • Problems getting ODBC SQL Interface to work for Essbase 11.1.1.3

    Hi folks.
    We're running Essbase 11.1.1.3 on Linux (32 bit) and I want to use the ODBC SQL Interface to load fact data.
    We have run the SQL Interface install .sh script successfully, then restarted the Essbase agent, and have modified the ODBC.ini file to use the Oracle Wire Protocol driver.
    I enter the SQL query in the rule Data Prep Editor in EAS (File | Open SQL) and when I hit "OK/Retrieve" I get the error "Failed to Establish Connection with SQL Database Server."
    The application log file says:
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver]TNS-12154: TNS:could not resolve the connect identifier specified]
    [Wed Oct  6 15:31:26 2010]Local/appx/Plan1/username/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Wed Oct  6 15:31:26 2010]Local/appx/Plan1/username/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Wed Oct  6 15:31:26 2010]Local/EXECDEV/Plan1/username/Warning(1080014)
    Transaction [ 0x6b0001( 0x4cacce8e.0xe4d2f ) ] aborted due to status [6].
    Any suggestions?
    Edited by: user12087276 on Oct 6, 2010 3:39 PM

    Have you followed the info here :- How to define a relational data source in (odbc.ini) V11 Essbase?
    You don't need to run Inst-SQL.sh
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Able to edit Business Rules through Excel interface?

    Hi,
    I wonder if there is any way that I can add, modify or delete the Business Rules definitions through Excel interface. In the Admin Console, though the Business Rules interface looks neat, I encounter the following difficulties in editing the Account Transformation definitions:
    1. The check in the Reverse Sign sometimes disappears after the definitions being saved. I have to click something other than Business Rules, like Dimensions, Application, Security, etc, and come back to Account transformation again in order to have the Reverse Sign check being saved.
    2. I'm not able to to check the Reverse Sign in the last definition of Account transformation. It always disappears after being saved. My workaround is to put a dummy definition at the end or not to put that definition, which needs Reverse Sign, at the end.
    3. When I delete some definitions in the middle, the following error pops up after validation.
    [] value does not exists in ID of Account dimension.
    4. I have written my definitions in my design documents in Excel but I'm not able to copy and paste all of them to Admin Console's business rules. I have to fill in each value one by one.
    Or can I simply edit the table dbo.clcCALCAccount_XXXX? Since I used to be a database programmer, I feel it easier to directly edit the database table rather than using the business rules interface.
    Best Regards,
    Sunny

    Sunny,
    It is not according to the book but it is possible to change the business rules directly on the SQL. That is the way i do it sometime... and yes the table you point is the right one. You see other tables for other business rules...
    Usually i just do a copy and paste into excel. Then i change into excel (i also use EVPROs to check if the members are not calculated members...) and then i repaste it into SQL...
    But I have to say, do it at your own risk, as I stated before it is not really advised/safe...
    Nic

Maybe you are looking for

  • Add a new line to get Iphone 4s instead of ETF?

    Could I add a line to our family share plan to get the Iphone 4S, and after activation on the same day switch the Iphone to my current phone line # on the same plan, and then add an old non data phone to the new line added to buy the iphone? That way

  • Is ZVM power adapter still includ

    I just ordered my ZVM from an online retailer thinking the AC adapter was included, but then noticed this on the Creative website: The optional power adapter (sold separately) charges your player in less the half the time of USB charging. No more han

  • Ubuntu 10.04 (build 16.3-b01, mixed mode) - Applet Fails (log inside)

    I am looking for some advice on what to try next. ---- java console ---- Java Plug-in 1.6.0_20 Using JRE version 1.6.0_20-b02 Java HotSpot(TM) 64-Bit Server VM User home directory = /home/cprofitt c: clear console window f: finalize objects on finali

  • Create   Sales order ,Delivery, Billing and  Invoice no. in back date.

    Hello Gurus, Goodevening , we have a requirement , here  we need to create, Delivery on  back date.  Note- System should   do the  availability  check on  back date. ( 1.e on requested delivery date) and confirm quantity on that date. Note-What ever

  • Robohelp 7 - Runtime error when publishing

    Hi all - Of course I have a go live tomorrow night, and when I tried to publish changes tonight, I am getting a runtime error - I've never had this problem before. I have tried rebooting, didn't help. I closed all open apps, no help. I have not made