Maxl - .bat ERROR

This maxl script works perfectly when run within EAS maxl editor (minus the login and spool), when we run it via a .bat file the calculation will run but nothing else.
Any help please????? thanks!!!!!!!
Here's the maxl script:
login '*****' '******' on devhypeb01;
/*spool on to '\sacfs1\data\Apps\Hyperion\DEV\Logs\Clear_Build_Load.log';*/
/*Clear out Actual and Projection before loading new members and data*/
execute calculation 'DEV_Ace'.'AceRptg'.'clrAnP';
/*Load new members*/
import database Dev_Ace.AceRptg dimensions
connect as 'user1' identified by 'password' using server rules_file 'Both'
on error append to 'C:\memberload.err';
/*Load Data*/
import database 'Dev_Ace'.'AceRptg' data
connect as 'user1' identified by 'password' using server rules_file 'Both'
on error append to 'C:\dataload.err';
/*Load new member aliases*/
import database 'Dev_Ace'.'AceRptg' dimensions
connect as 'user1' identified by 'password' using server rules_file 'AliaBLD1'
on error append to 'C:\Aliasload.err';
spool off;
logout;
ERROR FILE:::::::::
MAXL> execute calculation 'DEV_Ace'.'AceRptg'.'clrAnP';
OK/INFO - 1012558 - Clearing all data blocks from [(ALL)] partition with fixed members [Scenario(Actual)].
OK/INFO - 1012675 - Commit Blocks Interval for the calculation is [3000].
OK/INFO - 1017018 - Removed [0] data blocks.
OK/INFO - 1012558 - Clearing all data blocks from [(ALL)] partition with fixed members [Scenario(Projection)].
OK/INFO - 1012675 - Commit Blocks Interval for the calculation is [3000].
OK/INFO - 1017018 - Removed [0] data blocks.
OK/INFO - 1012579 - Total Calc Elapsed Time for [clrAnP.csc] : [43.437] seconds.
OK/INFO - 1013274 - Calculation executed.
MAXL> import database 'Dev_Ace'.'AceRptg' dimensions
2> connect as 'user1' identified by 'password'     using server rules_file 'Both'
3> on error append to 'C:\Hyperion\products\Essbase\eas\client\memberload.err';
ERROR - 1242021 - (2) Syntax error near ['"'].
MAXL> import database 'Dev_Ace'.'AceRptg' data
2> connect as 'user1' identified by 'password'     using server rules_file 'Both'
3> on error append to 'C:\Hyperion\products\Essbase\eas\client\dataload.err';
ERROR - 1242021 - (2) Syntax error near ['"'].
MAXL> import database 'Dev_Ace'.'AceRptg' dimensions
2> connect as 'user1' identified by 'password'     using server rules_file 'AliaBLD1'
3> on error append to 'C:\Hyperion\products\Essbase\eas\client\Aliasload.err';
ERROR - 1242021 - (2) Syntax error near ['"'].
MAXL> logout;

MaxL quotes are a stinker and trip people up constantly. It wouldn't surprise me in the least if EAS' MaxL editor worked differently than "the real world".
I wrote a whole blog post on MaxL and quotes (who would have thought there was a subject there, but if you wade through the cutesy muck, there is value there):
http://camerons-blog-for-essbase-hackers.blogspot.com/2009/10/escaping-maxl-quotes.html
The two rules I follow are:
1) Use double quotes
2) Double escape backslashes
FWIW, you can also use single forward slashes.
The inconsistencies are confusing.
Regards,
Cameron Lackpour

