Maxl Import Dimensions

Hello,
I need implement a maxl script to load member in essb 9.3.1
LOGIN user pass ON server;
IMPORT DATABASE app.db DIMENSIONS
From LOCAL TEXT DATA_FILE 'G:\\Produc.txt' ---client folder
USING SERVER RULES_FILE 'PrdPearl'
ON ERROR APPEND TO 'G:\\er_prod.log';
the execution send a network error and the application goes down.
It's work in essbase 6.5 and 9.3.0, and the member load is succesfull (9.3.1) if I do directly in EAS
I find the principal problem, the dynamic member are over 100 dynamic children per each parent (dynamic too). I know this error, but the custumer need this structure.
I testing with builddim and the error is the same..
some suggestion???
Thanks

Hi,
you might wanna try this:
login [Username] [Password] on [Server];
spool stdout on to 'output.txt';
spool stderr on to 'errors.txt';
alter database [Application].[Database] unlock all objects;
alter system unload application [Application];
import database [Application].[Database] dimensions
From LOCAL TEXT DATA_FILE 'G:\\Produc.txt' USING SERVER RULES_FILE 'PrdPearl'
preserve all data ON ERROR APPEND TO 'G:\\er_prod.log';
spool off;
logout;
exit;
The spool function will log the output of your maxl statement to a file in the directory where the maxl is ran.
Good luck!

