440 Automation error with script in "AftFileImport"

Hi experts,
I know there're some threads talking about this error,but I still need some help with my problem. If anyone knows the reason or have the same experience please share your solutions,thanks a lot!!!
My Error log as blow:
** Begin FDM Runtime Error Log Entry [2011-10-25 18:03:26] **
ERROR:
Code............................................. 440
Description...................................... Automation error
Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
Component........................................ upsWObjectsDM
Version.......................................... 1112
Thread........................................... 13556
IDENTIFICATION:
User............................................. fdmadmin
Computer Name.................................... FIACTHFMTD
App Name......................................... FDMAP
Client App....................................... WebClient
CONNECTION:
Provider......................................... SQLOLEDB
Data Server...................................... fiacthfmtd
Database Name.................................... FDMAP
Trusted Connect.................................. False
Connect Status.. Connection Open
GLOBALS:
Location......................................... ABCD
Location ID...................................... 758
Location Seg..................................... 10
Category......................................... IFRS PA_2
Category ID...................................... 17
Period........................................... Aug - 2011
Period ID........................................ 2011/8/31
POV Local........................................ False
Language......................................... 1033
User Level....................................... 1
All Partitions................................... True
Is Auditor....................................... False
This error occured after I add a script on Event "AftFileImport", I wrote some check scripts in Import and pass the result to "AftFileImport". But it shows some error at the line have "API.Import.ImpProcessMgr.State.dstDataWindow"
.Did I use the wrong way to call this API? (purpose:If any error occured, stop import the file)
My script as below:
Sub AftFileImport(strLoc, strCat, strPer, strFile, lngRecs)
'Oracle Hyperion FDM EVENT Script:
'Created By:      fdmadmin
'Date Created:      2011-10-24 17:50:51
'Purpose:
Dim checkPeriod, errPeriod, errYear, errCat
errYear = RES.PvarTemp1
errPeriod = RES.PvarTemp2
errCat = RES.PvarTemp3
checkResult = RES.PvarTemp5
If checkResult = "OK" Then
Else
RES.PlngActionType = 6                    
RES.PstrActionValue = "Source Data Year : " & Left(errYear,4) & " " & "Source Data Period : "& Left(errPeriod,3) & " " & "Source Data Cat : "& errCat
API.Import.ImpProcessMgr.State.dstDataWindow = False
End If
End Sub
============================================
Thanks!!
WL
Edited by: user13029084 on 2011/10/25 下午 7:07

How are you importing the data? If you are using the Batch Loader, the file name sets the POV. Just ensure that the file name is accurate however it is created.
Hi,I import text file and no matter what the file name is, I need to check the content if the year,period is the same with the POV. anyway,thanks .

