Event Scripts

Hi,
I did a import of data in FDM from a Excel file & it errored out. I know my export is tied to few event scripts. How exactly can i find out that for a particular import what all event scripts are getting triggered in FDM?
Tx for your help

Hi,
Thanks for your reply. I looked at the Firing order in the FDM API documentation & it looks great.. However my question was that if we do any import by default all the events scripts are executed based on the firing event, am i right ? Moreover, is there a log file some where on the FDM server that can tell me what all script got fired. Last day I ran a import & the error i got was :
Error in line 410
It did not tell which event script was culprit & after going through all the scripts I was able to figure out which script was wrong. The whole excerise took me almost an hour just to figure out which script it was referring to. Not sure if there is a log file that can tell me that.
Tx

Similar Messages

  • How to get uploaded file name and path in BefExportToDat event script

    I would like to get hold of the uploaded file name and full path in the event script "BefExportToDat", as I need to extract values from particular fields. However I have not yet found a way to do this.
    - The input variable "strFile" returns the .Dat file path in the Outbox, to which it is about to export the data. This is no use to me.
    - The API variable RES.PstrFilename is returning nothing
    I am using RES.PstrFilename in the "BefFileImport" event script in a different FDM application and it works fine, however I need to find a way to get this to work in the "BefExportToDat" event script.
    Please let me know how this might be achieved.

    I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
    Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
    Error:
    Error: Export failed.
    Detail: File not found.
    This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this?

  • Error trying to display a report file in FDM event script

    Hi
    I am trying to display a file (report) during an event script and receive an error "Object reference not set to an instance of an object" . The process works in version 9.3 but is generating this error during our upgrade testing on 11.1.2.2 (different hardware)
    The file (check report) is getting written correctly the \OutBox\Log directory. The file contains a standard Check Report with a file extension .pdf ( lngFileType = 31)
    We have no issues creating the file
    We try to display the file on the screen for the user using the following code which fails with the "Object reference not set to an instance of an object" error and also a message "Could not load XML file:" with the file name and path
    'Open report file in web client
    RES.PlngActionType = 4
    RES.PstrActionValue = strFileName
    Symptoms:
    We can open the same file as text with RES.PlngActionType = 1
    Everyone has rights to open/read a file in the directory
    File can be opened manually and appears correct
    Any help would be appreciated. I have not found similar issues on the forum. Support has offered no suggestions to date

    Hi and thanks for your response.
    Yes, we have tried all the various type of files ( ScriptActionTypes). The Type = 1 will open the file, but as a text stream without formatting, etc. If we try type = 3 we receive a different error message:
    Error: Invalid Report ID: 0
    Detail: Stacktrace:
    upsAppServerDM._clsAppServerDM.fPublishReport(lngReportID[Int32], lngPubFileType[Int32], strReportSQL[String], strSubReportSQL[String])
    Hyperion.FDM.Pages.ViewReportActionEvent.ExecuteReport(reportID[Int32], sqlStatement[String])
    Hyperion.FDM.Pages.ViewReportActionEvent.PreviewReport()
    Also, the Validation Report is enabled (we are using check with warnings - ID133), I have tried changing the default Web Settings from .PDF to .html and back again and tried the various other default options available under Web Settings.
    If we create a simple test text file, we can open the file as text (Type = 1)
    Here is the complete error message employing Type = 4 (XML)
    Error: Object reference not set to an instance of an object.
    Detail: Stacktrace:
    Hyperion.FDM.Pages.IntersectionSummaryCheck.FillTitleRow()
    Hyperion.FDM.Pages.IntersectionSummaryCheck.Page_Load(sender[Object], e[EventArgs])
    System.Web.UI.Control.OnLoad(e[EventArgs])
    Hyperion.FDM.Pages.BasePage.OnLoad(e[EventArgs])

  • Problems with close event scripts and closing Photoshop

    Hi!
    We are having problems with close event scripts ("Cls ") when closing/quitting Photoshop.
    The close event scripts are working without problem when closing an image. But when quitting Photoshop without having closed all images we are observing the following behaviour:
    with CS2 the close event scripts are not triggered at all
    with CS4  the close event scripts are triggered and executed correctly. But after that the Photshop process freezes. No visible GUI, you have to kill the process with the task manager.
    I can reproduce this behaviour even with a small script consisting of a single alert('hello') and even an empty script. Is this an known bug or am I doing something wrong?
    Thanks for your help!
      Eric

    Check your energy saver settings under system preferences. That is where you set sleep setting.

  • Making event scripts generic between environments

    At present we have a couple of FDM event scripts which construct some MaxL statements and then execute them against the Essbase database (to clear data before loading). The problem we have is that the MaxL scripts require hard-coded usernames, passwords and servernames (to log in to ESSMSH). When migrating the scripts between environments, these scripts will have to be manually updated each time for the given environment to which they are being migrated.
    Is there a more elegant solution to this? One idea would be to have the values stored in a single plain text file (in a password-protected share) which would then be accessible by any of the various scripts in a given environment. But I would be interested to learn if there are alternatives to this.

    If you migrate environments, you are going to have to do some configuration pretty much anyway you go about it. The question is what is the easiest/most straight foward so that it doesn't get missed during a migration, IMHO.
    I would go with a well defined/documented "Global" config file that contains all of the information that may change. At a minimum, Usernames and passwords should be obfuscated/encrypted; however, it would be just as easy to do the whole file. Realize, that the decryption routines would be in your script code so this isn't 100% secure; however, it would prevent the casual user from quickly seeing usernames / passwords, etc. Furthermore, if you encrypted the whole file, they may not even realize there is a username/password in the file, etc.
    In my mind this is the way to go...
    Some other thoughts though, depending on what exactly you want to do....
    Option 2
    Username / Password / Server could be some variation on the server name so that the script always knows how to generate them. The negative side is that you would always need to create a new user / password anytime server changes, so you are still not escaping manual labor. (Though maybe you could use an API call to create it, but then you probably need a username/password to create the user... AAaaaahhhhhhhhh)
    While neat, this seems like it would suffer from James Bond syndrome. I'm going to kill you now Mr. Bond, but first I'm going to tell you all my intricate plans for world domination, put you in some ridiculous trap with an semi-obvious flaw, AND leave so that you have time to work on your escape......
    Option 3
    Make a Web Service and then have your scripts make a Web Call (i.e. http://www.mycompany.com/GetConfigInfo.asp?secretcode=12341234123) which would return all the info you need. (username, password, servers, etc). AS LONG AS the webservice machine doesn't move around, this might be a decent way of doing it. Anyone sniffing around the local machines would find the config info; however, anyone looking at the scripts would see the call and could just open it in a web browser. You could of course secure that by looking at the source of the request and if it's not an approved server, not return the requested info; however, now you are getting into more maintenance work........
    The time spent making this and potentially maintaining it probably isn't worth it.

  • Photoshop sometimes freezes after on close ('Cls ') event script

    Hi!
    We are working on integrating Photoshop with a content management system. For this we are using a synchronisation file. The cms writes the filepath of pictures to be edited to the sync file. Photoshop writes a modified flag to the sync file and/or a closed flag after work is done. This is implemented by an on save ('save') and an on close ('Cls ') event script.
    The scripts are doing fine and the whole system is working. Now our problem: Sometimes (every 50 or 100 pictures) Photshop hangs up after closing a picture.
    As far as we can conclude from the sync file and log file the close event script did complete its work without problem in such a case. But after that Photoshop freezes with doing 50% CPU load.
    Has anyone an idea what we could be doing wrong? May it have to do with the file access of our scripts (sync file and log file)? Is there any common mistake with scripting that results in the described behaviour? Is this even a problem of our scripts?
    For everyone interested I attached the scripts copied together to a single text file.
    Thanks for your help,
      Eric

    Beolw the complete source code. Attached file in my first posting seems not to be working ("QUEUED"?).
    // The only script to be called by MRS when starting to edit a photo
    // in Photoshop. The image file itself is not to be passed as
    // parameter, it is just written to the sync file.
    // (see concept document.)
    * @@@BUILDINFO@@@ MRS_start.jsx 1.0.0.1
    #target photoshop
    //@include "MRS_settings.jsx"
    //@include "MRS_eventsinit.jsx"
    //@include "MRS_open.jsx"
    //@include "MRS_logging.jsx"
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = false;
    try {
        // Install the event scripts in Photoshop
        InitializeEvents();
        // Load the selected image files
        CheckOpenFiles();
    catch( e ) {
        // always wrap your script with try/catch blocks so you don't stop production
        // remove comments below to see error for debugging
        Log(e);
        alert("Fehler in der MRS Anbindung: " + e);
    =======================================================================================================
    //  Install all event scripts required by the MRS Photoshop integration
    * @@@BUILDINFO@@@ MRS_eventsinit.jsx 1.0.0.1
    //@include "MRS_settings.jsx"
    // Install all event scripts required by the MRS Photoshop integration
    function InitializeEvents(){
        //Check the script files.
        var onSave = new File(MRS_SCRIPTONSAVE);
        if (! onSave.exists) {
            Log("Script file not found: " + MRS_SCRIPTONSAVE);
            alert("MRS Anbindung fehlerhaft!");       
            return false;
        var onClose = new File(MRS_SCRIPTONCLOSE);
        if (! onClose.exists) {
            Log("Script file not found: " + MRS_SCRIPTONCLOSE);
            alert("MRS Anbindung fehlerhaft!");       
            return false;
        app.notifiersEnabled = true;
        //Install the script.
        installNotifier (onSave, "save");
        installNotifier (onClose, "Cls ");
        return true;
    // Install an event script
    function installNotifier(scriptFile, eventId) {
        if(findNotifier(scriptFile, eventId) != null) {
            Log("Script already installed: " + scriptFile.fullName);
        } else {
            app.notifiers.add(eventId, scriptFile);
            Log("New script file installed: " + scriptFile.fullName);
    // Checks if an event script is already installed
    function findNotifier(scriptFile, eventId) {
        for(i=0; i<app.notifiers.length; i++) {
            var installedNotifier = app.notifiers[i];
            if (installedNotifier.eventFile.fullName.toLowerCase() == scriptFile.fullName.toLowerCase()
                && installedNotifier.event.toLowerCase() == eventId.toLowerCase()) {
                    return installedNotifier;
        return null;
    =======================================================================================================
    //@include "MRS_settings.jsx"
    * @@@BUILDINFO@@@ MRS_logging.jsx 1.0.0.1
    // Class Logger
    function Log(text) {
        var logfile = new File (MRS_LOGFILE);
        logfile.open('a');   
        try {
            var now = new Date();
            logfile.writeln(now.toLocaleString() + " | " + text);
        } finally {
            logfile.close();   
    =======================================================================================================
    * @@@BUILDINFO@@@ MRS_settings.jsx 1.0.0.1
    MRS_PICTUREPATH = '/D/Projekte/npi/project/dpa.MRS.WinUI/bin/Debug/Photoshop/pictures/';
    MRS_SCRIPTPATH = '/D/Projekte/npi/project/dpa.MRS.WinUI/bin/Debug/Photoshop/ps-script/';
    MRS_SYNCFILE ='/D/Projekte/npi/project/dpa.MRS.WinUI/bin/Debug/Photoshop/PSIntergation.txt/';
    MRS_SCRIPTONSAVE = MRS_SCRIPTPATH + 'MRS_onsave.jsx';
    MRS_SCRIPTONCLOSE = MRS_SCRIPTPATH + 'MRS_onclose.jsx';
    MRS_LOGFILE = MRS_PICTUREPATH + 'PSIntegration.log';
    =======================================================================================================
    // Event script for "save" in Photoshop.
    // Marks the saved file in the sync file as "M" (modified)
    * @@@BUILDINFO@@@ MRS_onsave.jsx 1.0.0.1
    var begDesc = "$$$/JavaScripts/MRS_onsave/Description=Benachrichtigt MRS wenn das Bild gespeichert wurde." // endDesc
    var begName = "$$$/JavaScripts/MRS_onsave/MenuName=MRS OnSave" // endName
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = false;
    //@include "MRS_settings.jsx"
    //@include "MRS_syncfile.jsx"
    //@include "MRS_logging.jsx"
    Log("OnSave triggered.");
    try {
        var savedFile = GetDataFromDocument (app.activeDocument);
        var pssyncer = new PSSyncer();
        var photo = pssyncer.GetFileInfo(savedFile.fileName);
        if (photo != null) {
            photo.SetModified();
            pssyncer.Flush();
    }  catch( e ) {
        Log(e);
        alert("Fehler in der MRS Anbindung: " + e);
    // Extracts the file name from Photoshop Document class.
    function GetDataFromDocument( inDocument ) {
        var data = new Object();
        var fullPathStr = inDocument.fullName.toString();
        var lastDot = fullPathStr.lastIndexOf( "." );
        var lastSlash = fullPathStr.lastIndexOf( "/" );
        data.extension = fullPathStr.substr( lastDot + 1, fullPathStr.length );
        data.folder = fullPathStr.substr( 0, lastSlash );
        data.fileName = fullPathStr.substr( lastSlash+1, fullPathStr.length );
        return data;
    =======================================================================================================
    // Event script for "close" in Photoshop.
    // Marks the saved file in the sync file as "M" (modified)
    * @@@BUILDINFO@@@ MRS_onclose.jsx 1.0.0.1
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = false;
    //@include "MRS_settings.jsx"
    //@include "MRS_syncfile.jsx"
    //@include "MRS_logging.jsx"
    //@include "MRS_tools.jsx"
    Log("OnClose triggered.");
    try {
        var saved = SavedWhileClosing(arguments);
        var pssyncer = new PSSyncer();   
        for(var i=0; i<pssyncer.GetFileInfoList().length; i++) {
            var photo = pssyncer.GetFileInfoList()[i];
            if(photo.WorkInProgress() && !IsDocumentOpened(photo.GetFileName())) {
                if (saved) {
                    photo.SetModified();
                photo.SetClosed();
        pssyncer.Flush();
    }  catch( e ) {
        Log(e);
        alert("Fehler in der MRS Anbindung: " + e);
    // Checks if picture has been saved while closing it. (yes/no dialog on close)
    function SavedWhileClosing(myArguments) {
        var usingKeyCopy = false;
        var actionDescripto = null;
        var actionDescriptor = myArguments[0];
        if ( actionDescriptor != null && "ActionDescriptor" == actionDescriptor.typename ) {
            if (actionDescriptor.hasKey(stringIDToTypeID("saving"))) {
                return actionDescriptor.getEnumerationValue(stringIDToTypeID("saving")) == stringIDToTypeID("yes");
        return false;
        var actionDescriptor = myArguments[0];
        var s = "";
        if ( actionDescriptor != null ) {
            if ( "ActionDescriptor" == actionDescriptor.typename ) {
                alert(actionDescriptor.count);
                for(i=0; i<actionDescriptor.count; i++) {
                    s += actionDescriptor.getKey(i) + " | ";
                    s += typeIDToStringID(actionDescriptor.getKey(i)) + " | ";
                    s += actionDescriptor.getType(actionDescriptor.getKey(i))+ "\r\n";
        alert(s);
        //alert("1: " + actionDescriptor.getObjectValue(stringIDToTypeID("as")));
        //alert("2: " + actionDescriptor.getObjectValue(stringIDToTypeID("in")));
        //alert("3: " + actionDescriptor.getEnumerationType(stringIDToTypeID("saving")));
        alert("3-a: " + typeIDToStringID(actionDescriptor.getEnumerationType(stringIDToTypeID("saving"))));
        alert("3-b: " + typeIDToStringID(actionDescriptor.getEnumerationValue(stringIDToTypeID("saving"))));
    =======================================================================================================
    // Script used to open the files selected in MRS and written to
    // the sync file.
    @@@BUILDINFO@@@ MRS_open.jsx 1.0.0.1
    //@include "MRS_settings.jsx"
    //@include "MRS_syncfile.jsx"
    //@include "MRS_tools.jsx"
    // Opens all image files marked in the sync file as "S" (start work).
    function CheckOpenFiles(){
        var pssyncer = new PSSyncer();
        for(var i=0; i<pssyncer.GetFileInfoList().length; i++) {
            var syncfile = pssyncer.GetFileInfoList()[i];
            if (syncfile.StartWork()) {
                //open the image file if in state "S" (start work)
                OpenFile(syncfile.GetFileName());
                //switch state to "W" (work in progress)
                syncfile.SetWorkInProgress();
                pssyncer.Flush();
            } else if (syncfile.WorkInProgress()) {
                if (!IsDocumentOpened(syncfile.GetFileName())) {
                    //File was marked as "W" (work in progress).
                    //-> Possibly Photoshop crashed. So just re-open the file and
                    //don't chnge state.
                    OpenFile(syncfile.GetFileName());
    =======================================================================================================
    // Some tool functions...
    * @@@BUILDINFO@@@ MRS_tools.jsx 1.0.0.1
    //@include "MRS_settings.jsx"
    // Checks if the document is currently opened in Photoshop.
    function IsDocumentOpened(fileName) {
        var fullFileName = MRS_PICTUREPATH + fileName;
        fullFileName = fullFileName.toLowerCase();
        for (i = 0; i < app.documents.length; i++) {
            if (app.documents[i].fullName.fullName.toLowerCase() == fullFileName) {
                return true;
        return false;
    // Opens an image file in Photoshop
    function OpenFile(fileName) {
        var syncfile = new File(MRS_PICTUREPATH + fileName);
        if (syncfile.exists) {
            app.open(syncfile);
    =======================================================================================================
    =======================================================================================================

  • FDM event scripts firing twice during data loads

    Here's an interesting one. I have added the following to three different event scripts (one at a time, ensuring only one of these exists at any one time), to clear data before loading to Essbase:
    Event Script content:
    ' Declare local variables
    Dim objShell
    Dim strCMD
    ' Call MaxL script to run data clear calculation.
    Set objShell = CreateObject("WScript.Shell")
    strCMD = "D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMAXL.cmd D:\Test.mxl"
    API.DataWindow.Utilities.mShellAndWait strCMD, 0
    MaxL Script:
    login ******* identified by ******* on *******;
    execute calculation 'FIX("Member1","Member2") CLEARDATA "Member3"; ENDFIX' on *******.*******;
    exit;
    However, it appears that the clear is carried out twice, both before and after the data has been loaded to Essbase. This has been verified at each step by checking the Essbase application log:
    No event script:
    - No Essbase data clear in application log
    Adding above to "BefExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "AftExportToDat" event script:
    - Script is executed once after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed). Entries are visible in Essbase Application log.
    - Script is then executed a second time when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Adding above to "BefLoad" event script:
    - Script is NOT executed after clicking on Export in FDM Web Client (before the "Target System Load" modal popup is displayed).
    - Script is executed AFTER the data load to Essbase when clicking on the OK button in the "Target System Load" modal popup. Entries are visible in Essbase Application log.
    Some notes on the above:
    1. "BefExportToDat" and "AftExportToDat" are both executed twice, before and after the "Target System Load" modal popup. :-(
    2. "BefLoad" is executed AFTER the data is loaded to Essbase! :-( :-(
    Does anyone please have any idea how we might execute an Essbase database clear before loading data, and not after we have loaded fresh data? And perhaps on why the above event scripts appear to be firing twice?! There does not appear to be any logic to this!
    BefExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:19:51 2012]Local/Monthly/Monthly/admin@Native Directory/140095859451648/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:20:12 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    AftExportToDat - Essbase Application Log entries:
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:32 2012]Local/Monthly/Monthly/admin@Native Directory/140095933069056/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095930963712/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:21:47 2012]Local/Monthly/Monthly/admin@Native Directory/140095928858368/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    BefLoad - Essbase Application Log entries:
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:43 2012]Local/Monthly/Monthly/admin@Native Directory/140095932016384/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+
    +...+
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003037)+
    Data Load Updated [98] cells
    +[Wed May 16 16:23:44 2012]Local/Monthly/Monthly/admin@Native Directory/140095929911040/Info(1003024)+
    Data Load Elapsed Time : [0.52] seconds
    +...+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013091)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1013162)+
    +Received Command [Calculate] from user [admin@Native Directory]+
    +[Wed May 16 16:23:45 2012]Local/Monthly/Monthly/admin@Native Directory/140095860504320/Info(1012555)+
    +Clearing data from [Member3] partition with fixed members [Period(Member1); Scenario(Member2)]+

    Hi Larry,
    As mentioned, our exports do not appear to be generating the "-B.Dat" and "-C.Dat" files at present. However, you are correct with the Export and Load event scripts firing twice (once for the main TB file and again for the journal file). Does this also mean it could continue to fire an additional two times for the "-B.Dat" and "-C.Dat" files?
    On the last run, the output was as follows with the modified scripts:
    After clicking on Export in Workflow, the Target System Load modal popup is displayed, and the first two files have been generated:
    14.24.15.0527_BefExportToDat.txt
    14.24.17.0617_AftExportToDat.txt
    After clicking on OK in the Target System Load modal popup, the actual load to Essbase takes place. A further six files are generated:
    14.24.21.0289_BefLoad.txt
    14.24.22.0117_AftLoad.txt
    *14.24.22.0152_BefExportToDat-A.txt*
    *14.24.22.0414_AftExportToDat-A.txt*
    *14.24.22.0433_BefLoad-A.txt*
    *14.24.22.0652_AftLoad-A.txt*
    This makes a lot more sense, since one can see that the event scripts are being run a second time against the journal files during the data load. Many thanks, this solves my problem as I can now place my script where I want in the process chain. It's just a shame that there are not separate event scripts to distinguish between the various .Dat exports/loads, which are clearly occuring at separate times in the process chain.
    Many thanks! :-)
    P.S. Updated script below if anyone wishes to use it:
    Sub BefExportToDat(strLoc, strCat, strPer, strTCat, strTPer, strFile)
    Dim strF, fso, tf, t, temp, m, miliseconds, strSuf
    t = Timer
    temp = Int(t)
    m = Int((t-temp)*1000)
    miliseconds = String(4 - Len(m), "0") & m
    strF = "D:\TEST\" & Replace(Time, ":", ".") & "." & miliseconds & "_BefExportToDat"
    strSuf = UCase(Left(Right(strFile,6),2))
    If strSuf = "-A" Or strSuf = "-B" Or strSuf = "-C" Then
    strF = strF & UCase(strSuf) & ".txt"
    Else
    strF = strF & ".txt"
    End If
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set tf = fso.CreateTextFile(strF, True)
    tf.WriteLine(strFile)
    tf.Close
    Set fso = Nothing
    End Sub

  • Executing Essbase Clear Script through FDM event scripts

    Hi,
    Is it possible to access and execute essbase clear script through FDM event scripts? I know one method is to modify Load action, but was wondering if can be done any other way.
    Thanks in advance.

    The Essbase client is installed on the FDM application server so yes. You can create a batch file that calls a calc script via the Essbase Client and execute this from your Event script

  • How to get 'exit event' script to execute again when form file with saved data is re-opened?

    I have created an Adobe Dynamic XML Form using LiveCycle Designer with many fields / subforms that are ‘visible’ or ‘hidden’ dependent upon the options selected from various Drop-Down Lists. The form has also been save-enabled. Users can successfully complete the form and save a copy with the data that has been input.
    The problem I have is that when the saved file is re-opened the ‘hidden’ fields / subforms which were previously made visible by selection of the appropriate options from the Drop-down Lists are now NOT displayed. However if you make the same selections from each of the Drop-down Lists AGAIN the hidden fields / subforms are displayed and do contain the data that was entered.
    The problem appears to be that the script which determines whether a field / subform is ‘hidden’ or ‘visible’ is an
    <event activity="exit" name="event__exit">
    which is followed by
    if (this.rawValue == "0")- (i.e. the value of the Drop-down List)
    sfCompanyDetails.presence = "visible";
    sfRecruitmentAgency.presence = "hidden";
    etc, etc
    and, therefore, it is not executed again when the saved file is re-opened.
    Can anyone please advise how to achieve this?

    Moved from Adobe Connnect Forums.

  • Events script not showing up in designer

    I am working on a form using ES4 version 11 and when I try to view the Javascript code for the events nothing shows up.  I also cannot preview the form using the preview tab.  It just hangs.  When I quit and restart the form sometimes the script code shows up.  Any idas what may be causing this?

    Hi,
    This does happen to me sometimes, I'm guess that sometimes when an exception is thrown in one of the early events then the preview fails and the only way to recover is to restart Designer.
    Try going to the temp directory, just type "%temp%" (without the quotes in the Windows Explorer address bar), you should see a PDF file with a generated name something like, _12fk26d9o1adb71lh.pdf.  This is the file Designer generates when trying to do a preview.  Open this file in Acrobat (with the "When Exception is thrown" option set to break) and you should see what is causing the exception.
    Good luck
    Bruce

  • Workflow Event Scripts

    Is there a way too store a work flow events idoc script in an external location (eg. file) and call it from within the workflow event. What I am after is a way to encapsulate common workflow business rules in one place and call them.  We have several repeating rules that are used in all of our offices as well as office specific rules which are all currently in separate files.  We would like to factor out the common rules into a parent flow so if there is a change to the common set we only have to change it in one place instead of each file. Thank you.

    Yes: use the Idoc Script function docLoadResourceIncludes.
    http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c08_config_ref.htm#CSIDO721
    Jonathan
    http://jonathanhult.com

  • Click Event Script Stopped Working. Please Help!

    I must have forgotten a step in making an email button that will pull the data from a form field into the subject line of an email and let me create the body of an email.
    I am taking a Button and adding a Click event of:
    var Mailto = "[email protected]";
    var BetreffSubject = Legal_Name.rawValue;
    var NachrichtMessage = "This is line 1.\r\rConfidentiality Notice!\rThis is the start of the third line ";
    var Mail = "mailto:" + Mailto + "?Subject=Site Report for " + BetreffSubject + "&Body=" + NachrichtMessage ;
    event.target.submitForm({
    cURL: Mail,
    bEmpty: true,
    cSubmitAs: "PDF"
    When I click on the button, nothing happens.  what am I doing wrong?

    Hi RudyLou36,
    Please download the file from https://workspaces.acrobat.com/?d=0n*uLjnmLGX8VlHRCW5n7A and check the click event of "Control email through script" button.
    Regards,
    Ratnesh

  • Error 1 during vi event scripting

    I am working on some VI scripting to automatically build event structures.  I've made a lot of progress but am running into an error that is giving me trouble.  I'm parsing a text file and extracting names of controls.  I create a local variable for the control, then create a Value Change event for said local variable.  All of these events are appended into an array, which I then pass to the SetHandledEvents method.
    When I run the code, I get the error:
    Error 1 occured at Invoke Node
    LabVIEW: An input parameter is invalid.  For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    I can click 'Continue' at that point, and if I click it enough times, eventually the loop finishes and the correct code is created (I have verified this).
    Right now I don't have any ideas as to what the invalid parameter would be...this only started happening when I put this into a loop, so I feel like it must be with how I'm initializing the array, but my initialization seems correct.  See attached screenshots...I couldn't fit the whole screen in one screenshot so I did it in 2 separate ones...
    Any help?
    Attachments:
    lv_es1.png ‏64 KB
    lv_es2.png ‏64 KB

    I'm sorry, I mis-typed.  It is a boolean push-button control that I'm using as the reference, not the local variable.  I've attached a screenshot that shows this.
    Also, I wanted to clarify that this code worked until I put it into a loop.  In other words the only thing I added really was the initialize array function.  You can see that the first entry to that cluster says 'Null'...I have tried 'Null' and 'Value Change', but both give me the same error I wrote earlier.
    I have attached a new screenshot.  Please ignore the 'local variable reference' comment...it's a boolean push button reference.
    Attachments:
    lv_es3.png ‏79 KB

  • Event scripting issues

    I am trying to get the following script working as a startup script.
    the goal is that when the user chooses to save the document, they are presented with a dialog box asking for a quick summary of the edits that were made. Then this info is written to XMP fields.
    The core functionality actually works, the dialog prompts and the data gets saved in the XMP.
    The problem is that when the save action is initiated an error dialog pops up announcing "The requested action could not be completed because the object no longer exists." and then the script proceeds and functions properly, then it prompts for input and saves the data again.
    I get an error, then the script runs twice.
    I am confused.
    #targetengine session
    var myEventListener = app.addEventListener("beforeSave", myPromptForInput);
    function myPromptForInput(myEvent){
    var myTimeStamp = myEvent.timeStamp
    var myDialog = app.dialogs.add({name:"Enter a simple description of edits made",canCancel:true});
    with(myDialog){
    //Add a dialog column.
    with(dialogColumns.add()){
    //Create a text edit field.
    var myTextEditField = textEditboxes.add({editContents:"Description of document changes", minWidth:300});
    //Display the dialog box.
    var myResult = myDialog.show();
    if(myResult == true){
    //Get the values from the dialog box controls.
    var myNotes = myTextEditField.editContents;
    //Remove the dialog box from memory.
    myDialog.destroy();
    myAddXMPData(myNotes + " - " + myTimeStamp);
    //alert(myEvent);
    function myAddXMPData(myNotes){ 
    //var myDocument = app.documents.item(0);
    var myDocument = app.activeDocument;
    with(myDocument.metadataPreferences){
    author = "James Haney";
    description = myNotes;
    var myNewContainer = createContainerItem("http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes");
    setProperty("http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes/*[1]", myNotes);

    @Jarek – I tested your code as well.
    Even without starting Illustrator I can see one warning message. The script is running fine as is.
    If I add something to InDesign's XMP data and do a document save your editing window is showing up and I can edit a text field.
    After hitting ok, a warning message is coming up.
    1. Unsaved named document.
    2. After working the keyboard shortcut for save cmd + s your text edit field is coming up:
    3. Adding some text:
    4. Warning message is popping up after hitting OK:
    This warning message is quite different from James' error message:
    Warning
    An attached script is causing the following error:
    myAddXMPData is not a function
    Would you like to disable this event handler?
    [ ] Do not show again
    [No] [[Yes]]
    Tested with InDesign CC 2014.2 v10.2.0.69 on Mac OSX 10.7.5.
    Script is saved in folder:
    Applications/Adobe InDesign 2014/Scripts/startup scripts/Get-myXMP-atSave-Dummy.jsx
    Uwe

  • Package Event Scripting - Create shortcut?

    Hi,
    on our GUI installation server, I would like to do the following:
    In the "On end install" section of one package I would like to check, if there is
    a shortcut to SAP Logon on the desktop.
    If yes, it should be deleted and a shortcut to SAP Logon Pad should be created on the desktop.
    I know, how to check if the shortcut exists, but I dont know, how to create a new one.
    Can you help me?
    best regards
    Davor

    Can nobody help me?

Maybe you are looking for

  • IMac G5 HD Won't Boot. Please Help.

    I have an iMac G5 (Power PC) which has been running OS 10.5.8 without any issues until today.  When starting, I have a grey screen with the Apple logo, but the wheel beneath keeps turning and the computer will not boot up. I've tried to start it many

  • How do I load 2 versions of FCP?

    I have FCP studio 2 and bought the 3 upgrade. I have 3 on one machine and c2 on the other. When I get snow leopard, I am going to do a clean install and put 3 on both machines. Trouble is, I have video tutorials for FCP studio 2 and still want to do

  • Flash CS3 doesn't find Help file

    If I'm looking at the actionscript in a .FLA file, and I press F1 with the mouse cursor over a word like 'trace', it takes me directly to the help page on the trace() function. Perfect. However, if I am looking at code in an external .as file and do

  • How to call the integration engine not the remote function.

    Hi! I want to get the data from the client 000 with an rfc call through the xi (client 001). But when I call the function via rfc, the funciton is executed in the client 001, instead of forwarding the call to the integration engine. How can I forward

  • Arrays with a string index

    Hi, I am looking for the best way to map a value to a string in an array. In PHP this is easy because it supports arrays with string Indexes. For example: $array['Canada'] = 5; $array['USA'] = 3; In Java I can't do this because I can only use an inte