Reg: Building Essbase dimension using SQL in rule file

Hi,
We are using Essbase 11.1.2.2. I am trying to build a dimension in a cube using SQL query in the rule file, but i am not able to do it.
I am not able to establish connection to database. Can anyone please give a step by step process to do this.

If you really, really, really want to do this --- and by that I mean really get rid of everything in a dimension, create a dummy file with a single child.  That single child should have a name that could never exist in your system.  Something like "Forty-seven ginger headed sailors".  Then set the Dimension Build Settings Member Update to "Remove Unspecified".  Run the dim build -- it will clear out all of the dimension.
Then take your other dim build rule file and use the same Remove Unspecified setting.  That will get rid of the silly member.  The source can be a file or SQL.
Ta da, you have now cleared out the dim, added a single silly member, cleared out the dim again, and loaded the right members into it.
There may be a better way to do the above, but I have done exactly that and it works.
Regards,
Cameron Lackpour

Similar Messages

  • Build essbase cube using Sql query.....

    Hi Team, Can we build dimensions as well as load data into essbase cubes using sql query generated from cognos cube. If so , please guide me the procedure

    I'm not sure about cognos, if you can create an ODBC connection you can try using that in SQL load rules and see if that works.
    Opening an SQL Database
    Regards
    Celvin
    http://www.orahyplabs.com

  • Load Parent-Child dimension with attributes by rule file

    Well, I've cracked my head open while banging against this wall.
    Task is plain & simple:
    How can I load build dimension from such table, using rule file?
    Data
    ProductParent ProductChild ProductAttribute
    Balls Ball_8 Round
    I want to load both product dimension and attribute by single rule file (neither of these dimensions exists in database before load), so I do the following:
    1) Set dimension build settings, creating dimension Products (marking it P\C generated, sparse), having an attribute dimension AttributeDim
    2) Mark the fields as Parent, Child and AttributeDim of dimension Products
    After loading rule file a get three types of errors:
    a) "Base member (Balls) association level does not match base dimension association level" -- does this mean that I cannot assign attributes in P\C way?
    b) "Record #327 - Can not uniquely identify member by Balls (3335)
    Balls     Ball_8     Round" -- That's strange, I thought member should be identified by Ball_8 (and this column is unique)
    c) "\\Record #418 - Error in association transaction [Ball_8] to [Round] (3362)"
    I've read all I could find on topic from this forum, network45 board and going to start my way through metalink3, but maybe some kind soul will rescue me from drowning in information ocean?

    Hi,
    Outline is blank at the start of load and I expect dimensions Product and ProdAttribute to be added.
    Generations are unapplicable, since I can't turn this parent-child dimension (it's ragged) into generation one.
    And, by the way Integration Services manages to do this somehow, why rule files wouldn't?

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

  • Exporting Essbase Dimensions using ODI (specifically attribute)

    I am working on creating a flat file using ODI connected to an Essbase database. I have set up my topology correctly and have been able to export the dimension into a .txt file succesfully. My issue I am having is when I try to include an attribute dimension associated with the main dimension (in this case, organization). I get the following failure:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 89, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: The source column [ServiceByAUTypeAttribute] is not valid for dimension [Organization]
    I went to the specific line, but see nothing out of the ordinary. The column is a valid attribute dimension for Organization.

    It means you have not set a staging area for your on columns on the target datastore, as you are using essbase in your interface you will need a staging area, essbase as a technology has no SQL capabilities.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Problems building a graph using sql SUM

    Hello !
    i'm curently having issues to build a particular graph :
    First, i have a database (moves) which contains 2 columns (timestamp DATETIME, dist NUMERIC), i have no problems to display a graph with these values (even using a time range such 'now','-1 hours', etc.).
    But i'd like to build a graph with for example a 2 hours range which gonna display the sum of the value 'dist' every 30 seconds. So for example, if i have 2 'dist' values (3 and 4) at 0min 30sec, the graph will display 7 and the next value will be the sum of
    the next 30 secondes dist values.
    I tried this :
    curs.execute("SELECT timestamp,SUM(dist) AS dist30 FROM moves WHERE timestamp>datetime('now','-30secondes')"
    curs.execute("SELECT timestamp,dist30 FROM moves WHERE timestamp>datetime('now','-1 hours')"
    But it looks like the column dist30 is not created, and i think this is not gonna work if i want to change the 1 hour range...
    I would like a better "algorythme", the table is filled in an other program, should i directly create a 3  columns table and SUM the dist in dist30 directly ?
    Thanks for your advice !

    Hi Subby,
    Regarding your description, are you trying to rollup the dist column by every 30 seconds in a given 2 hours range? If my understanding I correct, you may reference the below sample. As you didn't post any detail about your function datetime(after the where
    clause), so the sample is just in a usual way.
    CREATE TABLE moves(timestamp DATETIME, dist NUMERIC)
    INSERT INTO moves VALUES('2015-02-13 14:20:01',1)
    INSERT INTO moves VALUES('2015-02-13 14:20:17',2)
    INSERT INTO moves VALUES('2015-02-13 14:20:29',5)
    INSERT INTO moves VALUES('2015-02-13 14:22:37',2)
    INSERT INTO moves VALUES('2015-02-13 14:22:56',5)
    INSERT INTO moves VALUES('2015-02-13 14:27:17',2)
    SELECT timestamp,SUM(dist) AS dist30 FROM(
    SELECT DATEADD(SECOND,DATEPART(SECOND,timestamp)%30*-1,timestamp) AS timestamp,dist FROM moves) AS T --rollup by every 30 seconds
    WHERE timestamp BETWEEN '2015-02-13 13:00:00' AND '2015-02-13 15:00:00' --two hour range
    GROUP BY timestamp
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Building Essbase dimensions

    Hi experts,
    I'm developing an small aplication with Essbase usings Essbase Studio 11, I create the datasources, create the minischema, and model metadata with one Measure Hierarchy and 2 Hierarchies, one for TIME (YEAR->QTR->MONTH) and another one for EMPLEADORES (REGION->CIUDAD->COMUNA->DIVISION->RAZON SOCIAL).
    Now the problem is when I want to deploy the cube to EAS Console, only my hierarchy of TIME has complete data, my hierarchy of EMPLEADORES looks empty, and I don't know why, because I modify properties in Essbase model to load data as an XOLAP model, and my hierarchy of EMPLEADORES was define as Multiple-Hierarchy.
    My Application in EAS Console has a Agregate Storage Support.
    I hope that you can help me.

    This is an example with the record rejected by Essbase:
    \\Record #3 - (3345) Error setting ID (#~@12#0#105#0@#~@3#0#158#0@#~1) to member (1)
    TODOS TODOS METROPOLITANA METROPOLITANA SANTIAGO SANTIAGO SANTIAGO SANTIAGO 1 1 INMOBILIARIA THOR LTDA. INMOBILIARIA THOR LTDA.
    One special thing with this process is when I try to deploy this model Essbase only read 3 records of my EMPLEADOR table, and this table in the transactional has over 2000 records, I don't know if this is caused by the structure of the table.

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

  • Building BSO using ASO Rules file

    Hi All,
    We are building a new application where in we want to have both ASO and BSO. Eventually we wanted to do partition between these two cubes.
    We already have a fully functional ASO with data loaded into it. This ASO also has bunch of rules files using which the ASO cube was built.
    We need to build a new BSO and it should have same outline as ASO and in order to achieve this as used the same rules file that are in ASO. I already built the BSO usinng ASO rules files
    My issue is with the dimension which are deifned as Multiplw Heirarchy and I would appreciate if some one can help me how do i define them in BSO. Also if some one canhelp me understand what are additional changes that needs to be taken care when I am building BSO using ASO rules files
    I am trying to apply a caluclation which is in ASO and I am getting following error -- Error(1200337) - Error compiling formula for [Feb YTD] (line 1): [)] without [(]. As part of my research i found that error code is very generic. I checked the caluclation for missing ) or ( but everything looks good
    Any help is greatly appreciated
    Thanks
    Satish

    Your ASO formulas will not work in BSO cube. ASO uses MDX formulas and BSO uses Essbase calc script language. There is a guide in the technical reference that helps convert from one to the other.
    As far as multiple hierarchies, BSO does not have this concept. You should be able to load the hierarchies as is with perhaps a few changes to the load rule to address how to handle shared members.
    You will not have a direct one to one from BSO to ASO. They are a different architecture and as such have variances that are not 1 to 1 compatible.

  • How to see the SQL used in an existing Rule file?

    Hi,
    Is there a way to see the SQL used in the rule file defn of any existing rule file which retrieves data from a RDMS?
    Appreciate your thoughts.
    Thanks.

    Sure.
    In EAS open up the load rule in question, then select the menu item "File"-"Open SQL".
    Robert

  • Error when building dimension using AWM

    Hi Gurus,
    I am trying to build a dimension using AWM 11.1.0.7.0B Standalone. My Database version is _11.1.0.6.0._
    The moment i start to create a New Dimension, i get the below error.
    The transaction is not committable: "An error has occurred on the server
    Error class: Express Failure
    Server error descriptions:
    DPR: Unable to create server cursor, Generic at TxsOqDefinitionManager::g
    The transaction is not committable: "An error has occurred on the server
    Error class: Express Failure
    Server error descriptions:
    DPR: Unable to create server cursor, Generic at TxsOqDefinitionManager::generic<CommitRoot>
    INI: Unable to parse XML string sent from the client to the server, Generic at XML Parser Errors:
    Error processing subelement: <StandardDimension><Attribute><BaseAttribute><Classification>
    Error processing tag: Classification:
    Error returned by xsOqXmlParserExecute.
    +"+
    +at oracle.olap.awm.dataobject.dialog.PropertyViewer.doCreateAction(Unknown Source)+
    +at oracle.olap.awm.dataobject.dialog.CreateDialogHostActionThread.doAction(Unknown Source)+
    +at oracle.olap.awm.ui.dialog.ThreadedDialogActionThread.run(Unknown Source)+
    Please help!!!!!
    +*Regards,*+
    +*Ravi R*+

    The initial release of OLAP in 11.1.0.6 was not stable. Please upgrade to at least database 11.1.0.7, and preferably 11.2.0.3. If you move to 11.1.0.7, then you should apply the "OLAP D Patch", #9147749. See the OLAP certification page for more details.
    http://www.oracle.com/technetwork/database/options/olap/olap-certification-092987.html

  • Using Sql jobs to schedule essbase cubes.

    Hi guys,
    I have a Sql Server datamart who is loaded by Sql Server Integration Services.
    After that, an essbase cube connects to the Sql Server datamart.
    Finally, the user can review the data using SmartView.
    I need to schedule these tasks.
    I have a Sql job who trigger SSIS packages (datamart load).
    Then I need load essbase cube.
    How can I schedule load essbase cube using Sql jobs?
    Excuseme for my english.
    Thank you in advance.

    Thank you guys.
    At last I could schedule a MaxL script from SqlServer agent.
    I follow these steps:
    1. Copy StartMaxL.cmd from other essbase instalation (I don't know why, but it didn´t exists).
    2. Add ARBORPATH and ESSBASEPATH environment variables.
    3. At the moment to generate the cube, select save like MaxL load script.
    4. In Sql Server Agent, add a step job type "operating system" and in command, E:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC-64\11.1.2.0\bin\startMaxL.cmd E:\[scrip_name.msh] [user] [pass]
    It works fine. Thank you again.

  • Import dimension and member via maxl, how to create data file and rule file

    Hi
    I have a task to import dimension and member into Essbase, for project requirement, I have to use text file or spreadsheet file.
    I wonder which format can be imported into Essbase?
    I tried to create them, failed.
    Do you have any samples to help me? dimension file and rule file...
    I search a lot in http://gerardnico.com/wiki/epm/essbase/dimension_build#about , but there are no samples.
    Thanks in advance...
    Best regards,
    Samantha

    import database Sample.Basic data from data_file 'C:\TEMP\GENREF.txt' using rules_file 'C:\TEMP\GENREF.rul' on error append to 'C:\TEMP\logs\dimbuild.log';Here issue is not with rulefile but in reading the rule file.
    I hope rule file is in the database directory (By default it will get saved there only)
    Try with the below command
    import database Sample.Basic data from data_file 'C:\TEMP\GENREF.txt' using server rules_file 'GENREF' on error append to 'C:\TEMP\logs\dimbuild.log';
    Rule file also had one issue
    Market, Product, Measures, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, DecHere I am seeing only four dimensions from the Sample.Basic database
    Scenario is missing. So define Actual (Scenario Dimension member) in the rule file header definition.
    All dimensions must be identified to parse one data file with rule file.
    PS: Naming (GENREF) is also irrelevant if you are loading data. It is apt for dim load.

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

  • How to Load Arabic Data from flat file using SQL Loader ?

    Hi All,
    We need to load Arabic data from an xls file to Oracle database, Request you to provide a very good note/step to achieve the same.
    Below are the database parameters used
    NLS_CHARACTERSET AR8ISO8859P6
    nls_language american
    DB version:-10g release 2
    OS: rhel 5
    Thanks in advance,
    Satish

    Try to save your XLS file into CSV format and set either NLS_LANG to the right value or use SQL*Loader control file parameter CHARACTERSET.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1005287

Maybe you are looking for

  • Spaces - still re-enabled after every restart :-(

    How many years till this is fixed? It has once again happened over multiple iMacs and clean installs. Is there any way to cure this? For now I just remove it's shortcut keys so it cannot be accidentally activated.

  • How to take out put of each documents

    dear all, i want to know the detail configuration and settings in sd for out put. such as i need to take the print of sales order or invoices so what type of settings i have to do how one can take a print out after creation of a sales order,quotation

  • How to Upgrade Target Agent from 10.2.0.3 to 10.2.0.4

    Hi Everybody, I am doing this first time so need some help Q1. I need to Upgrade Target Agent from 10.2.0.3 to 10.2.0.4 manually and can't seem to find the right patch I need. I tried p3731593, but this seems to be installing much more than what I ne

  • Final Cut Pro 7 Crashing on startup for only one project

    Hi there, Been using FCP for years now and have never had this issue.  For some reason FCP keeps crashing when I launch a particular project; just this one project!  Others don't seem to have this issue.  Sometimes it does get as far as loading all t

  • How do I synch a new magic mouse

    My old magic mouse died and I just bought a new one; how can I synch it? This instructions say I have to navigate to the menu, but without a mouse how can I do that? I'm attempting to do this without borrowing someone elses mouse.