Similar Messages

  • Essbase - MaxL import dimensions

    Hi everybody,
    I have to update a dimension on my Essbase ASO application (only metadata). It is an incremental load dimension starting from a txt file containing all the elements, either those that currently are in the dimension. I'm using the MaxL statement Import dimensions by server rules file. Although, i'm wondering what the clause "preserve alla data" will do? What happens if i do not insert this clause when importing dimensions? After the the import i have to save the outline or launch the restructure?
    Thank you in adavance guys,
    Maurizio

    Hi Celvin,
    thnks for your answer. So, If i launch the following Maxl Script without the clause "preserve all data" i could lose all the data stored in the db?
    import database sample.basic dimensions
    from data_file 'test.txt'
    using rules_file 'test.rul'
    on error append to 'test.log'
    I tried on the ASOSample and the data haven't been cleared. There may be some options at applicatoin level or server level that effect how it works? could it be a safety clause in case of an abnormal shutdown during the import process?
    I know it's obviously better to put always the "preserve alla data" clause, but at the moment i'm evaluating the functionality of some existing scripts and i want to understand how they works.
    Thank you very much
    Maurizio

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

  • MAXL import statement with ASO

    I am attempting to write a MAXL script to import data using a load rule and want this to subtract from any existing data already stored in the database. I am using a load buffer and my syntax is as follows:
    alter database App.DB initialize load_buffer with buffer_id 1;
    import database App.DB data from data_file 'RnBF2B1.txt' using server rules_file 'Rev2B.rul' to load_buffer with buffer_id 1 on error write to 'Rev2B.err';
    import database App.DB data from load_buffer with buffer_id 1 subtract values;
    I am getting the error :
    essmsh error: Parse error near subtract
    Any ideas?

    I am using Essbase 9.3.1
    If I go to the command prompt and type line by line, I do not get an error but if I put it in a mshs file, it appears like there is an extra space before the word subtract and that's where I have the error. I have checked and there really is only one space.
    This is what my command file looks like
    MAXL> import database App.db data from load_buffer with buffer_id 1 subtract values;
    essmsh errro: Parse error near subtract
    Do you think MAXL is puttin in an extra space or something? I feel like my code is haunted by a ghost.
    Edited by: Jeanette R. on Aug 2, 2011 1:42 PM

  • MAXL Import data statement error

    Can someone assist me in the maxl import data statement.
    In the import data statement "import database App.DB data from data_file "\\servername\\folder1\\folder1\\data.txt";
    The error I get is trying to specify the syntax for the path of the server. Does someone have an example of the import statement syntax that is referencing the data file from a server?
    Thanks

    Have you tried something like :-
    import database App.Db data from text data_file "\\\\servername\\sharename\\directory\\datafile.txt" using server rules_file "dataload" on error write to "dataerrors.err";
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Maxl Import Data Error

    I am getting the following error when i try to do import of Data into Database using MAXL.Can you please let me know what i am doing wrong.I am trying to incorporate this into a script.
    MAXL> import database 'HQFPA'.'HQFPA' data from local text data_file 'E:\\Hyperion\\AnalyticServices\\app\\HQFPA_Level0.txt';
    ERROR - 1242020 - (1) Syntax error near end of statement.
    importing Databases for HQFPA.HQSLP
    MAXL> import database 'HQFPA'.'HQSLP' data from local text data_file 'E:\\Hyperion\\AnalyticServices\\app\\HQSLP_Level0.txt';
    ERROR - 1242020 - (1) Syntax error near end of statement.
    Any help would be greatly appreciated.
    Thanks,
    Chandra

    Chandra,
    There's nothing that I can see wrong with your syntax. For giggles, I wrote an import statement against sample basic on my laptop (no load rule, just like yours) and stuck it into a three line MaxL script (login, import, exit):
    import database 'sample'.'basic' data from local data_file 'c:\\hyperion\\essbase\\app\\sample\\basic\\calcdat.txt' on error abort ;
    It works.
    BTW, this also works:
    import database sample.basic data from local data_file 'c:\hyperion\essbase\app\sample\basic\calcdat.txt' on error abort ;
    Isn't MaxL neat? :)
    Are you sure that your pathing is correct?
    Regards,
    Cameron Lackpour
    Edited by: CL on Dec 5, 2008 12:47 PM
    BTW, that first import statement has a double backslash between basic and calcdat but it doesn't show up after it's posted yet it is there when I edited it. It must be something to do with the way it gets wrapped in my browser.
    Edited by: CL on Dec 5, 2008 12:51 PM
    This also works (added text property to data_file):
    import database sample.basic data from local text data_file 'c:\hyperion\essbase\app\sample\basic\calcdat.txt' on error abort ;

  • Maxl import on error write to error

    I created a Maxl import data script to load data using SQL. The execution works when the on error is set to abort, however, when I set the on error to write or append I receive a syntax error message.
    I set the path in script editor as on error write to 'c:\\hyperion\dataload.err' but it appears in the MaxL statement window as on error write to $outfile_sree1.
    Does anyone know what might cause this error?
    Edited by: user10615431 on Dec 30, 2008 7:26 AM

    below is the Maxl script I use to import data into one of our databases. I do not use a double backslash in the file path.
    Good Luck,
    Scot
    /*** Login to essbase server ***/
    /*** login $1 $2 on $3; ***/
    login 'userid' 'password' on 'Server';
    /*** Set output file to spool all error messages only ***/
    spool stdout on to 'D:\Hyperion\Automation\Logs\GAAPPlan_Yearly_Load_Essbase.LOG';
    spool stderr on to 'D:\Hyperion\Automation\Errors\GAAPPlan_Yearly_Load_Essbase.ERR';
    /*** Clear data in GAAPPlan for the current year ***/
    execute calculation 'GAAPPlan'.'GAAPPlan'.'ClrACrYr';
    /*** Import data from the FACT_GAAPPlan_YEARLY table using a load rule ***/
    import database 'GAAPPlan'.'GAAPPlan' data connect as 'SQLUSERID' identified by 'SQLUSERID_Password' using server rules_file 'LdACrYr.rul' on error write to 'D:\Hyperion\Automation\Logs\GAAPPlan_Yearly_DataLoad_Essbase.log';
    /*** Calculate data in GAAPPlan for the rolling month ***/
    execute calculation 'GAAPPlan'.'GAAPPlan'.'ClcACrYr';
    spool off;
    logout;
    exit;

  • MAXL Import Database (and export data?)

    I have an import database MAXL command that is working great (sql account and password substituted).  The rule file has a SQL connection to our ERP. 
    MAXL> import database PLANNING.DetView data connect as sql_account identified by "Password" using rules_file "'\\\oceanus-d13\\Oracle\\Middleware\\user_projects\\epmsystem3\\EssbaseServer\\essbaseserver1\\app\\PLANNING\\DetView\\NLIncur.rul'" on error write to "'G:\\DB_Process\\DetView_Process\\errors\\DetView_NLIncur_data_load.mxl.err'";
    We are going to run this on a nightly basis and our requirement is to have a historical record of what was "pulled" from our ERP (even if it didn't make it in to Hyperion).
    Here are the options that I've thought of:
    Have a separate SSIS package use the same SQL to dump the data out of the ERP database into a flat file.  The downside to this is that I'm using subvars from Essbase that don't exist in SQL.  So I'd have to write the SQL in a different way potentially causing discrepancies.
    A separate Data Export of what was loaded.  The downside here is that it doesn't have the errors that never made it in.
    I can't find another option in the import database command to spool the output of the SQL to a file. 
    Does anybody have thoughts on how to do this or are there other ways to achieve what I'm trying to do?
    Thanks-
    Cameron McClurg

    The SQL run via the load rule understands my subvars.  The load rule SQL looks like this:
    select...
    WHERE
      AND (('1' = '&IncSpanYr' --IF THE PERIODS SPAN YEARS
      AND (('12' = '&CurMoNm' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '&CurYrNm' AND A.ACCOUNTING_PERIOD IN ('&PriMoNm', '&CurMoNm'))
    This turns into:
    WHERE
      AND (('1' = '1' --IF THE PERIODS SPAN YEARS
      AND (('12' = '12' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '2014' AND A.ACCOUNTING_PERIOD IN ('2', '3'))
    My issue is getting a dump of all that data that the SQL is pulling.  I don't see a way to do that in the import database command.  A separate job on the SQL side (like SSIS) could pull the data, but can't access the subvars easily.  Does that make sense?  Or did I misunderstand your suggestion?
    Thanks-
    Cameron

  • Query regarding Import Dimensions using Flat File in EPMA

    Hi All,
    I am trying to import dimensions and Dimension properties using a flat text file to the master dimension library. If I try to include any properties (HFM) in the !Members Section, I am getting an error "Input Line ... does not have the expected format of 1 columns". But if I remove the properties and just build the members and hierarchies without any properties definition, I am able to succeed. Can someone guide me on what I might be missing with regards to member properties? Below is the format of the input text file.
    !Section=Dimensions
    'Name,DimensionClass,DimensionAlias,CustomDimensionID
    HFM_Entity,Entity,HFM_Entity,
    !MEMBERS=HFM_Entity
    'Name,Allow Adjustments
    10001000,Y
    10001100,Y
    !HIERARCHIES=HFM_Entity
    'Parent,Child
    Please let me know if any other information is required.
    Cheers,
    HyperionUser

    Hi,
    Have a look in directory \Hyperion\products\Planning\bin\sampleapp
    there is a sample ads file :- SampApp Source Flat File.ads
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Import Dimension Data Package

    I am trying to use Import Dimension datapackage to import members from a table. This package first deletes current meembers and then imports values in the table. Is there a way to append, modify etc. the cuurent members of the dimension with this package.

    Kadir,
    Now I understand what you need.
    To avoid that scenario, I think you need to export MBR table to excel member sheet after fiish that 'import dimension' package  or add another task at end of the current import dimension package.
    Then users will use updated member sheet so that we can avoid this issue.
    Regards,
    James Lim

  • Importing dimensions

    Hi,
    Does anybody have experience in automatically importing dimensions into BPC (accounts, companies, products, projetcs etc) from a source system, for example an ERP-system? We are especially interested in experience from importing dimension members and automatically adding properties and hiearchies that is available in the source files/tables. References to valid documentation would be very helpful!
    Thanks in advance.
    /Thomas

    Every dimension is on the appset level in BPC under the dimension library. There are no aplication specific dimensions, every dimension can be used in every application. You can not modify the dimension type after creation, but you hvae to think about that before you start creating dimensions. This kind of change is not something you do a lot, since an Account dimension never becomes an entity dimension for example. If you really need to change this because you set it wrong by accident, delete the wrong one and create a new dimension with the correct datatype.

  • MaxL import statement w/ rules

    How do you tell MaxL to look on the server for the rules file (without specifying a full path)?Harold

    Try using the following syntax:import database DBS_NAME data from data_file DATA_FILE_NAME using server rules_file RULES_FILE_NAME on error write to ERROR_FILE_NAME;Shane EckertThinkFast Consulting, Inc.

  • Maxl Import - Export L0 data crashes

    Hi to all,We have an automation Maxl script, for a mission critical application where we export 6 times a day all L0 data, then import them back again, .It has been running for sometime smoothly, but suddenly it startet to crash, meaning it doesnt export the data or import it back in.We write on a file specific directory other than app\db (we tried this one but didnt work).We use MS W2000 server Essbase 6.5.We heard from Hyp that maybe there is a bug on v6.5Does anyone had similar problems?Thanksyannis

    The SQL run via the load rule understands my subvars.  The load rule SQL looks like this:
    select...
    WHERE
      AND (('1' = '&IncSpanYr' --IF THE PERIODS SPAN YEARS
      AND (('12' = '&CurMoNm' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '&CurYrNm' AND A.ACCOUNTING_PERIOD IN ('&PriMoNm', '&CurMoNm'))
    This turns into:
    WHERE
      AND (('1' = '1' --IF THE PERIODS SPAN YEARS
      AND (('12' = '12' --IN JUNE LOOK INTO NEXT YEAR PERIOD 1
      AND ((A.FISCAL_YEAR = '2014' AND A.ACCOUNTING_PERIOD IN ('2', '3'))
    My issue is getting a dump of all that data that the SQL is pulling.  I don't see a way to do that in the import database command.  A separate job on the SQL side (like SSIS) could pull the data, but can't access the subvars easily.  Does that make sense?  Or did I misunderstand your suggestion?
    Thanks-
    Cameron

  • Mapping Type missing for Import Dimension via Interface Tables

    Greetings Everyone,
    I was wondering if anyone else had this issue. I have two Generic dimensions that I have created within the Shared Library. The issue that I'm having is that whenever I create a new profile for these two dimensions, there is never an option to Merge or Replace the dimension. I always have to "create new dimension" even though these dimensions exist within my shared library. This causes a problem because, I have to always perform a replace and it looks like be default, when creating a new dimension, it merges whatever values I have within the interface tables into the existing dimension.
    Thanks,
    Tammy Bian

    Hi Vinodh,
    Pls check if you have mapped the Alias table from Interface Area to Alias dimension in your import profile definition.  And then also check if association between Alias & entity is defined.
    Thanks,
    Darshana

  • MaxL - Import File from DB with &

    Hi,
    I have Essbase application with DB name contain "&". I'm running the next Command to import file:
    import database WD.P&L data from server text data_file 'WD_Exp.txt' using server rules_file 'WD_Rev' on error write to 'C:\errorFile.err';
    I get the following msg: " Syntax error near ['&']".
    How Can I import the File to specific location without changing DB name???
    Thanks in advance,

    Have you tried this:
    import database WD."P&L" data from server text data_file 'WD_Exp.txt' using server rules_file 'WD_Rev' on error write to 'C:\errorFile.err';
    Just my preference here with the double quotes and double slashes:
    import database WD."P&L" data from server text data_file "WD_Exp.txt" using server rules_file "WD_Rev" on error write to "C:\\errorFile.err" ;
    Regards,
    Cameron Lackpour

Maybe you are looking for