Similar Messages

  • CSSimport.bat error: while migrating the Shared Services groups and users

    Hi,
    I am trying to migrate the shared services native users and group from 9.3.1(on server A) to 11.1.1.3(on server B)
    - I have taken the export in CSV format from 9.3.1 using CSSexport.bat.(export.csv) -Successful.
    - I have copied this on the 11.1.1.3 server and changed lil details like removing the admin user etc.
    - When I am trying the import this on 11.1.1.3, I am getting the below error:
    CSSimport importexport.properties2010-10-11 09:36:41,328 Attempting a import operation
    log4j:WARN No appenders could be found for logger (com.hyperion.css.common.CSSLogger).
    log4j:WARN Please initialize the log4j system properly.
    null
    Aborting program...
    - There are not log or error files geting generated - The only error recieved , is given above.
    - I have made the necessary changes to the impotexport.properties file on 11.1.1.3 before starting the CSSimport utility.
    Can you please let meknow what should I do to overcome this error.
    -thanks,
    Ankit

    First thing I would try would be on the 11.1.1.3, try and run an export, if it works then run the import on the same file, this way you will make sure you have the version 11 utility working.
    Once you have done that then you can move on to the 9.3.1 export file.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Maxl on error write to does not create error file

    The following MaxL statement functions except the creation of the dimbuild.err file. I have tried numerous combinations of syntax, server, folders without success.
    I am running this from the MaxL editor on the eas web server.
    import database XYAFIN.Finance dimensions
    from server text data_file "XYAFINPS_11P3.201102240507.txt"
    using server rules_file "DimNew"
    preserve all data on error write to "D:\\Hyperion\dimbuild.err";
    Results:
    Statement executed with warnings.
    Object [Finance] is locked by user
    Building Dimension elapsed time: [3.594] seconds
    There wer errors, look in D:\\Hyperion\dimbuild.err
    I appreciate your help!

    spool stderr on to "D:/Hyperion/StdErr.log";
    spool stdout on to "D:/Hyperion/StdOut.log";
    import database XYAFIN.Finance dimensions
    from server text data_file "XYAFINPS_11P3.201102240507.txt"
    using server rules_file "DimNew"
    preserve all data
    on error write to "D:/Hyperion/dimbuild.err";
    if D:\Hyperion\dimbuild.err already exists then change the last line to:
    error append to "D:/Hyperion/dimbuild.err";
    See how that works.
    Robb Salzmann

  • MaxL Command    :    ERROR - 1241101 - Unexpected Essbase error 1007083

    Hi,
    I have created outline here I have created one dimension i.e. Account
    and also created Rule file as per databse outline. It is valid
    successfully.
    Now I have to load dimension by using MaxL command.
    I have created Account.csv
    within that I have take :
    Account->xyz
    xyz->abc members.
    I am loading dimension by using following statement:
    import database PLAN.PLANDB dimensions from data_file 'D:\Practice\Account
    .csv' using rules_file 'C:\Oracle\Middleware\user_projects\epmsystem1\EssbaseSer
    ver\essbaseserver1\app\PLAN\PLANDB\plan.rul' on error append to 'C:\Oracle\Middl
    eware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\app\PLAN\Log\plan.log';
    So I getting following error:
    OK/INFO - 1053012 - Object [PLANDB] is locked by user [admin@Native Directory].
    OK/INFO - 1053012 - Object [52772261] is locked by user [admin@Native Directory
    ERROR - 1007083 - Dimension build failed. Error code [1090003]. Check the ser
    ver log file and the dimension build error file for possible additional info..
    OK/INFO - 1053013 - Object [52772261] unlocked by user [admin@Native Directory]
    ERROR - 1241101 - Unexpected Essbase error 1007083.
    OK/INFO - 1053013 - Object [PLANDB] unlocked by user [admin@Native Directory].
    and also in log file I getting message like:
    \\Column 1 Ignored; No DimBuild Dimension (3325)
    \\Column 3 - Invalid Dimension
    So could you tell me why I getting this types of error.
    what is the meaning of log file information i.e. "Invalid dimension."

    Hi,
    As per the error message, there was a mismatch of the dimension tagging or incorrect rules. Did you try to build the dimension/members using EAS Console?
    Take a simple sources file and rules file and re-build the dimension.
    You can try the following:
    1. Launch EAS Console and login using Administrative user credentials
    2. Connect to Essbase Server using administrative user credentials
    3. Create a test Application & Database say TestApp & TestDb
    4. Open the outline in the edit mode and create a dimension "Measures"
    5. Open the notepad and Create a source file as:
    Profit Margin Sales
    Profit Margin COGS
    Save the file in the c:\ drive as Sales.txt
    6. In EAS Console, right-click on database and select create Rules File and import the Source file
    7. Set the Field Properties.
    8. Build the dimension and check if the members are added to the Measures dimension
    9. Delete the members under Measures and then try the MaxL Script.
    Hope it helps....
    KosuruS

  • SDM password error and go.bat error.

    Hi SAP EP gurus..
          I installed SAP Netwevaer Enterprise portal(2004s) in my desktop PC. Its installed successfully. Then i started the server also, its also started successfully. Then i installed SAP Netweaver Developer studio in my PC..Its also installed successfully. Then whenever i tried to execute some small web dynpro application its gives error password or username is incorrect. I am using SAP Netweaver 2004s..This i downlaoded from www.sdn.sap.com.I logged in to portal http://sapep:50100/irj ..... It asked me to change the password. I chaged the password also, password is india123 now. This is passowrd i gave to SDM. Its not accepting. I tried to start the visual administrator<b>(go.bat).</b> I am getting an error message that.. <b>The system cannot find the path specified. Program terminated abnormally.Press any key to continue....</b>
    if i will press any key..nothing was happening.
    Please help me solve this problem ASAP..
    <u><b>Points will be rewarded, for helpful answers..without fail.</b></u>
    Advance Thanks and regards,
    Kumar

    Hi Kumar,
    Here one drawback is there in SAP EP.
    If you change password for Administrator in UME, this same password will not work for SDM by default. You have to change it, for that just follow below steps:
    SDM Password Reset
    ==================
    Just enter following lines in your COMMAND LINE:
    1. enter SDM directory as: cd C:\usr\sap\J2E\JC00\SDM\program
    2. Execute the following (just copy-paste)
    sdm jstartup "sdmhome=C:\usr\sap\J2E\JC00\SDM\program" "mode=standalone"
    3. Execute following line (replacing Password1 with your new password for SDM)
    sdm changepassword "sdmhome=C:\usr\sap/J2E/JC00/SDM/program" "newpassword=Password1"
    4. I suggest also revert SDM back to integrated mode
    sdm jstartup "sdmhome=C:\usr\sap\J2E\JC00\SDM\program" "mode=integrated"
    5. Start SDM using commnad as "StartServer.bat"
    Reward Points; if it is helpfull.
    Thanks,
    Nagaraju

  • Maxl "on error write to" doesn't work in scripts, kinda

    We have scripts that include the line:
    on error write to '\\\planfoundprod\Oracle\Errors\Error01.err';
    which work fine if there's an error.
    If there's no error and I'm running the code in EAS MaxL Script Editor it will generate a null (zero-byte) file but what I'd really like is to have a null file generated as part of a MaxL nightly batch processes. The underlying issue is I know the last time the MaxL unsuccessfully ran but I don't know if things are still running or not. Daily .err files would permit me to quickly determine that.
    Similar to what I'm hoping for are the outlineload.cmd scripts that /do/ generate the log file each and every time. I guess that's part of my thought process - while one is a log file while the other is an error file, error-free files are being generated in EAS so it seems this isn't just a pipe dream. TIA
    -Phil

    Many times it's best not to dwell on what essbase can't do, and put that energy towards what you can do to compensate for it.
    Obviously if you have it scripted, simply put a "touch" in the shell script to update a date/time stamp on a dummy file right after the dataload. (one example, for instance)
    Robert
    Edited by: RobertR3 on Dec 11, 2012 11:08 AM

  • Maxl command error

    Hi Experts,
    I am getting the syntax .error when am using the below command in the maxl script to execute Can you please guys help me in this.
    The environment is linux and the cube is ASO cube....
    execute caculation on database test.test with local script_file "\\essbase\\Oracle\\Middleware\\user_projects\\epmsystem2\\EssbaseServer\\Error_Log\\Script\\test\\copydata.txt"
    ERROR - 1242021 - (1) Syntax error near ['caculation'].
    Thanks in advance..
    Regards,
    Raja Mohamed
    Edited by: user4964072 on Oct 23, 2012 5:00 PM

    I think the slashes are fine. Confirm your path is OK if you haven't already. I'm no linux guru but do something like
    cat \essbase\Oracle\Middleware\user_projects\epmsystem2\EssbaseServer\Error_Log\Script\test\copydata.txt
    I notice when you first posted your script the last part of the path was "test copydata.txt" whereas your error states "test\copydata.txt". Don't know if it means anything.. just noticed

  • MaxL - "on error write to" not working

    I am running this script on Unix:
    set datafile=$FilesRoot/load/ActBalDataLoad$LoadMonth.txt;
    import database "'$EssApp'"."'$EssDb'" data
    from local data_file "'$datafile'"
    on error write to 'ActBalDataLoad.Err' ;
    I am getting this result:
    MAXL> import database "'MyApp'"."MyDb'" data
    2> from local data_file "'/home/fbarnes/My_Files/load/ActBalDataLoadAPR.txt'"
    3> on error write to 'ActBalDataLoad.Err' ;
    OK/INFO - 1003040 - Parallel dataload enabled: [1] block prepare threads, [1] block write threads..
    ERROR - 1003014 - Unknown Member [AC.xyz] in Data Load, [119] Records Completed.
    ERROR - 1241101 - Unexpected Essbase error 1003014.
    Any ideas why it is not creating the error file? I want to capture all errors in one run, rather than get the errors one at a time as it is doing now.
    Thank you.

    Hello,
    I am also having this issue.
    I will include my script below but will state some details before
    We are on Essbase 11.1.1.3
    I am running Admin Console from my client PC that connects to the server in the script and I read that in this set up the error file will not get written to. This documentation was for v 9.1.3
    Here is my script (i changed some of the names)
    login 'user' 'password' on server';
    create application 'Money1' as 'Money2';
    spool stderr on to 'errorfile';
    import database 'Money1'.'Main' data
    from local text data_file 'Money1_Data.txt'
    using server rules_file 'Data3';
    on error append to 'dataload.err';
    execute calculation 'CALC ALL;' on 'Money1'.'Main';
    logout;
    spool off;
    exit;
    here is the error output i get:
    code line: on error append to 'dataload.err';
    Statement executed with warnings.
    (3) Syntax error near ['$']
    I don't see a dollar sign anywhere in my code and the error file does not get produced.
    Also do error files get written too if the actins are executed in the background?
    Thanks!
    Alex
    Edited by: user13254074 on 5-Oct-2010 1:31 PM

  • MAxl script error

    MAXL> execute calculation ABC.ABC.uncorp;
    ERROR - 1051030 - Application ABC does not exist.
    MAXL> execute calculation '@RELATIVE ("UNKNOWN CORP CODE",0);' on ABC.ABC;
    ERROR - 1051030 - Application ABC does not exist.
    Can any one help me why I am getting this error? Actually applucation was existed in the server and I am able to see it in adminconsole also. But I am not finding the root cause when I ran it in Command prompt by enabling maxl mode i am getting this error.

    This error is because the Analytic Services cannot find the mentioned application directory.
    Possible solution are:-
    -> If the application was copied or deleted using file system controls (such as Windows Explorer or the cp or rm commands), create a dummy application with the original name and use Analytic Services copy or delete the application correctly.
    -> Make sure that the directory exists in the correct location.
    -> Make sure that you have the correct operating system privileges for the listed directory.
    -> See if another user has locked the directory.
    -> Make sure that the following environment variables are set correctly:
    ARBORPATH (PC and UNIX)
    PATH (PC and UNIX)
    LD_LIBRARY_PATH (UNIX only)
    Make sure that the security file is not corrupt.
    If you are using ESSCMD, make sure that the application directory specified in the ESSCMD command is correct.

  • Maxl syntax error

    Hi,
    I tried to export data form an ASO cube with below maxl syntax.
    SPOOL ON TO   '/.../DATA1.txt';
    WITH
    SET [Period1] AS '{[Period].LEVELS (0).MEMBERS}'
    SET [Version11] AS '{[Final]}'
    SET [Scenario1] AS '{[Actual]}'
    SET [CostCenters1] AS '{[CostCenters].LEVELS (0).MEMBERS}'
    SET [Account1] AS '{[Account].LEVELS (0).MEMBERS}'
    SELECT
    {[Year].[FY12],[Year].[FY13]} ON COLUMNS,
    {CROSSJOIN ({[Period1]},CROSSJOIN({[Version11]},CROSSJOIN({[Cost_Centers1]},{[Account1]})))))))) ON ROWS
    FROM
    [APPLICATION].[DATABASE]
    SPOOL OFF;
    but it showed an error with the line :
    {[Year].[FY12],[Year].[FY13]} ON COLUMNS,
    i don't understand why.
    BTW, the data in the cube got about 1,500,000 records, can i export it with the above syntax?

    You may get around the 2^32cell limitation by using NonEmptySubset.  See the documentation.
    Given an input set, NonEmptySubset returns a subset of that input set in which all tuples evaluate to nonempty. An optional value expression may be specified for the nonempty check.
    This function can help optimize queries that are based on a large set for which the set of nonempty combinations is known to be small. NonEmptySubset reduces the size of the set in the presense of a metric; for example, you might request the nonempty subset of descendants for specific Units.  NonEmptySubset is used to reduce the size of a set before a subsequent analytical retrieval.
    This function trims members from some of the dimensions by including only those member combinations that have data associated with them. Instead of processing all dimension combinations at once, it processes crossjoined set of only a subset of dimensions first, trims them to include only those tuples that have data,then combines it with other dimensions.
    DATAEXPORT is also an option.
    Of course you could always pull smaller sets.

  • R3Setup.bat Error " This platform not supported"

    Dear All,
    I am trying to install SAP R3 4.6C
    I have installed SQL2000 server and SP4 On windows 2003 (x64)server
    When I run the R3setup.bat , I receive a error message on the screen like
    "Thsis platform is not supported".
    1. I have not installed J2sdk. Is j2sdk required for SAP R3 4.6C.?
    please let me know how to fix this issue?.
    Or is it because hardware platform not supported ?/
    Thanks
    Elumalai

    Duplicate post
    Read and Follow forum rules
    Ans: follow standard installaiton guides will tell you pre-requisites and supported platforms

  • Libovdadapterconfig.bat Error : No argument is allowed: ûdataSourceJNDIName

    Dear Support,
    Getting the following error while runnning the script:
    script:
    libovdadapterconfig.bat -adapterName userGroupAdapter1 -adapterTemplate adapter_template_usergroup1.xml -host localhost -port 7001 -userName weblogic -domainPath
    D:\OracleBIEE11g\user_projects\domains\bifoundation_domain\ -dataStore DB -root cn=users,dc=oracle,dc=com -contextName default –dataSourceJNDIName jdbc/UserGroupDS
    Error:
    No argument is allowed: ûdataSourceJNDIName
    Execution:
    D:\OracleBIEE11g\oracle_common\bin>libovdadapterconfig.bat -adapterName userGrou
    pAdapter1 -adapterTemplate adapter_template_usergroup1.xml -host localhost -port
    7001 -userName weblogic -domainPath D:\OracleBIEE11g\user_projects\domains\bifo
    undation_domain\ -dataStore DB -root cn=users,dc=oracle,dc=com -contextName defa
    ult -dataSourceJNDIName jdbc/UserGroupDS
    No argument is allowed: ûdataSourceJNDIName
    -adapterName <value> : Name of the adapter
    -adapterTemplate <value> : Location of adapter template file
    -host <value> : Adminserver hostname for Weblogic
    Deployment manager hostname for Websphere
    -port <value> : Adminserver port for Weblogic
    Deployment manager bootstrap port for Websphere
    -userName <value> : Login username
    -domainPath <value> : Full path to domain directory
    Applicable only for Weblogic
    -cellPath <value> : Full path to deployment manager cell directory
    Applicable only for Websphere
    -dataStore <value> : Adapter type (OID, IPLANET, ACTIVE_DIRECTORY or DB)
    -root <value> : Root namespace of the adapter
    -contextName <value> : Context Name
    LDAP Adapter Specific arguments:
    -ldapHost <value> : LDAP Server hostname
    -ldapPort <value> : LDAP Server port
    -bindDN <value> : LDAP Server bindDN
    [-enableSSL] : Enable SSL
    -remoteBase <value> : Remote namespace of the adapter
    DB Adapter Specific arguments:
    -dataSourceJNDIName <value>: JNDI Name of the datasource
    OIM Adapter Template Specific arguments:
    [-createChangelogAdapter] : Create changelog adapter
    [-enableGlobalChangelog] : Enable global changelog plugin
    [-modifierDNFilter <value>]: Modifier DN Filter. Default is bindDN value
    Regards,
    DB

    Hi,
    Yes the env is set properly
    D:\OracleBIEE11g\oracle_common\bin>echo %ORACLE_HOME%
    D:\OracleBIEE11g\Oracle_BI1
    D:\OracleBIEE11g\oracle_common\bin>
    D:\OracleBIEE11g\oracle_common\bin>echo %WL_HOME%
    D:\OracleBIEE11g\wlserver_10.3
    D:\OracleBIEE11g\oracle_common\bin>
    D:\OracleBIEE11g\oracle_common\bin>echo %JAVA_HOME%
    D:\OracleBIEE11g\jdk160_24
    D:\OracleBIEE11g\oracle_common\bin>
    D:\OracleBIEE11g\oracle_common\bin>

  • Runcluvfy.bat error

    Hi,
    I am new to Oracle rac.I am planning to install oracle 10g clustware in a 2 node cluster.I have created and added the san and automounted it.when i tru to run CVU it gives an error that it is not checking the availability of the other node.It checks only the availability from the same node.When i ping with the public and private ip its worked what should i do.Plz help me.Thanks..

    Hi,
    Can you post the output from this command?
    1. runclufy.bat stage -pre crsinst -n node1,node22 -verbose
    2. runclufy.bat stage -post hwos -n node1,node22 -verbose
    Cheers
    FZheng

  • BAT ERROR

    HI ,
    I am trying to install BAT in my ccm server. I am having only one server in my setup. it is connected to other servers in another region via ICT.
    I am getting a error "BAT SHOULD BE INSTALLED ON A MACHINE WITH PUBLISHER DATABASE. ABORTING SETUP".
    But the ccm iam installing is publisher.
    i checked the registry entry under ""HKEY_LOCAL_MACHINE\SOFTWARE\ Cisco Systems, Inc.\DBL\DBConnection0"
    DBConnection0 entry has a server name other than the callmanger hostname.
    hostname of call magner is pdc2cm
    SERVERNAME ENTRY under dbconnection0 has PDCCCM
    Once we changed this to PDC2CM. We are not able to view anything int he callmanger web page. IT was throwing the error.
    We reverted back to the old setting. after that we are able to access the ccm webpage.
    I checked the configuration. It has cluster id as PDCCCM-CLUSTER.
    HOSTNAME AS PDC2CM.
    how to proceed to solve this isssue.
    KRishna.

    i am using ccm 4.1(3). BAT VERSION IS THE ONE THAT COMES ALONG WITH THE PLUGIN OF CCM 4.1(3). Since i have not insatalled BAT in the server i am not sure about the BAT version.
    Krishna.

  • MAXL excution error

    Hi All,
    I am using essbase version 11.1.2.3 and trying to execute MAXL script.
    For example
    LOGIN “admin” “password” ON localhost;
    alter system unload application test2;
    LOGOUT;
    Showing execution error "alter system unload application test2;, execution of the statement fails."
    Please help me
    Thank You
    EB

    Can you show the full error as here is example of the unload working.
    Cheers
    John

Maybe you are looking for