Similar Messages

  • Validate memberset:error 440-Automation error

    Hi,
    While refreshing the data in the EVDRE, the following error is witnessed-"validate member set:error 440-automation error".This is on BPC 5.1 SP3,MS office 03.Any interpretation on this error is well appreciated.
    regards
    savi

    Hi, Savi!
    Maybe you have a NOEXPAND command in one of your expansions?
    I encounter the same problem as you do and in my case it is due to a NOEXPAND command. (I have SP5 installed.)
    Unfortunately I cannot leave this command out. So the issue cannot easily be solved in my case. But maybe this helps you...
    Best regards,
    Hartmut
    P.S.: A colleague just said that I can simply delete the entries for this expansion to avoid the expansion. After deleting these entries you will have to adjust the referenced area in the evdre-command.
    Still, this is a workaround. But this actually saves my input schedule. Hope, it helps you, too!
    Edited by: Hartmut Kesper on Nov 12, 2008 1:44 PM

  • Error 440 Automation Error: modupsShell.ExecuteCustomScriptEx

    We are experiencing the following error when trying to load data files to FDM using the batch processing functionality. If no files are present in the OpenBatch folder, no error occurs. However, the attached occurs once files are present.
    The process has worked fine previously, but has been giving the following errors since last night.
    ** Begin Runtime Error Log Entry [2012-09-20 10:47:38] **
    ERROR:
    Code............ 440
    Description..... Automation error
    At Line: 36
    Procedure....... modupsShell.ExecuteCustomScriptEx
    Component....... upsShell
    Version......... 1112
    Process ID...... 2508
    Thread.......... 6852
    IDENTIFICATION:
    User............ admin
    Domain..........
    Computer Name... *******
    App Name........ *******
    PROCEDURE STEPS:
    1-Split Arguments
    2-Create Load balancer=*******
    3-Authenticate
    4-Get Next App Server
    5-Open App Server=*******
    6-Execute the script=*******_BATCHLOAD
    7-Step was not reached, a previous step failed

    Of course, apologies. Please see below.
    Looking at the script in Workbench, the error appears to be referring to the following line:
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), , CBool(blnAutoMapCorrect)
    Script:
    Sub *******_BATCHLOAD()
    'FDM CUSTOM Script:
    'Created By:      *******
    'Date Created:      18/05/2012 11:58:37
    'Purpose:     Execute a Batch Loader task.
    'Execute a STANDARD batch
    'Use Serial Processing
    'Declare Local Variables
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim BATCHENG
    'Initialize batch engine
    Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
    BATCHENG.mInitialize API, SCRIPTENG
    'Initialize Variables
    lngProcessLevel = 12 'Up-To-Check
    strDelimiter = "~"
    blnAutoMapCorrect = 0
    'Create the file collection
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    'Execute a Standard Serial batch
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), , CBool(blnAutoMapCorrect)
    End Sub

  • Error with Script logic

    Hello friends,
    I am getting an error with running currency conversion in an app, the error says Invalid dimension "C_Category". Here is the script logic, I dont see C_Category anywhere. For the record, the name of dimension is category.
    *RUN_PROGRAM CURR_CONVERSION
          CATEGORY     = %C_CATEGORY_SET% 
          GROUP = %GROUPS_SET% 
          TID_RA = %TIME_SET%
          RATEENTITY = GLOBAL
          OTHER = [ENTITY=%ENTITY_SET%]//For More than one other scope parameters: OTHER = [ENTITY=%ENTITY_SET%;INTCO=%INTCO_SET%...]
    *ENDRUN_PROGRAM

    Hello,
    Variable %C_CATEGORY_SET% means set of members selected for Dimension C_CATEGORY. So, if you want to use CATEGORY instead replace it with %CATEGORY_SET%, but if are running Consolidations I think you need C_CATEGORY Dimension.
    Regards,
    Gersh

  • Reproducable Error with script SYS.I_PLSCOPE_SIG_IDENTIFIER$

    Hi Oracle,
    I get an error when running attached script:
    The error message is:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-00600: internal error code, arguments: [kqlidchg1], [], [], [], [], [], [], [], [], [], [], []
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00001: unique constraint (SYS.I_PLSCOPE_SIG_IDENTIFIER$) violated
    00603. 00000 - "ORACLE server session terminated by fatal error"
    *Cause:    An ORACLE server session is in an unrecoverable state.
    *Action:   Login to ORACLE again so a new server session will be created
    DROP SEQUENCE T_TEAM_ID;
    DROP SEQUENCE T_COMPANY_ID;
    DROP TABLE t_company CASCADE CONSTRAINTS
    DROP TABLE t_team CASCADE CONSTRAINTS
    CREATE TABLE t_company
    id INTEGER NOT NULL ,
    name VARCHAR2 (20) NOT NULL
    ALTER TABLE t_company
    ADD CONSTRAINT PK_company PRIMARY KEY ( id ) ;
    CREATE TABLE t_team
    id INTEGER NOT NULL ,
    company_id INTEGER NOT NULL ,
    name VARCHAR2 (20) NOT NULL
    ALTER TABLE t_team
    ADD CONSTRAINT PK_team PRIMARY KEY ( id ) ;
    ALTER TABLE t_team
    ADD CONSTRAINT FK_t_team_t_company FOREIGN KEY
    company_id
    REFERENCES t_company
    id
    CREATE SEQUENCE T_COMPANY_ID
    NOCACHE
    ORDER ;
    CREATE SEQUENCE T_TEAM_ID
    NOCACHE
    ORDER ;
    CREATE OR REPLACE TRIGGER t_team_BI
    BEFORE INSERT ON t_team
    FOR EACH ROW
    WHEN (NEW.id IS NULL)
    BEGIN
    SELECT T_TEAM_ID.NEXTVAL INTO :NEW.id FROM DUAL;
    END;
    CREATE OR REPLACE TRIGGER t_company_BI
    BEFORE INSERT ON t_company
    FOR EACH ROW
    WHEN (NEW.id IS NULL)
    BEGIN
    SELECT T_COMPANY_ID.NEXTVAL INTO :NEW.id FROM DUAL;
    END;
    The error is thrown for the CREATE OR REPLACE TRIGGER and also comes up when creating the rest 1st, logging of and logging in again.
    As it seems to be a serious error (I'd never expect it to show) and I don't now how to solve it, I wrote you this bug report.
    I'm on Win7 Pro and using SQL Developer 3.0.04. Oracle version installed is:
    SELECT * FROM V$VERSION
    where banner like 'Oracle%';
    BANNER
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Any advise or idea how to solve the error?
    Thank you,
    Blama

    Error with script SYS.<...>Using sysdba connections for schemas is strongly discouraged.
    Creating tables in the system tablespace that have no relation to the sys and system schemas brings its own set of admin headaches, sysdba should only be used to shutdown or startup an instance.
    Or if there is a specific SYS object that needs to have permissions granted that cannot be done via a user with the DBA role privilege (i.e. SYSTEM), that should be the only time a sysdba connection is needed.
    Also, beginning with 11g the pl/sql for setting a column with a sequence value can be done directly, no 'select ... into ... from dual;' needed.
    begin
      :new.<column> := <sequence>.nextval;
    end [<trigger name>];

  • Automating Process with Scripts

    Hello all,
    I am a seasoned JavaScript programmer, and am currently working on a project which requires a lot of work, and I'm hoping that the process can be automated using scripts for InDesign.
    Essentially, here's what I want to do. I have a 5 (sometimes, but rarely, 4)-digit string. I then have three rectangles underneath the text frame which I would like to apply a swatch to, depending on the final digits of the number. Numbers 0-9 are assigned a specific colour (and swatch), and at the moment I am manually going through each rectangle, and selecting it according to the last two digits, and applying the swatch to all those selected.
    I am convinced that it must be possible to automate the process using InDesign User Scripts, but I don't have a good understanding of this. Here's an example of how the colours are assigned to the special bar codes:
    0 = red 1 = blue 2 = green ....
    So for the following code: 12312, I would like the bars underneath to have the following colours:
    blue red blue
    (i.e. top and bottom row = penultimate digit; middle row = last digit).
    Could anyone indicate to me how I might write a script which loops through the pages in my document, finds the codes, extracts the last two digits and then applies a swatch to the rectangle object, depending on the number...
    I am confident that I could write something like this using regular JavaScript and HTML, but that having been said, I am familiar with the DOM in HTML...
    Any help or pointers would be gratefully received!
    Thanks,
    Ben.

    Scripting InDesign is a very different beast than scripting HTML.
    I highly recommend that you download Jongware's DOM in HTML or chm format and browse through it. It'll give you a pretty good idea of the DOM structure.
    http://www.jongware.com/idjshelp.html
    app.documents[0].pages gives you a collection of the active document's pages.
    app.documents[0].pages.everyItem().getElements() gives them to you as an array.
    pages have a textFrames collection. You can loop through that and check the contents of each frame for your numbers.
    app.documents[0].swatches.item("Color Name") gives you a swatch and a textFrame has a fillColor property.
    That should be enough to get you started...
    Harbs

  • Errors with Scripted Fill

    this is a question-i seem to be haveing problems with my PS-CC WHEN I GO TO THE FILL BOX AND TRY TO GET A TREE OR FRAME I GET ERRORS SOMETHING ABOUT WIDGETS NOT WORKING AND I ALSO GET THIS SORT OF THING IN AUTOMATE/CAN I RELOAD A NEW PHOTOSHOPcc and see if these prob. go away

    Without knowing exactly you you doing and the exact results all that I can show you is what I see in my machine.

  • Validation errors with scripts when upgrading Calc Manager

    Hello All,
    I have just inherited an upgrade project that includes upgrading from 11.1.1.2 -->  11.1.1.3 -->  11.1.2.2.  After upgrading from 11.1.1.2 to 11.1.1.3 we ran into an issue when trying to validate scripts in Calc Manager.  The scripts are for HFM.  We are receiving the following error:
    Validation Error:  Error Code 403:  Error Message <DOCTYPE HTML PUBLIC " - //IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>403 Forbidden</title>
    <p> You don;t have permission to access .hfm/calcman/convxmiltovbs.asp on this server
    Has anyone seen anything like this?  At this point we are really stuck!
    Thanks in advance for any assistance!

    Hi there,
    As far as I remember the upgrade from 11.1.1.2 to 11.1.1.3 does not require a configuration because you actually copy files from the patch to the actual folder (as far as I remember). However, I have just remembered that in one case of upgrading I had not access to the new folder that were created by the system. Why don't you review the security of the folder "hfm/calcman/"?
    Regards,
    Thanos
    < spam signature link removed by moderator >

  • Automation error while using GetHierarchy

    Hi
    I have a hierarchical table name "Organization" in my MDM repository. I am using the following VB code to get the hierarchy. The system gives me "Automation error" (cat object is successfully initialized)
        Dim oNode As TreeNode
        oNode = cat.GetHierarchy("Organization")
    The code works only with Taxonomy tables. I've tried GetBranchFromNode and GetResultTree methods but all of them give me "Automation error" with my hierarchical table. They work fine with Taxonomy tables. Please help me how can have the tree structure of my hierarchy table.
    I am using MDM 5.5 SP4 Patch01.
    Thanks & Regards,
    Yasir Rizwan Saqib

    well ... its like answering myself
    the code given to a table is used to identify it. Use the code instead the name in API calls and it works. I now find it handy to have the same code as the name of the table. It is decieving that API documentation asks for table name as the argument when what they really need is the code.
    -yasir

  • StartupItem with syntax error (sh script)

    I'm comfy on the cli but still green with scripting it. I've followed the Apple tut on making a StartupItem, but I am getting simple (I hope) sh syntax errors when I run it. The three *Service functions are required, as they're called by the RunService function (from the sourced rc.common script) ... all per the Apple tutorial.
    In any case, the error I get is:
    line 7: syntax error near unexpected token `}'
    /Library/StartupItems/blah/blah: line 7: `}'
    The complaint is about the bracing earlier in execution than the 'tricky' stuff. I hope that suggests the problem is here and not in my Boot.bash script. I'll post that too if, as I'm noticing with scripting, the complaints about eofs and bracing and such are not where the real problem lies. I'm a bash person though so, especially if this is just an sh syntax misuse, feel free to give me what for.
    Any thoughts, fixes, or straight advice appreciated,
    Joel
    #!/bin/sh
    . /etc/rc.common
    StopService() {
    # nothing to kill
    RestartService() {
    StopService
    StartService
    StartService() {
    /bin/bash /Library/Management/Boot.bash
    RunService "$1"

    Hi Joel,
       I've actually read a scripting guide that recommends defining functions with the "function" keyword and the norm is to put a space before and after the "()". However, your syntax is valid. In fact I see no errors at all; the script should work.
       Thus, the problem is most likely something invisible. It's time to investigate the text editor you used to create the script. You should open the script in a UNIX text editor, like vim, and look for hidden characters or Mac line endings. An even better solution might be to get the free text editor TextWrangler, (or BBEdit if you have it) open the file and set it to show invisible characters. It will also tell you what kind of line endings are used in the file. You might also post a long listing of the StartupItem script.
    Gary
    ~~~~
       He's just a politician trying to save both his faces...

  • Help with script error

    Hi all,
    I am facing error with the script logic
    Script Logic
    *XDIM_MEMBERSET P_ACCT=EXTSALES,ICSALES
    *WHEN P_ACCT
    *IS ICSALES,EXTSALES
    *REC(P_ACCT="TOTVAL")
    *REC(FACTOR=.08,P_ACCT="SALAFTERTAX")
    *ENDWHEN
    *COMMIT
    Error Message
    LOG BEGIN TIME:2010-04-16 15:59:39
    FILE:\ROOT\WEBFOLDERS\Student_DD \ADMINAPP\Sales\TEST.LGF
    USER:MICAIT\DEVANG
    APPSET:Student_DD
    APPLICATION:Sales
    *REC(P_ACCT="TOTVAL")
    ERROR LOG:
    CLASS: CL_UJK_WHEN_ENDWHEN
    METHOD: ADD_LINE
    TCODE: SE38
    MULTI MEMBERS HAVE BEEN SPECIFIED ON  DIMENSION:"P_ACCT" IN *IS SO DUPLICATE MEMBERS MAY BE GENERATED.
    LOG END TIME:2010-04-16 15:59:39
    UJK_VALIDATION_EXCEPTION:LINE:4 multi-member specified for dimension "4" in *IS
    Thanks,
    Diksha

    Hi,
    If you are in SP02, Go through this SAP Note [Note 1312132 - BPC7NW SCRIPT LOGIC: REC Behavior Fix|https://service.sap.com/sap/support/notes/1312132] that helps you in fixing this issue.
    Reply me for further clarifications.
    Regards,
    RajK

  • While deleting history firefox crash with error of Script: chrome://browser/content/sanitize.js:136.So has to wait or cancel the script.

    I have upgraded Firefox to 4.0.1.But while deleting history(everything) Firefox hangs for some time and then this error appears
    Script: chrome://browser/content/sanitize.js:136
    is unable to continue.so either wait till process complete or stop the process.Sometimes it crashes Firefox.

    It's great to know that the good people at Mozilla doesn't give a shit that it takes 5min to clear my history after I've browsed porn.

  • Automator : issue with variable and path to folder

    I created a simple Automator Workflow with: A variable "Document Folder" and an action "Run shell script" with this command:
    "rsync -E -a -v -z --delete $@ /Volumes/MyBook/Backup/"
    I tested this command, It works very well in the terminal. But return me an error with Automator.
    "$@" is replaced by the Path when running, I guess my issue is that the content of the variable is " ~/Documents " . When it pass to the script it become "/Users/login/~/Documents".
    That can't works.
    A solution would be to put in the script the full path instead of "$@" but I would liketo understand why this error occur.
    Thanks.

    Automator actions return their results as a list of items. If you want your shell script to use the result of an action (for example Ask for Finder Items) as arguments, you need to set the Pass input: as arguments option, and place your statement in the for loop:
    for f in "$@"
    do
          /usr/bin/rsync -E -a -v -z --delete "$f" /Volumes/MyBook/Backup/
    done

  • HT2488 How do I create a workflow in Automator or a script in AppleScripts to download an excel file from a specific webpage?

    I would like to create a workflow in Automator or a script in AppleScript (or a combination of the two), that opens Safari to a specified page and downloads an excel file from this page and saves the downloaded document to my desktop.
    Is this something that be done? If so, how?
    I have so far been able to build a workflow in Automator to open Safari and added an AppleScript that takes Safari to a specific page that has an Excel document.
    I can't figure out where to go from here... Any help would be apprecitated.
    Thanks!

    Would you have the web address the excel sheet is on?
    Is there a simular web page you could point to if not?
    Would there be a copy of the file on an FTP page.  This would be easier. 
    curl
    http://www.cyberciti.biz/faq/mac-os-x-terminal-download-file/
    http://www.thegeekstuff.com/2012/04/curl-examples/
    http://curl.haxx.se/docs/manpage.html
    Macintosh-HD -> Applications -> Utilities -> Terminal
    # Press return to run a command.
    the curl is a terminal command ( Unix ).  It allows you to read a file off of the web.
    man curl
    provides cryptic information on the commnad curl.
    press the space bar to advance  a page.
    press letter to q to quit.
    What you may have to is to read in the web page as a text file.  Go "fishing" through the page to find the excel file you need.  Once you find the file, you can use curl to read the file.
    curl is a very full featured command.  (read complex to figure out ).
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • BEx Error: Automation error: Object invoked has disconnected from clients

    Hi,
    We have a user here that attempts to access a query in BEx (MS Excel), but receives this error message:
    - Runtime error '-2147417848 (80010108)':
      Automation error
      The object invoked has disconnected from its clients.
    Any ideas.
    Thanks,
    John

    Please go through the OSS note 857360..
    https://websmp108.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=857360&_NLANG=E
    This talks about your error..
    Solution
    1) Replace the RFC library
    librfc32.dll
    on the client PC with a current version.
    620: Version >=  6206.6.1938.4727  (620x.x.x.4727).
    640: Version >=  6400.3.79.4740    (640x.x.x.4740).
    There is a version of the 620 and 640 librfc32.dll in the attachments: and we recommend that you use Version 640 (compatible with SAPGUI 620) (see below).
    620 Version: Download librfc32.rar. Rename it librfc32.exe. This file extracts itself automatically.
    640 Version: Download librfc32.zip. You can use WinZip to extract this file.
    Note:
    It seems that newer (delivered) versions of 6.20 librfc32.dll do not contain this fix. In this case, you can also use the 6.40 librfc32.dll. For reasons of compatibility, you should use the following Microsoft DLLs that are available on the PC for this: msvcr71.dll and to be msvcp71.dll (see Note 684106).

Maybe you are looking for