FDMEE scripts

Hi all

I have created an environment for Jython scripts using the guide of the erpi in this setup of Jython, Eclipse a Python

My question is that I'm trying to run the initialization code that is in the guide, but my database is MSSQLSERVER, so my code is as below: -.

import Java.Math.BigDecimal BigDecimal

import java.sql SQL

import com.hyperion.aif.scripting.API API

fdmAPI = API()

Conn = None

Conn = sql. DriverManager.getConnection ("jdbc:sqlserver://localhost \\MSSQLSERVER;user=sa;password=pass;") SelectMethod = cursor; databaseName = FDM_H");

conn.setAutoCommit (False)

fdmAPI.initializeDevMode (conn);

Print "CONNECT to DB of SUCCESS"

fdmContext = fdmAPI.initContext (BigDecimal (1720))

Print "Hello".

Here, when I run this code in eclipse as run as Jython RUN, I'm getting below error

Traceback (most recent call changed):

File "C:\Users\trnadmin\workspace\Testing\HelloJython.py", line 12, in < module >

Conn = sql. DriverManager.getConnection ("jdbc:sqlserver://EPM:1433;" + "databaseName=FDM_H;user=sa;password=hyperion@14 ;");

at java.sql.DriverManager.getConnection (unknown Source)

at java.sql.DriverManager.getConnection (unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

at java.lang.reflect.Method.invoke (unknown Source)

java.sql.SQLException: java.sql.SQLException: no suitable driver found for jdbc:sqlserver://EPM:1433;databaseName=FDM_H;user=sa;password=hyperion@14;

Note:-J' have 3 JAR files are added as external libraries

Thank you

Pratik

The JDBC connection should be as follows for MSSQL 2005

JDBC URL = SqlServer: / /: 1433; selectMethod = cursor; databaseName =; integratedSecurity = false; user =; password =

Tags: Business Intelligence

Similar Questions

  • Call the Essbase Calc of custom Script FDMEE script

    Hi Experts,

    In my reuirement, I must run Essbase calc script to export the perticular accounts data and then import these data into FDMEE to load in another planning application.

    I know we can run the Application Esbase calc script fromTarget page and after load. but in my case, executing the script should happen prior to importation.

    Aanybody may suggest an example if I can call the script to calc Essbase to a custom event BefImport script or FDMEE script? an example of the syntax would be useful

    Thank you!

    Hello

    are what version of FDMEE you?

    You have an example document to support FDMEE sample scripts (Doc ID 1613836.1)

    You can have a MAXL command in your batch file to perform the extract

    Example 5

    An example script to calc to perform an Essbase excerpt and then load the file extracted with FDMEE.

    1. Create a batch (.bat) file that performs extract Essbase.
    2. Call the scriptimport BefImport event operating system batch file
      import of subprocesses
      Import shutil
      OS.chdir ("D:\temp\\BatchFiles")
      command = ' D:\temp\BatchFiles\helloworld.bat > helloworld.out '
      p = subprocess. Popen (Command)
      RETCODE = p.wait)
    3. Load using FDMEE HelloWorld.out

    The Jython script can be created in the BefImport Script.

    Then you can have a rule of data loading with a file in it name (Ex: Essbase_Extract_XXXX) where XXXX is that five-year period.

    Your jython script should create this file, so in the case of import, the data is imported

    Keep in mind that it is an output of feature 11.1.2.4 box so if you are in 11.1.2.3.x I wouldn't put a lot of effort in a complex solution

    I hope that this puts you on the right track

  • FDMEE SCRIPT - replacement FDM VB functions with the methods in the API FDMEE

    Hi all


    I'm trying to convert FDM Scripts scripts that would support FDMEE (using Jython as language) and the FDMEE API. However, when I tried it making I came across a few functions in scripts FDM for which I couldn't find replacement functions in FDMEE API.


    How a supposed to change functions VB in FDM as farsTableAppend while it is supported in the FDMEE scripts?

    I generated documentation of the API of the FIA FDMEE - APIs.jar (this jar is supposed to have all the API of FDMEE in there I guess) but I don't see alternative for functions such as farsTableAppend, fExpTRx, PstrClientType, VB, but I can see other methods in the documentation for example, getEPMOracleHome() etc... (All these functions that you can view by using eclipse as editor-in-Chief of Dev FDMEE).


    Is there another method/function in the FDMEE API should I use to replace these functions to support FDMEE?


    I have another question about the AIF file - CUSTOM.jar, what is the purpose of this pot, do we get additional methods in this file


    Please advise...


    Thanks in advance

    Sam

    Hello

    1 API map is not 1 to 1. My suggestion is to define what you want to do and then design your solution in jython (using the api or not). So what you're trying to do exactly?

    For example, you need not PstrClientType more (there is no windows client)

    2 AIF - CUSTOM.jar allows you to enter your custom java classes. then you can use it from your jython scripts.

    Regarrds

  • Notification by E-mail FDMEE script error! Invalid Argument or procedure call

    Hello FDM gurus.

    I tried to write a script to set e-mail notifications when the FDMEE process fails on step validate. I tried to recreate my script as much as possible, but I am unable to know is wrong with the script. The FDMEE script notification by e-mail administrator's guide is not correct, as most of the APIs mentioned FDM and not for FDMEE. Ask you please check the below script and him point that does not.

    I put the script in the AftValidate event below. I don't know if I should not be implemented as event scripts.

    I am currently getting an error "Invalid procedure call or argument: «objFDMAPI.API.MaintenanceMgr.fProcessStatus»»

    My script:

    '************************************************************************************

    ' REVIEW OF THE INPUT PARAMETERS

    '************************************************************************************

    If WScript.Arguments.Count <>5 then

    WScript.Echo "You must provide 5 DURATION variables." & vbNewLine & "use: HFM_LOAD.vbs LoadID CSS_Token OracleInstancePath JavaHomePath OLE_DB_PROVIDER.

    WSCript.Quit - 1

    On the other

    LoadID = WScript.Arguments.Item (0)

    CSSToken = WScript.Arguments.Item (1)

    OracleInstancePath = WScript.Arguments.Item (2)

    JavaHomePath = WScript.Arguments.Item (3)

    Provider = WScript.Arguments.Item (4)

    End If

    '************************************************************************************

    'Initialize FDMEE VB API.

    '************************************************************************************

    Set objFDMAPI = CreateObject ("fdmapi.clsAppServerDM")

    WScript.Echo 'FDMEE VB API created.'

    blnInit = objFDMAPI.fInitializeMainAPI (CStr (LoadID), CStr (CSSToken), CStr (OracleInstancePath), CStr (JavaHomePath), CStr (Provider))

    If blnInit then

    WScript.Echo "FDMEE VB API initialized."

    On the other

    WScript.Quit - 1

    WScript.Echo "fInitializeMainAPI failed."

    End If

    WScript.Echo CBool (True)

    '************************************************************************************

    Dim objProcessStatus

    Dim lngStateCheck

    Dim strFromAddress

    Dim strToAddress

    Dim strSubject

    Dim strEmailMsgLine

    Dim objMsg

    Dim objConfig

    Dim intSendUsing

    Dim strSMTPServer

    Dim intSendPort

    ' Message content Variables

    strToAddress = " " [email protected] ; [email protected] "" "

    strFromAddress = " " [email protected] " " "

    strSubject = "FDMEE Validation failed"

    strEmailMSGLine = 'Failure of Validation - Log of process FDMEE Check - for Details'

    "Check for location

    If objFDMAPI.API.State.LocName = "United States" or objFDMAPI.API.State.LocName = "Canada" or objFDMAPI.API.State.LocName = "Mexico" Then

    strLoc = objFDMAPI.API.State.LocName

    ' Initialize process status

    ' lngStateCheck = 12 ' Validation failed

    "Check the status of LoadID

    Set objProcessStatus = objFDMAPI.API.MaintenanceMgr.fProcessStatus (objFDMAPI.API.State.LocName, objFDMAPI.API.State.CatName, objFDMAPI.API.State.Period)

    If objProcessStatus.blnTBVal = false Then

    strSubject = strSubject & strLoc

    strEmailMSGLine = strEmailMSGLine & strLoc

    strSMTPServer = 'mail.abc.com '.

    ' CdoSendUsing enumeration-1 = use smtp on the local computer, 2 = use smtp via network

    intSendUsing = 2

    ' SMTP port on the server

    intSMTPPort = 25

    'Create the CDO configuration object '.

    Set objConfig = CreateObject ("CDO. Configuration")

    "Set the parameters of the Config object

    With objConfig.Fields

                    . Agenda ("http://schemas.microsoft.com/cdo/configuration/sendusing") = intSendUsing

                    . Agenda ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTPServer

                    . Agenda ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = intSMTPPort

                    . Agenda ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10

    . Update

    Ends with

    'Create the CDO message object '.

    Set objMsg = CreateObject ("CDO. Message")

    'Assign to the configuration of the message config object object property.

    Set objConfig = objMsg.Configuration

    "Set the Message subject and send mail

    With objMsg

    . To = strToAddress

    . From = strFromAddress

    . Subject = strSubject & strLoc

    . TextBody = strEmailMsgLine & strLoc

    . Send

    Ends with

    On the other

    WScript.Echo "Success Validation".

    End If

    ' End with

    End If

    'Destroy objects of message '.

    Set objMsg = Nothing

    Set objConfig = Nothing

    objFDMAPI.Dispose

    Set objFDMAPI = Nothing

    I am able to receive notifications by e-mail without the API. Ask you to help and guide me. Thanks in advance

    Vikram

    Delete this line

    strPer = FormatDateTime (strPer, 2)

    just use the name of period and do not scan.

    In any case, I would say that you start with simple code. I just joined the code for AftValidate.

    If you start with simple code that troubleshoot you more quickly.

  • Configure the Essbase Calc of FDMEE Script

    Is there a way to launch this clear FDMEE script before export?  I tried to go through the steps in the admin guide, but not luck.

    If anyone can offer a quick, installation step by step in the context of this little script, would be appreciated!

    ESS_LOCALE English_UnitedStates.Latin1@Binary

    /*******************************************************************************************

    / * Parameters of calculation

    ********************************************************************************************/

    UPDATECALC OFF SET;

    SET CACHE HIGH;

    SET CALCPARALLEL 3;

    SET AGGMISSG

    / * Perform calculations

    ********************************************************************************************/

    FIX (& CurYr, "Can be", "Final")

    CLEARDATA "real."

    ENDFIX

    Hello

    What version are you?

    Of PSU100 FDMEE offers new features to run Scripts before and after loading calculation and after consolidating.

    You can pass parameters to your calculation script using new Variables of Substitution Essbase Runtime. In any case, I recommend having the latest patch that you are able to switch next year as a parameter to the calculation script.

    In case you want to use the period and year as parameters to your POV in FDMEE, your script could be built as:

    ESS_LOCALE English_UnitedStates.Latin1@Binary

    /*******************************************************************************************

    / * Runtime Substitution variables

    /*******************************************************************************************

    SET RUNTIMESUBVARS

    {

    &CurYr;

    &CurPe;

    };

    /*******************************************************************************************

    / * Parameters of calculation

    ********************************************************************************************/

    UPDATECALC OFF SET;

    SET CACHE HIGH;

    SET CALCPARALLEL 3;

    SET AGGMISSG

    / * Perform calculations

    ********************************************************************************************/

    FIX (& CurYr & CurPe, 'Final')

    CLEARDATA "real."

    ENDFIX

    You can configure your script with other parameters such as the scenario or Version and their past as POV or static values.

    The administration guide has all the details for the Use of calculation Scripts section

    There are a few details in the following post: fishing with FDMEE: FDMEE 1st exit (11.1.2.3.100)

    Hope that helps

  • How to hide the password in the event FDMEE script

    Hello

    I have a script of the event (AftImport.py) implemented in FDMEE. In the script, I have a line to connect to the base:

    sourceConn = sql. DriverManager.getConnection ("jdbc:oracle:thin:@abcd1234.vci.att.com:1521:FCMTEST", "SWUSER", "pw5678");

    In this example, pw5678 is the password of the user SWUSER to connect to the base. For safety reason is there a way to hide the password pw5678 in this script?

    Thank you!

    Hongfei (AT & T)

    Hello

    your security policies are too strong?

    There are different ways to do this. Some of them:

    -Use of Base64 encode/decode (you have the details on our google friend)

    -Store the password in the system environment variable and get this value from the script

    -With the help of related SQL Server/Oracle DB Link + synonyms. Using this approach avoid you opening connections of the scripts as we shall delete your database / tables as objects of FDMEE and the FDMEE databases is accessible from scripts without having to open the connection.

    Different solutions, different ways of hacking password if someone has access to the script. So based on your security policies, you need to find the best solution.

    See you soon

    Francisco

  • How do reference a value in the ATTR5 column from a mapping FDMEE Script?

    OK, I think I thought about it:

    In Jython his:

    fdmRow.getString ("ATTR5")

    Post edited by: Robb Salzmann - figured it out.  I thought I want to leave here in case someone else had the same question.  Still available for other answers and suggestions :) points

    Hello

    There are a few points not specified in your question:

    * How to reference the ATTR5 column in the strRecord mapping FDMEE Import Script argument?

    -There are no FDMEE mapping import Scripts. You have FDMEE mapping of Scripts and Scripts to import FDMEE. They are different types of scripts

    -strRecord is used in the Import Script. Is the 2nd parameter of the import script works... def funcname (param1, param2):

    -ATTR5 is a column in table TDATASEG. It is accessible in the FDMEE mapping using fdmRow.getString("ATTR5") or simply ATTR5 scripts if you use #SQL mappings

    If it was your original question, or you have any other problem?

    Concerning

  • Where the event FDMEE Script parameters are recorded?

    New to FDMEE and want to create a Script of the event... but are not a success if make them run.  Just indicages newspaper that "the script doesn't have to run.  I know that the previous output scripts each has specific settings, but cannot find where all parameters are required or documented in the admin FDMEE guides.

    Ok

    You don't need to declare the variable in the script of the BefImport event.

    You need a function in your import script. For example if you apply an import script to the account dimension:

    numLinesSkipped = 0

    def accCounteSkipLines (strField, strRecord):

    global numLinesSkipped

    numLinesSkipped += 1

    back strField #return account

  • Card FDMEE script depends on the location

    Hello. Try to do a mapping of Jython script in 11.1.2.3.510 (a place is a parent of another and need a few lines to be unique between them) based on the location (partition key):

    x = fdmRow.getString ["PARTITIONKEY"]

    If x is 11:

    fdmResult = "USD".

    Elif x is 10:

    fdmResult = "CAD".

    When I try to import a file, I get this message:

    File '< string >", line 1, in < module >

    TypeError: 'instancemethod' object is unsubscriptable

    Any thoughts?

    Eric

    Replace the brackets in the first line with normal brackets namely x = fdmRow.getString ("PARTITIONKEY")

  • Jython FDMEE script problem

    Hello

    I have a custom jython script to convert table data into a text file. This works for a table. But I tried to use lists and tables so that I can have several files of several tables. This script, by creating multiple files, retrieves only the data of the last file. All other files remain as 0 KB files with no data. I see here only data for CH, AC in the file is a 0 KB file. If I have the list with "AC" Member, then I see data for AC. Can someone let me know what I'm missing here in logic.


    List = ['AC', 'CH']

    Conn = sql. DriverManager.getConnection (strJDBCURL, strUserName, strPassword)
    for the list item [:]:

    Represented = fdmContext ["INBOXDIR"] + "/" + item + "export.txt"
    SRC = open (represented, "w")
    SqlString = conn.createStatement)

    sqlstmt = 'SΘlectionner the SOURCE, TARGET of TEST_' + point + 'EXPORT '.
    result = sqlstring.executeQuery (sqlstmt)

    While (result. Next()):
    SOURCE = result.getString ("SOURCE")
    TARGET = result.getString ("TARGET")

    Print > > src, SOURCE, TARGET

    CBC. Close()
    Conn.Close)

    Hi, I skimmed the code last night and missed the second loop. I think that the problem actually comes from your indentention that is the while loop is not currently incorporated in the for loop runs but after the because the loop is complete, the code must be

    List = ['AC', 'CH']

    Conn = sql. DriverManager.getConnection (strJDBCURL, strUserName, strPassword)
    for the list item [:]:

    Represented = fdmContext ["INBOXDIR"] + "/" + item + "export.txt"
    SRC = open (represented, "w")
    SqlString = conn.createStatement)

    sqlstmt = 'SΘlectionner the SOURCE, TARGET of TEST_' + point + 'EXPORT '.
    result = sqlstring.executeQuery (sqlstmt)

    While (result. Next()):
    SOURCE = result.getString ("SOURCE")
    TARGET = result.getString ("TARGET")
    print > src, SOURCE, TARGET

    CBC. Close()

    Conn.Close)

    Only try.

  • FDMEE: Eclipse in java script error null pointer

    Hello

    I am a user of first time write jython scripts. I could write the script to import in FDMEE without any problem. I want to write a custom script that I will need to call after the batch. I use Eclipse to write a custom script. I started with a simple script, but it gives me java runtime error. Here is the script

    import com.hyperion.aif.scripting.API API

    fdmAPI = API()

    fdmAPI.logInfo ("Hello")

    gives error below

    fdmAPI.logInfo ("Hello")

    at com.hyperion.aif.scripting.API.getProcessLogFile(API.java:936)

    at com.hyperion.aif.scripting.API.logInfo(API.java:177)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    java.lang.NullPointerException: java.lang.NullPointerException

    I added the jar files aif - apis.jar, FIA - custom.jar. I have also included the ojdl.jar file in the project.

    The above script fails in FDMEE too.

    Any help would be greatly appreciated. Thank you.

    You don't need to initialize the object API in the FDMEE script:

    import com.hyperion.aif.scripting.API API

    fdmAPI = API()

    fdmAPI.logInfo ("Hello")

  • fdmContext in a custom script

    Hello everyone,

    I'm faced with a problem on a custom in FDMEE script.

    I have a custom jython script that calls an ODI scenario. My problem is how to move the POV selected in fdm to the ODI scenario? I need to get information from the period inside my ODI package.

    POV_Selected.PNG

    How can I achieve this?

    Thank you very much!!!

    Best regards

    Eduardo Almeida

    Your other question is that fdmContext will not be initialized in a custom script. If you need to get the FDMEE period in the scenario ODI, you must configure a custom script parameter that evaluates to FDMEE period POV as input that you can then recover in your script that is customized by using the following API - fdmAPI.getCustomScriptParameterValue ("ParameterName")

    You'd then this value as a variable argument to the ODI scenario

  • FDMEE to call bat since another box

    Hi team,

    I wrote a custom script that will call a file residing on the server FDMEE and run the batch file. My client needs to call a batch residing in another server (not FDMEE) and run a custom script FDMEE.

    Can we call a batch sitting in another server using a custom script FDMEE. Please notify. Waiting for your valuable comments.

    Kind regards

    Laetitia Rasheed

    Your goal: use a custom FDMEE script to call a file of commands on another server.

    Be the batch script (A) required to run on the X Server or (B) can it run on the server FDMEE?  If (B), could not simply execute the package by using the UNC path to invoke the command?  The call might look like the following -------\D$\EPM\TaskAutomation\FDMEE_Run.bat.

    Now, if you go to (A), you can configure a file go (trigger) to start the process to run.

    (1) batch file folder of X on X server for a file server monitors to go.

    (2) FDMEE custom script on FDMEE Server triggers, writing a file go to the X server.

    (3) batch file on Server X sees go file and begins the process on the X server.

    Good luck.

  • Integrations of data FDMEE to Hyperion Financial Management

    Hello Experts,


    I do an integration of Oracle DB with HFM tables using Open Interface adapter.


    How should implement us this in FDMEE?


    Please advice.


    Thank you

    You do not use import scripts (it was only an FDM option when you need to directly load information from an RDBMS instead of a file), you use the open Interface Adapter (OIA). Take a look in the FDMEE Administrator's guide because it has a section on the use of OIA. Essentially, you will need to complete the AIF_OPEN_INTERFACE table with the data in your source database tables. You can do this in a number of ways i.e. event in FDMEE script, ODI etc. See the Administrator's guide

  • FDMEE in SEEP - how it clears the data prior to loading?


    Hello

    With the help of SEEP FDMEE.   I'm confused or maybe it's just very limited.  Normally before loading real data, I would like to start a clear script to ensure my real-> final-> CurMo-> & CurYr intersections are completely erased.   I was using FDMEE in 11.1.2.3 a bit back and I remember there was a way to run a calc script before loading data via FDMEE.   This feature is disabled in the version of SEEP?   If not is the only way to create a business rule and have users who run before loading data via FDMEE manually?

    Thank you

    The feature of calc FDMEE script disappeared. There is no script calc SEEP in, as there is no access to Essbase Native.

    Using the EMP tool automate you can run a business rule in place and then perform your charge.

Maybe you are looking for