MaxL error tracking

Hi, could you advise me if there is a way to execute a oracle package from a Maxl.
We have a oracle procedure mxl_status(process_name, status, error_message). our theme is to embed this procedure in the batch/maxl script so that if the Essbase dimension build/data load process fails, the essbase error code with description will be stored in the table used by the procedure. Any way to capture the error message only to variables and pass this to the oracle procedures is appreciated.
Thanks
Subbu

RS,
When I say, you cannot capture error message in MAXL, it does not mean that you have no means of doing it. You can prestore the error codes and messages in a 2 column table and refer it while running the stored procedure.. Check for Message.txt file in $ARBORPATH/api/include, if you installed API with Essbase..The error code that MaxL returns is going to get reset by the next process. So you're probably going to need an iferror statement to branch to exit to trap the error code externally.
Also, there are different kinds of errors as far as OS trapping is concerned. A bad password on login will throw a 1051293 (which is the actual Essbase error code) to %ERRORLEVEL%, but bad data in a data load that results in rejected records -- not an error, and a 0 to %ERRORLEVEL%.
Personally, I would trap the existence of STDERR. That will capture all errors -- the big ones that show up in %ERRORLEVEL% and the minor but still important ones like data got rejected. You will get both the error code and the description from that.
Here's an example of myprocess.err:
ERROR - 103 - Unexpected Essbase error 1051293.
ERROR - 1051293 - Login fails due to invalid login credentials.
To your point -- execute the MaxL script in DOS/Bourne/Korn/VBScript/whatever, check for the existance of the error file and it's contents, have another non-MaxL process pick it up and write its contents to a table. And then of course do whatever you want based on the error.
I always enjoy this stuff -- I don't know why. Maybe because it's because I think once, do it, and never worry about it again.
Regards,
Cameron Lackpour
P.S. As I'm on the ODI bandwagon -- you could do all of the above in an ODI package and it would likely (once you got over the ODI learning curve) be far faster than coding it in a scripting language.

