FDM batch loader script

x
Edited by: user2657915 on Apr 16, 2012 10:15 AM

Yes, you can use the batch loader to execute a SQL integration Script that is assigned to a location for import. You would create a blank text document with the proper file naming convention for batch files as noted in the FDM administrator guide and then place the files in OpenBatch and execute the batch via script or the GUI in the workbench. It will go to this POV and execute the Integration Script assigned to the location.

Similar Messages

  • Batch load script for Order Management with Oracle R12 EBS

    Hello,
    I am looking for a way to load a million dummy test records into Order Management. For example, I would like to automate a batch process to generate a million new sales orders for Oracle 12.1.1 EBS on Linux platform. If anyone has an idea on how to script this, would appreciate your help.

    Two questions:
    1. How would I modify the following script to generate a million new orders for OM:
    2. How can I register and create a concurrent program with the script?
    SET SERVEROUTPUT ON;
    DECLARE
    v_api_version_number NUMBER := 1;
    v_return_status VARCHAR2(2000);
    v_msg_count NUMBER;
    v_msg_data VARCHAR2(2000);
    -- IN Variables --
    v_header_rec oe_order_pub.header_rec_type;
    v_line_tbl oe_order_pub.line_tbl_type;
    v_action_request_tbl oe_order_pub.request_tbl_type;
    v_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    -- OUT Variables --
    v_header_rec_out oe_order_pub.header_rec_type;
    v_header_val_rec_out oe_order_pub.header_val_rec_type;
    v_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    v_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    v_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    v_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    v_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    v_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    v_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    v_line_tbl_out oe_order_pub.line_tbl_type;
    v_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    v_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    v_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    v_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    v_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    v_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    v_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    v_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    v_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    v_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    v_action_request_tbl_out oe_order_pub.request_tbl_type;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Starting of script');
    -- Setting the Enviroment --
    mo_global.init('ONT');
    fnd_global.apps_initialize ( user_id => 123
    ,resp_id => 456
    ,resp_appl_id => 789);
    mo_global.set_policy_context('S',785);
    -- Header Record --
    v_header_rec := oe_order_pub.g_miss_header_rec;
    v_header_rec.operation := oe_globals.g_opr_create;
    v_header_rec.order_type_id := 1005;
    v_header_rec.sold_to_org_id := 7157;
    v_header_rec.ship_to_org_id := 5480;
    v_header_rec.invoice_to_org_id := 5181;
    v_header_rec.order_source_id := 0;
    v_header_rec.booked_flag := 'N';
    v_header_rec.price_list_id := 7018;
    v_header_rec.pricing_date := SYSDATE;
    v_header_rec.flow_status_code := 'ENTERED';
    v_header_rec.cust_po_number := '99478222532';
    v_header_rec.sold_from_org_id := 83;
    v_header_rec.salesrep_id := -3;
    v_header_rec.transactional_curr_code:= 'GBP';
    v_action_request_tbl (1) := oe_order_pub.g_miss_request_rec;
    -- Line Record --
    v_line_tbl (1) := oe_order_pub.g_miss_line_rec;
    v_line_tbl (1).operation := oe_globals.g_opr_create;
    v_line_tbl (1).inventory_item_id := 27893;
    v_line_tbl (1).ordered_quantity := 1;
    v_line_tbl (1).unit_selling_price := 2000;
    v_line_tbl (1).calculate_price_flag := 'Y';
    DBMS_OUTPUT.PUT_LINE('Starting of API');
    -- Calling the API to create an Order --
    OE_ORDER_PUB.PROCESS_ORDER (
    p_api_version_number => v_api_version_number
    , p_header_rec => v_header_rec
    , p_line_tbl => v_line_tbl
    , p_action_request_tbl => v_action_request_tbl
    , p_line_adj_tbl => v_line_adj_tbl
    -- OUT variables
    , x_header_rec => v_header_rec_out
    , x_header_val_rec => v_header_val_rec_out
    , x_header_adj_tbl => v_header_adj_tbl_out
    , x_header_adj_val_tbl => v_header_adj_val_tbl_out
    , x_header_price_att_tbl => v_header_price_att_tbl_out
    , x_header_adj_att_tbl => v_header_adj_att_tbl_out
    , x_header_adj_assoc_tbl => v_header_adj_assoc_tbl_out
    , x_header_scredit_tbl => v_header_scredit_tbl_out
    , x_header_scredit_val_tbl => v_header_scredit_val_tbl_out
    , x_line_tbl => v_line_tbl_out
    , x_line_val_tbl => v_line_val_tbl_out
    , x_line_adj_tbl => v_line_adj_tbl_out
    , x_line_adj_val_tbl => v_line_adj_val_tbl_out
    , x_line_price_att_tbl => v_line_price_att_tbl_out
    , x_line_adj_att_tbl => v_line_adj_att_tbl_out
    , x_line_adj_assoc_tbl => v_line_adj_assoc_tbl_out
    , x_line_scredit_tbl => v_line_scredit_tbl_out
    , x_line_scredit_val_tbl => v_line_scredit_val_tbl_out
    , x_lot_serial_tbl => v_lot_serial_tbl_out
    , x_lot_serial_val_tbl => v_lot_serial_val_tbl_out
    , x_action_request_tbl => v_action_request_tbl_out
    , x_return_status => v_return_status
    , x_msg_count => v_msg_count
    , x_msg_data => v_msg_data
    DBMS_OUTPUT.PUT_LINE('Completion of API');
    IF v_return_status = fnd_api.g_ret_sts_success THEN
    COMMIT;
    DBMS_OUTPUT.put_line ('Order Import Success : '||v_header_rec_out.header_id);
    ELSE
    DBMS_OUTPUT.put_line ('Order Import failed:'||v_msg_data);
    ROLLBACK;
    FOR i IN 1 .. v_msg_count
    LOOP
    v_msg_data := oe_msg_pub.get( p_msg_index => i, p_encoded => 'F');
    dbms_output.put_line( i|| ') '|| v_msg_data);
    END LOOP;
    END IF;
    END;
    /

  • FDM Batch Loader Error

    Hello,
    I'm getting an error when trying to run a script from outside FDM workbench. The script works fine inside workbench and it's almost entirely copied out of the documentation.
    Script
    Sub autoload()
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim EssbaseFilePath
    Dim BATCHENG
    Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
    BATCHENG.mInitialize API, SCRIPTENG
    lngProcessLevel = 10 'up to export
    strDelimiter= "_"
    blnAutoMapCorrect = False
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    'single processing
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel) ,, CBool(blnAutoMapCorrect)
    End Sub
    Batch
    C:\Hyperion\UpStream\WebLinkDataMart\SharedComponents\upsShell.exe CustomScriptEx=HFM2Ess2~<user>~<password>~<loadbalancer>~"e:\log"~autoload~LanguageCode=1033~EncodeUnicode=0
    Error
    ** Begin FDM Runtime Error Log Entry [7/26/2011 1:01:24 PM] **
    ERROR:
    Code............ 438
    Description..... Object doesn't support this property or method
    Procedure....... clsBlockProcessor.ActExport
    Component....... upsWBlockProcessorDM
    Version......... 920
    Thread.......... 38140
    IDENTIFICATION:
    User............<ADMIN>
    Computer Name... <SERVER>
    App Name........ <APP>
    Client App...... BatchEngine
    ** Begin FDM Runtime Error Log Entry [7/26/2011 1:01:24 PM] **
    ERROR:
    Code............ 438
    Description..... File [a_Essbase_FDMActual_Apr–2011_RA.dat] Caused - Object doesn't support this property or method
    Procedure....... clsBatchLoader.mFileCollectionProcess
    Component....... upsWBatchLoaderDM
    Version......... 920
    Thread.......... 33432
    My goal is to just create a simple automated process that will grab files from the openbatches directory but I'm kind of stuck as to why this would run fine in work bench but throw errors from outside using the syntax provided in the API / Admin guide...
    Edited by: user13048127 on Jul 26, 2011 12:58 PM

    You're right. It does appear to be failing at the export step even when stepping through the process manually from the web interface.
    It is generating a different error when doing that though:
    ** Begin Runtime Error Log Entry [7/27/2011 9:16:56 AM] **
    ERROR:
    Code............ 2500
    Description..... [EsbPutObject] Threw Code=
    Procedure....... clsHPDataManipulation.fCopyToServer
    Component....... upsEB7XG
    Version......... 100
    Thread.......... 35588
    ** Begin FDM Runtime Error Log Entry [7/27/2011 9:16:57 AM] **
    ERROR:
    Code............ 4100
    Description..... Stream Failed, Invalid file path provided!
    \\<server>\fdmdata\HFM2Ess2\HFM2Ess2\Data\33.ua2
    Procedure....... clsAppServer.fFileGetStream
    Component....... upsAppSv
    Version......... 920
    Thread.......... 38304
    In this situation the application is looking for a 33.ua2 file but there is only a 33.ua1 file in the directory... this was reproduceable (but with different numbers for the files e.g. 26.ua1 is present but it was looking for 26.ua2).
    I'm a little confused as to why the application would be looking for a file name different than the file generated.
    Could this be related to permissions or access?

  • Folder and Sub-Folder Batch load Script

    What I'm looking for I'm not ever sure is possible, but what I need is a script that will search for predefined sub-folder names within a specific "root" folder and run a script I have to load those images into a Photoshop document found within the root folder.  When loading these images, it will also need to place the images into a specific group within the Photoshop document, depending on the sub-folder that contained them.  So images in the sub-folder "A" need to be loaded into the group "A" in the Photoshop document, images in sub-folder "B" into group "B" and so-on.  The number and name of images within the sub-folders are, however, random; so this would also need to be accounted for.  Additionally, if possible, I would like the script to ask the user to locate this root folder each time before proceeding; otherwise, if not possible, a static folder location can also be used.  Thanks for any help!
    dgolberg

    Profile-mismatches as in: When the container document and the image to be placed are of different Color Spaces (different ICC-profiles).
    Could you give this a try (on a copy of your files naturally); it places as Smart Objects (depending on your Photoshop > Preferences > General settings), but you could always rasterize after the import or chenge the preference in the Scripts and reset it at the end:
    // place png-files from a folder and its contained folders with groups to represent those in jpg-files;
    // 2011, use it at your own risk;
    #target photoshop
    // select folder;
    var theFolder = Folder.selectDialog ("select folder");
    if (theFolder) {
    // get the jpgs;
    var theJpgs = getJpgFiles(theFolder);
    // iterate through the jpg files;
    for (var m = 0; m < theJpgs.length; m++) {
    var theDoc = app.open(new File(theJpgs[m]));
    // thanks to xbytor;
    var theName = theDoc.name.match(/(.*)\.[^\.]+$/)[1];
    // place the png-files in groups coresponding to the folders;
    placeFolderFiles(theFolder, theDoc, theName)
    ////// ceck for jpgs //////
    function checkJpg (theFile) {
        if (theFile.name.match(/\.(jpg)$/i)) {
            return true
    ////// ceck for pngs //////
    function checkPng (theFile) {
        if (theFile.name.match(/\.(png)$/i)) {
            return true
    ////// place //////
    function placeScaleFile (file, xOffset, yOffset, theScale) {
    // =======================================================
    var idPlc = charIDToTypeID( "Plc " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc5.putPath( idnull, new File( file ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc5.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc6 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idHrzn, idPxl, xOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idVrtc, idPxl, yOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc5.putObject( idOfst, idOfst, desc6 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idWdth, idPrc, theScale );
        var idHght = charIDToTypeID( "Hght" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idHght, idPrc, theScale );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc5.putBoolean( idLnkd, true );
    executeAction( idPlc, desc5, DialogModes.NO );
    return app.activeDocument.activeLayer;
    ////// place images in folder and contained folders //////
    function placeFolderFiles (theFolder, theContainer, theName) {
              var theContent = theFolder.getFiles();
              for (var n = theContent.length - 1; n >= 0; n--) {
                        var theObject = theContent[n];
                        if (theObject.constructor.name == "Folder") {
                                  var aFolder = theContainer.layerSets.add();
                                  aFolder.name = Folder(theContent[n]).name;
                                  placeFolderFiles(theObject, aFolder, theName)
                        if (checkPng(theObject) == true && theObject.name.match(theName)) {
                                  var theLayer = placeScaleFile(theObject, 0, 0, 100);
                                  theLayer.name = File(theObject).name;
                                  theLayer.move(theContainer, ElementPlacement.PLACEATBEGINNING)
    ////// place images in folder and contained folders //////
    function getJpgFiles (theFolder) {
              if (!theArray) {var theArray = new Array};
              var theContent = theFolder.getFiles();
              for (var n = theContent.length - 1; n >= 0; n--) {
                        var theObject = theContent[n];
                        if (theObject.constructor.name == "Folder") {
                                  theArray = theArray.concat(getJpgFiles(theObject))
                        if (checkJpg(theObject) == true) {
                                  theArray.push(theObject)
              return theArray

  • FDM Multiload Batch loader issue

    Hi All,
    I need help in Multiload Batch load process. I am working on FDM 11.1.2.1. We need to move data of 6 months. I am using comma separated Text file for this purpose.
    When I am loading it through FDM user interface, it is fine (It is generating 1 export file for all 6 months with diffrent combination) but If I am trying to run it through FDM Batch load for Multiload it is generating the 6 export files and loading one by one (Which I don't want).
    I want one export file generated for all month. Is there any setting by which FDM will stop multiple Export file generation for diffrent month.
    Remaining process is Working fine if I am loading manually through FDM web.
    Thanks,
    Shivendra

    Hi Shivendra
    Unfortunately I think it is a "feature" of batch processing.
    When processing multi-load files manually through FDM a text multiload source file produces a single export file while an excel multiload source file produces a separate export file for each period in the source file.
    With batch processing unfortunately both types of source file behave the same as the manual excel way.
    One option that may help you is parallel processing in the batch? Be warned though, that may not help either as the parallel processing will queue files for the same POV (I think from memory it treats different periods for the same location/category as the same POV in parallel processing so if you are loading say 12 periods for the same location/category you may not gain anything in parallel processing).
    Hope this helps
    Stuart

  • Batch Loader is not working

    Hi,
    I am using UCM on weblogic 10.3 and trying to upload contents through Batch Loader. Today while running the Batch Loader script i am getting the below exceptions. thx in advance.
    Output of version and java home is as below:
    [wlsuser@locadelvmpmodev bin]$ echo $JAVA_HOME
    [wlsuser@locadelvmpmodev bin]$ java -version
    java version "1.6.0_25"
    Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
    ==========================
    java.lang.UnsatisfiedLinkError: /u04/Oracle/Middleware/Oracle_ECM/ucm/idc/components/NativeOsUtils/lib/linux64/7.2.1.0/libJniNativeOsUtils.so: /u04/Oracle/Middleware/Oracle_ECM/ucm/idc/components/NativeOsUtils/lib/linux64/7.2.1.0/libJniNativeOsUtils.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    java.lang.UnsatisfiedLinkError: /u04/Oracle/Middleware/Oracle_ECM/ucm/idc/components/NativeOsUtils/lib/linux64/7.2.1.0/libJniNativeOsUtils.so: /u04/Oracle/Middleware/Oracle_ECM/ucm/idc/components/NativeOsUtils/lib/linux64/7.2.1.0/libJniNativeOsUtils.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.loader.IdcClassLoader.invokeMain(IdcClassLoader.java:337)
    at intradoc.loader.IdcClassLoader.startMain(IdcClassLoader.java:170)
    at intradoc.loader.IdcClassLoader.main(IdcClassLoader.java:140)
    Caused by: java.lang.AssertionError: !syNativeOsUtilsNotLoaded
    at intradoc.common.NativeOsUtilsBase.doLoad(NativeOsUtilsBase.java:386)
    at intradoc.common.NativeOsUtilsBase.<init>(NativeOsUtilsBase.java:352)
    at intradoc.common.NativeOsUtils.<init>(NativeOsUtils.java:26)
    at DynamicConverterInstallerFilter.initEnvironmentVariables(DynamicConverterInstallerFilter.java:283)
    at DynamicConverterInstallerFilter.initEnvironmentVariables(DynamicConverterInstallerFilter.java:207)
    at DynamicConverterInstallerFilter.doFilter(DynamicConverterInstallerFilter.java:61)
    at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:114)
    at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
    at intradoc.server.IdcExtendedLoader.executeFilter(IdcExtendedLoader.java:462)
    at intradoc.server.IdcExtendedLoader.extraAfterConfigInit(IdcExtendedLoader.java:152)
    at intradoc.server.IdcSystemLoader.extraAfterConfigInit(IdcSystemLoader.java:481)
    at intradoc.server.IdcSystemLoader.finishInit(IdcSystemLoader.java:463)
    at intradoc.server.IdcSystemLoader.init(IdcSystemLoader.java:336)
    at intradoc.apps.shared.StandAloneApp.initSystem(StandAloneApp.java:276)
    at intradoc.apps.shared.StandAloneApp.init(StandAloneApp.java:112)
    at intradoc.apps.shared.AppLauncher.init(AppLauncher.java:234)
    at BatchLoader.main(BatchLoader.java:82)
    ... 7 more
    Caused by: java.lang.UnsatisfiedLinkError: intradoc.common.NativeOsUtilsBase.getNativeVersion()Ljava/lang/String;
    at intradoc.common.NativeOsUtilsBase.getNativeVersion(Native Method)
    at intradoc.common.NativeOsUtilsBase.doLoad(NativeOsUtilsBase.java:382)
    ... 23 more
    =====================

    thx Jiri for your response but issue has been resolved. Actually earlier everything was working fine but all of sudden that day it stopped working. If you see the exceptions where it was referring "libJniNativeOsUtils.so" was 64 bit and when i replaced that with 32 bit, it started working.
    It really surprises me why and how it got changed but and how everything was working earlier :)
    thx anyways.
    ajay

  • Batch Load Skip Files

    I have a strange case of file being skipped when I am doing a batch load. We are loading historical data from Dec-2010 to Aug-2012. Data is split into one file per periode(month). What happens when I run the batch load script is that all files load perfectly, expect files containing data from May (2011 & 2012) and October (2011).
    I have tried to run a batch with only the files from May and October and then batch process skips completly.
    Is there any setting that might have been set that can cause this behavior or anything else that I should examine. Any help or clue will be much appreciated.

    File name convention is kept and the content of the file are good, if I change May-2011 to Apr-2011 and thereby load May's data into April it works just fine. Have also tried renaming Apr-2011 file to May-2011 and then it is skipped as well. Manual import of the files that are skipped works wihtout problem.
    When running just the files that are being skipped, I had the script write the count of files in the batch collection and that part of the process picks up the correct number of files, in this case 3, but then they are skipped in the batch execute step.
    Can this have something to do with Metadata setting in HFM? Problem started after Metadata was changed in HFM and thus we had to load all historical data again. Before that it loaded fine to May and October. At least I don't remember having this problem before.

  • Batch Loader Email

    I am using a process method of serial and I have an email notification code in the batch loader script that is sent out to the admin. The email notifcation has a message based on the Process State. If I am testing with one file, the email sent with no issues. If am testing multiple files, the email is sent out when the last file is loaded. I would like an email sent out to the admin after every file is loaded.
    Any suggestions are appreciated.

    Yes, I follow you and that's a problem with writing the e-mail notification from within the Batch Loader script that you created.
    If you wan to do this in the Batch Loader script that you've made, then you would need to call the BATCHENG for the current BatchID and then call the recordset to list the files collected during the BATCHENG process. Then once you have the list of files, you can do a loop to trigger nofication for each file. I won't be able give you source code for this, but if you go through the Supplemental API in the workbench, it has everything you need.
    For example, calling "farsFileListforBatchID" will return a list of all files for the specified BatchID. This works for SERIAL running batches, but there are some issues when running in Parallel.

  • Execute calc script before batch load

    Hi
    I use FDM ERPI to load data from Oracle EBS R12 into Hyperion Planning 11.1.2
    I use batch loader to load several locations.
    How could I execute a Essbase calc script before the import process, so before the first load?
    Thanks in advance for your help
    Fanny

    Sorry, but I have searched in this forum.
    I have found topics about how to execute calc script after the load, but nothing (at least I have not found) about calc script befort many load via batch loader.
    So if someone can give me some clues...
    thanks!
    Fanny

  • Using FDM to load data from oracle table (Integration Import Script)

    Hi,
    I am using Integration Import Script to load data from oracle table to worktables in FDM.
    i am getting following error while running the script.
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done
    Attaching the full error report
    ERROR:
    Code............................................. -2147217887
    Description...................................... Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    At line: 22
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 6260
    IDENTIFICATION:
    User............................................. ******
    Computer Name.................................... *******
    App Name......................................... FDMAPP
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... DBNAME
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... SCRTEST
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... FDM ACTUAL
    Category ID...................................... 13
    Period........................................... Jun - 2011
    Period ID........................................ 6/30/2011
    POV Local........................................ True
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    I am using the following script
    Function ImpScrTest(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    'Oracle Hyperion FDM Integration Import Script:
    'Created By:     Dhananjay
    'Date Created:     1/17/2012 10:29:53 AM
    'Purpose:A test script to import data from Oracle EBS tables
    Dim cnSS 'ADODB.Connection
    Dim strSQL 'SQL string
    Dim rs 'Recordset
    Dim rsAppend 'tTB table append rs object
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
    'Connect to SQL Server database
    cnss.open "Provider=OraOLEDB.Oracle.1;Data Source= +server+;Initial Catalog= +catalog+;User ID= +uid+;Password= +pass+"
    'Create query string
    strSQL = "Select AMOUNT,DESCRIPTION,ACCOUNT,ENTITY FROM +catalog+.TEST_TMP"
    'Get data
    rs.Open strSQL, cnSS
    'Check for data
    If rs.bof And rs.eof Then
    RES.PlngActionType = 2
    RES.PstrActionValue = "No Records to load!"
    Exit Function
    End If
    'Loop through records and append to tTB table in location’s DB
    If Not rs.bof And Not rs.eof Then
    Do While Not rs.eof
    rsAppend.AddNew
    rsAppend.Fields("PartitionKey") = RES.PlngLocKey
    rsAppend.Fields("CatKey") = RES.PlngCatKey
    rsAppend.Fields("PeriodKey") = RES.PdtePerKey
    rsAppend.Fields("DataView") = "YTD"
    rsAppend.Fields("CalcAcctType") = 9
    rsAppend.Fields("Amount") = rs.fields("Amount").Value
    rsAppend.Fields("Desc1") = rs.fields("Description").Value
    rsAppend.Fields("Account") = rs.fields("Account").Value
    rsAppend.Fields("Entity") = rs.fields("Entity").Value
    rsAppend.Update
    rs.movenext
    Loop
    End If
    'Records loaded
    RES.PlngActionType = 6
    RES.PstrActionValue = "Import successful!"
    'Assign Return value
    SQLIntegration = True
    End Function
    Please help me on this
    Thanks,
    Dhananjay
    Edited by: DBS on Feb 9, 2012 10:21 PM

    Hi,
    I found the problem.It was because of the connection string.The format was different for oracle tables.
    PFB the format
    *cnss.open"Provider=OraOLEDB.Oracle.1;Data Source= servername:port/SID;Database= DB;User Id=aaaa;Password=aaaa;"*
    And thanks *SH* for quick response.
    So closing the thread......
    Thanks,
    Dhananjay

  • FDM/ERPi Batch Loader Error

    Hello,
    I have set up FDM with the ERPi adapter and I can successfully import data via the FDM web. I have several locations set up to import from multiple ledgers so I would like to set up a batch process to do this. To test this, per the documentation I created a blank file with the appropriate name convention and but it in the OpenBatch folder. When I kicked off the batch process it failed with the message:
    "one or more processes failed to start, please see batch reports or error log"
    When I checked the server, the file was moved from the OpenBatch folder to a folder with a unique name (as expected).
    Here is the output from the error log:
    ** Begin FDM Runtime Error Log Entry [2012-05-09 19:08:30] **
    ERROR:
    Code............................................. -2147286781
    Description...................................... Can't save. - Parallel Process ID=1
    Procedure........................................ clsBatchLoader.ExecuteProcessShell
    Component........................................ upsWBatchLoaderDM
    Version.......................................... 1112
    Thread........................................... 2356
    IDENTIFICATION:
    User............................................. [username]
    Computer Name.................................... PHX1-EPMTS01
    App Name......................................... Finreporting
    Client App....................................... WorkBench
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... epmdev
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... SAMPLE
    Location ID...................................... 748
    Location Seg..................................... 2
    Category......................................... ACTUAL
    Category ID...................................... 13
    Period........................................... Feb - 2012
    Period ID........................................ 2/29/2012
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    ** Begin FDM Runtime Error Log Entry [2012-05-09 19:08:32] **
    ERROR:
    Code............................................. 1000
    Description...................................... Parallel process shell [1] failed to start
    Procedure........................................ clsBatchLoader.mFileCollectionProcessParallel
    Component........................................ upsWBatchLoaderDM
    Version.......................................... 1112
    Thread........................................... 2356
    IDENTIFICATION:
    User............................................. [username]
    Computer Name.................................... PHX1-EPMTS01
    App Name......................................... Finreporting
    Client App....................................... WorkBench
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... epmdev
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... SAMPLE
    Location ID...................................... 748
    Location Seg..................................... 2
    Category......................................... ACTUAL
    Category ID...................................... 13
    Period........................................... Feb - 2012
    Period ID........................................ 2/29/2012
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Any guidance for where to direct my troubleshooting (or fix) would be appreciated.
    Thanks

    I used serial batch load. Some progress I have made is that the admin account can successfully run the batch load on server itself. So it seems as if I there is a folder I need write permissions to that I don't have. Currently I have write access to (via a share) the folder for the FDM application I am loading and all its subfolers. Still trying to figure out what additional write privileges I need to get.
    Any help would be appreciated.

  • Problem with Batch Loader and FDM user regional settings

    Hi
    I am using FDM 11.1.2.1.
    When I use the English regional settings for my FDM user account, I can do Export Excel from FDM, but Batch Loader doesn't work (Error : "one or more parallel processes failed to start).
    When I use the French regional settings for my FDM user account, Export to Excel doesn't work anymore (Error: Conversion from string "12.0" to type 'Long' is not valid. Detail: InnerException1: Input string was not in a correct format.), but the Batch loader is ok.
    Any idea?
    Thanks in advance for your help
    Fanny

    Hi Mittal,
    By default, formats for date is determined by the report server language at run time. The report server language is the language of the operating system on which the report server is installed. So the formats for date is determined by the language of the
    operating system on which the report server is installed.
    When you deploy the report to SharePoint site that the regional setting is set to English (Australia), please also set the report language to ‘en-AU’. Then the date format can be also changes to English (Australia).
    If the issue is still exited, could you please tell us the date format of date parameters and the field? If possible, please post the screenshot about this, then we can make further analysis.
    Reference:
    Solution Design Considerations for Multi-Lingual or Global Deployments (Reporting Services)
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Loading file in Merge Mode through the batch loader in FDM

    Hi,
    I have multiple locations loading in replace mode and 1 location loading in merge. We are using the batch loader and following the naming convention specified in the admin guide. Is there a way to specify in the location name to load the file to HFM in merge mode, or does that location need a seperate adapter with the load rule set to merge?
    Any assistance would be greatly appreciated

    You dont need a spearate adaptor. You can achieve this by changing the naming of the files. I believe u currently use RR option for replacing the data. (seq_<Location>_<Category>_<Peiod>_RR.txt). You can use A or R appropriately in your load method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • The wonderful world of Batch Loading - what's going on?

    Hi,
    I'm having an issue with the batch loader. When I load a file using batch loader and the the same file manually executing the workflow I get two different datasets at the import stage. I have a single import script and it seems that it doesn't execute properley when the file is loaded via the batch loader but does when I perform a manual import. I can't think of any logical reason for this. The script is getting executed but only partially when the batch load is run. I make use of a FDM temporary variable in the script RES.PvarTemp1, and this is the only thing I can think of that may be failing. Do these work when the batch load is run? Has anyone else experienced similar problems with the batch loader and import script execution?
    Any ideas are very welcome :-)
    FDM version 11.1.1.3 by the way
    Edited by: SH on Mar 5, 2012 10:54 AM

    Is the iPhoto icon showing crossed out?  Like this?
    When you shot down your Mac, it may have installed a system update, that had been downloaded automatically.
    Which version of MacOS X are you currently running?  The newest MacOS X version 10.10.2 requires iPhoto 9.6.
    Try to download and install the newest iPhoto version from the App Store "Featured" page.

  • Create shortcut via batch loader or other API

    Does anyone know whether it is possible (and if so, how) to create shortcuts via batch loader?
    If this is not possible, is there an API which could do this?
    I will need to create a lot of shortcuts, so am looking for a way to do this in bulk, i.e. programmatically.
    Thanks,
    -paul

    (Please excuse if there is any mistakes. this is my first post)
    If you are using the FDM's Task manager for the Batch loading, Just have a lookinto that Script whcih you have scheduled for the Batch process. you will find below row in the script.
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), ,CBool(blnAutoMapCorrect)
    Assume you are loading Sigle file from "OpenBatch" folderwhen ever scheduler executes the script. If so replace the above as below.
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter), File1)
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), ,CBool(blnAutoMapCorrect)
    Where File1 = Path for the file name to be loaded. So that file will not be moved from the "OpenBatch" folder. then you can append below VB script to the existing script to rename the file name.
    Set FSO1 = CreateObject("Scripting.FileSystemObject")
    Set File1= FSO1.GetFile("<File Path>")
    File1.move ("New path")
    Where "File Path" = FDM Directory\FDM Application\Inbox\Batches\Openbatch\1_LocationA_WLACTUALS_Nov-2009_RR.txt
    "New Path" = FDM Directory\FDM Application\Inbox\Batches\Openbatch\1_LocationB_WLACTUALS_Nov-2009_RR.txt
    and use the Batch processing script Again.
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter), File2)
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), ,CBool(blnAutoMapCorrect)
    Here File2 is the path for new file (LocationB.)
    So that, You can get the Single file from the Source system and you can load to two locations at a time with in the Single execution of the script. and Also make sure to write a script to copy the new file from "OpenBatch" folder to backup location like Inbox or as required as this script will not move the file from the "OpenBatch" directory. (Move script as same as mentioned above)
    Reply me if you have any doubts....

Maybe you are looking for