Similar Messages

  • MaxL error tracking II

    I have a simpler question about tracking errors from a Maxl script. I run a Unix script that calls Maxl to back up the Essbase applications. I just want to trap the return code and send a email if there were any errors from the Maxl script. I'm using the follow code to trap any errors from the Unix commands. This is working for the Unix commands but does not reccognize errors from the Maxl script. Is there a way I can set the return code in the maxl script to non zero when an error occurs. Currently the return code is zero after returning from Maxl when an error occurs.
    error_message()
    mailx -s "Essbase backup error" email@... < /opt/BackupError.txt
    trap 'error_message' ERR
    set -e
    cd /opt/hyperion/HYP_BACKUP/scripts
    /opt/hyperion/AnalyticServices/bin/essmsh < /opt/staff/MaxlScript.msh > /opt/staff/Maxl.log 2>$1
    exit
    Thanks,
    Tom

    I'm no *nix jockey, so you're going to hear this from a Windows perspective.
    In Windows, %ERRORLEVEL% will return the error code, sometimes. See my comments in this thread: MaxL error tracking
    A more robust approach would be spool errors to STDERR, and then test to see if that file exists, and if so, what's inside.
    ^^^Probably not what you wanted to hear.
    Regards,
    Cameron Lackpour
    Edited by: CL on Oct 1, 2009 2:10 PM
    Just an add on that writing a routine that interrogated the file shouldn't really be that big of a deal. Once you code your own way on this you can pass whatever value you want on to the calling code.

  • MaxL error 1241114 - There were errors, look in...

    I am running the following MaxL in a batch script on one of our Essbase cubes, which passes the MaxL to ESSMSH.
    MaxL:
    login admin identified by ******* on *******;
    iferror "errorhandler";
    spool stdout on to "\\*******\\*******\\Logs\\*******BefLoad.log";
    iferror "errorhandler";
    spool stderr on to "\\*******\\*******\\Logs\\*******BefLoad.err";
    iferror "errorhandler";
    set timestamp on;
    execute calculation "'FIX(\"*******\",@ICHILDREN(\"*******\")) CLEARDATA \"*******\"; ENDFIX'" on *******.*******;
    iferror "errorhandler";
    import database *******.******* dimensions from data_file "\\\\*******\\FDMDATA\\*******\\Outbox\\*******.Dat" using server rules_file "L_Data" preserve input data on error append to "\\\\*******\\*******\\Logs\\*******BefLoad.err";
    iferror "errorhandler";
    logout;
    exit 0;
    define label "errorhandler";
    exit 10;
    However, every time the MaxL executes, I have the following single line generated in the "\\*******\*******\Logs\*******BefLoad.err" file:
    WARNING - 1241114 - There were errors, look in \\*******\*******\Logs\*******BefLoad.err.
    This error is actually pointing to itself (the .err file), however this is the only line with no further information, and is generated every time the batch script is run, even though the build appears to have worked fine. I have double-checked and there are no errors (or even warnings) in the Essbase application log to suggest anything has gone wrong!
    Does anyone please have a suggestion as to why it is being generated? Can we just ignore this error? I have read the following, which points out that data load errors will not be trapped by the MaxL "iferror" statement. However, it would be useful to know why this error is occurring and specifically what is going wrong.
    MaxL Error Codes

    Hi James -
    Your dataload errors are getting spooled to the same file as Essbase is trying to spool the message saying that there were dataload errors. I wouldn't count on that working the way you expect it to, and it's not an approach I have ever used - I'd think keeping the stderr spool separate (i.e. separate files) from the dataload errors makes sense.
    My bet is that if you point the two error streams to different files you'll see that there are in fact load errors, they're just getting messed up by the fact that stderr and dataload errors are pointing at the same file.
    BTW, I appreciate that you're anonymizing for client confidentiality (amazing how many folks post info that obviously identifies their company and give out server / user names...), but any chance you could use e.g. 'appname', 'dbname' etc rather than *******? Asterisks make my eyes hurt, but more importantly they make the different tokens impossible to distinguish. Cheers!

  • MAXL error handling

    Can someone show me an example of MAXL error handling, especially in cases of copying or creating an app/db and it already exists?Thanks,Alex

    Hi,Can someone explain what advantages enterprise has over reports?

  • Hardware error - Tracking servo failure - what does it mean?

    Thanks in advance. I was trying to burn a disc, and started having trouble with burning this movie (have done several before, including earlier versions of this movie). After wierd things happening twice - the first disc would burn, then the second one might be o.k. but iDVD ejected it before it said it was done. Then, the third time I got this error:
    The recording device reported the hardware error: Tracking servo failure. (0x09, 0x01.)
    Any idea what this means and what I should do?
    (I'm posting this on both the hardware and software locations since I'm not really sure which it is.)

    Hi,
    Thanks for the comments! The CD/DVD lens cleaner appears to have taken care of the problem! I was able to successfully do a backup of my hard drive with Toast (wouldn't work before, see below) and burn two copies of a movie using iDVD. (I put more details of the errors below in case that's helpful for someone else down the line.
    I am trying to do the Apple Hardware Test, as you suggested, but need to double check a couple of things. When the article you put a link to mentions the "Apple Hardware Test CD" and the "system CD" are both references to the "Software Install and Restore" CDs? (Those are the only relevant-sounding ones I received, no "Hardware Test CD".) If I put those in, can I run the relevant tests without reinstalling the software (and presumably deleting the other files on my hard drive)?
    I did do the steps suggested by PT up through the reboot, except for sort of doing Preferential Treatment out of order because it took me a bit to realize that if I made the window bigger it would show what to try (the error message was truncated and not viewable). Then, rather than trying iDVD again, I tried to use Toast to back up the computer to avoid having to pay for that in case what the Apple repair folks do would necessitate an overdue (and if done by them costly) backup. Toast crashed with remarkable similar messages:
    The drive reported an error: Sense Key = ILLEGAL REQUEST Sense Code = 0x30, 0x05 CANNOT WRITE MEDIUM – INCOMPATIBLE FORMAT
    The drive reported an error: Sense Key = HARDWARE ERROR Sense Code = 0x44 INTERNAL TARGET FAILURE
    The disk failed to be written.
    Well, at least we have (so far) avoided the PBJ, in spite of having two wonderful children a year minus a week apart. (I'm afraid we did the adoption agency we used a disservice - we gave them our old non-Apple PC.)
    Thanks so much.

  • Dealing with Error Tracking

    Hi.....
    I want to implement Error Tracking in my project for knowing that from where the error came , from which function, what the parameter names,parameter types,the return type of the function and which function called this function and the details about this function, repeating the same procedure. And storing all the details in a stack the stack capability is 10 so if the 11th called function details came we have to delete the 1st function details like that and displaying this error message in the browser if any error came .plz help me to implement error tracking.

    It is like another project man.
    but i don't want to discourage you. Just have a look at "JUnit TestCase runner" or apache's "Cacus1.8.0".
    They might be useful for you.
    Diablo

  • Error tracking tool

    Hi in form 10g there is various error tracking features like watch,breakpoint.However no such features in available in form6i.To track error or see the flow one had to diplay alert.Is there any features or other utility tool which helps in tracking the error?

    Forms 6i also support form debugging, open a form source file in form builder 6i press ctrl+shift+R to run the form in debug mode.

  • File adapter -error tracking

    Hi,
    Scenario:File to Proxy
    My requirement:
    I need to poll the file from the legacy system at 7 P.M.
    1) If file is not present then I need to poll till 7.30 P.M and after that also if file is still not present then I need to rasie an alert also update the R3 table with the same.
    2) If the legasy sytem is down or network problem then I need to rasie an alert to user saying Legacy system down also I neeed to update the table in R3 with the same error.
    My question is:
    Can I track this type of errors and raise it to users and also maintained it in R3?
    Can I use the unix shell script to check the avability of file but how the error handling part can be taken care?
    Is is possible to raise System down or network related erros or file not available through custome adapter module?
    Can I track system down or network problem error through communication channel monitoring by creating alert rule. As I am aware if file server is not reachable then we get the error in communciation channel monitoring.
    Please share your experience.
    Chirag

    Hi Chirag,
    1) If file is not present then I need to poll till 7.30 P.M and after that also if file is still not present then I need to rasie an alert also update the R3 table with the same. - for this req, i think you need BPM, to start BPM you can have a receive step for a dummy source file for a dummy sender file adpater which will be scheduled to start at 7 PM.........then in bpm have a recieve step to get the actual file and specify a dead-line for 30 minutes............if file is got proceed further, otherwise in deadline branch have a synchronous send step to R/3 to update the data in r/3 table.............
    2) If the legasy sytem is down or network problem then I need to rasie an alert to user saying Legacy system down also I neeed to update the table in R3 with the same error. - if your comm channel is erroring, then in RWB in alert configuration you can have no restiction option for your interface and then you can generate an alert for it in the alert inbox...........but i think to update this thing in r/3 table will not be feasible.
    Regards,
    Rajeev Gupta

  • Maxl - Error while building dimension

    Hi,
    I am using below syntax in Maxl for building dimension. I am getting error. Could someone help me with this. I am pulling the load rule using SQL
    import database 'Application Name'.'Database Name' dimensions connect as 'User Name' identified by 'password' using rules_file 'Buildfilename' on error write to 'D:\Error.txt';
    Thanks

    Try this
    import database 'Application Name'.'Database Name' dimensions connect as 'User Name' identified by 'password' using SERVER rules_file 'Buildfilename' on error write to 'D:\Error.txt';

  • Maxl Error

    I am trying to load data from RDBMS using maxl script. I am using this script
    import database Rollout.Rollout data
    connect as Suman identified by kolkata@1
    using server rules_file 'Rul_DB.rul'
    on error write to 'C:\Hyperion\AnalyticServices\app\Rollout\Rollout\ErrorLog_RDBMS.txt';
    I am getting this error:
    syntax error near ['@']
    In password i have the '@' symbol. I am getting no other error. Please help me to fix this issue.
    Regards,
    Suman

    I'd try ruling out the password first then. Have you tried putting it in quotes? Another thing you could try is changing the password temporarily if that is possible.

  • MAXL error logging

    Hi Guys,
    I have a script to import a number of dimensions, this was previously done with an Esscmd script but is now in a MAXL script. Is it possible to write to an error log for each dimensionn I dont seem to be able to get the syntax correct;
    import database Appname.DBname dimensions
    connect as 'user' identified by 'password' using server rules_file 'Products' preserve all data on error append to '\\\server\\share\Products.err',
    connect as 'user' identified by 'password' using server rules_file 'Customer' preserve all data on error append to '\\\server\\share\product.err',
    and so on, this will error at the first comma at the end of line 3, if I replace the comma with semi colon the first statement is executed ok but not the second.
    All help appreciated
    Ed

    What happened is that you used the error file after each transaction, you should add the error file after your last transaction or build. Or if you want to have separate error files you have to have separate statements for each dimension build that starts with 'importdatabase Appname.DBname dimensions'.
    here's a sample of a single statement:
    import database sample.basic dimensions
    from server text data_file 'genref' using server rules_file 'genref' suppress verification,
    from server text data_file 'level' using server rules_file 'level' suppress verification,
    from server text data_file 'time' using server rules_file 'time'
    preserve input data on error append to 'C:\Hyperion\EAS\eas\client\dataload.err';

  • MaxL Error Codes

    Hi,
    We have many MaxL scripts to load, calculate, export databases etc.... The client wants more precise error messages in the emails the scripts send out to help them decipher what the problem may be in case of a WARNING or ERROR. Is there a list of all possible error codes MaxL would create in the .log? Here's an example of one that is created by changing a member name in source file to make it fail.
    WARNING - 1241114 - There were errors, look in C:\Automation\Dev\Logs\Revenue\revload.err.
    I'm trying to avoid having to think of every possible type of failure and making it fail on purpose to capture these errors. Was hoping there is a list of all that I could reference?

    There are two kinds of errors in MaxL -- command errors and errors that Essbase passes back.
    The Essbase data load error you've identified is of the latter type and is not going to get trapped by MaxL's iferror. Unfortunately.
    For errors that MaxL can trap (I bet you know the below, but there is something new in 11.1.2.x that's worth reviewing) there are now unique error codes which, I suppose, is what you don't want to do, but it's still an interesting function.
    Check out this for a general overview of branching on error:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/maxl_commands_errs.html
    And of course there's the new Exit function that allows you to pass an error code:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_commands_exit.html
    ^^^That's pretty cool and I need to write up a blog post on it, to teach myself to use it if nothing else.
    Regards,
    Cameron Lackpour

  • MAXL Errors in a Working Script

    Hi All,Making the transistion to MAXL from ESSCMD under Essbase 6.2. I have a script that successfully builds two of my dimensions using the SQL interface from Oracle. What's strange is, even though the script works, mid-way through MAXL log file, the following error appears:9 - Essbase error encountered: [BuildDimFile:'test'] [1030001].Then at the end of the file, it states:51 - MaxL execution failed.Anyone have any idea why MAXL is reporting failure, when the script is actually working?

    Is that this error?:##1003001 Duplicate Members From Same Dimension On Data Record, [%s] Records CompletedIf so, could it be that this error is not fatal and that maxl just doesn't know the difference between a fatal and non-fatal error?-z

  • MAXL ERROR - 1013145 - Invalid agent login id

    All,
    We are trying to automate the process of data load and Calculations using Maxl. Unfortunately we see the below mentioned error while performing the calculation in MAXL.
    MaxL command:
    execute calculation app.dbname.test;
    ERROR - 1013145 - Invalid agent login id
    But while executing the same command in Maxl editor, it works fine.
    Regards,
    Nainitha.

    Are you doing a stop and/or start app command(or disconnect users) anywhere near while executing the mentioned calc scripts/data loads? I have seen on some occasions that these errors also come up due to stale ESSSVR processes in the background (rare, although possible)
    As an example, you might be logged in as admin ID but however, if anywhere there might be a MAXL command and or activity that is causing the app to disconnect users/sessions (idle of course) before running the calcs. This error might be the result of that?
    All this is assuming that the security set up for the admin ID is correct, right?
    Also, since you mentioned that this error is coming only on Data exports/calc scripts. I am assuming this error comes up only when Essbase is trying to output a file to the drive/path. Does the OS environment login/ID credentials have that authority?
    From whatever i could deduce of this, this might be happening because of either one of two reasons :
    1.) Security is not setup correctly for that operation to complete (export to that path might not be authorized?)
    2.) The user ID is being logged off/disconnected before that operation kicks off.
    Thanks and regards,
    Harsh Warikoo

  • MaxL error translation

    I'm trying to get MaxL to skip certain parts of a script on error like ESSCMD used to do without splitting up the scripts into multiple separate parts. I've heard that the PERL module can take care of errors, but I can't find a way to use perl to handle errors without splitting up the scripts. Anyone have experience doing this? Thanks in advance!

    Hi,Can someone explain what advantages enterprise has over reports?

Maybe you are looking for

  • Not able to print a layout anymore

    Hello! I have multiple pages in a PDF format that I always print out in a layout format; four PDF pages on one sheet. I used to be able to do that before I upgraded to Leopard. When I open the PDF file via Preview and select print, layout, then four

  • Printer doesn't recognize ink

    Just replaced yellow ink in Photosmart 5180 -- I'm sure its the right thing, its brand new and I shook it and some ink came out-- but printer insists there is no yellow ink. Ideas?

  • Name of the PO date comarison report

    dear experts, can anyone tell me the name of the standard report name for 'PO DATE COMPARISON REPORT'... thanks in advance.

  • 1163R... What is the best way to use the 1163R.

    I need to record voltage on the SCXI 1121 as soon as the 1163R is switched. What is the best way to do this.

  • SSL Environment variables logged in ssl_request_log as "-"

    Anyone got any ideas why my SSL_CLIENT_S_DN_O is shown in the ssl_request_log as "-" on 1 server hosting an intergrated OHS and Oc4j (10.1.3) installation where as on another server hosting OHS (9.0.4) this variable is populated? Any ideas or help wo