How do I consolidate in FDM AFTER all files load to target?

Hi,
We are using FDM to import and export out to HFM forecasting data. The files are sent via ETL to the OpenBatch folder and then I am using parallel processing to import, validate, and consolidate the files to the target system, which is HFM. The problem is the performance. As each file is loaded using the batch loader script, it loads and consolidates each file as each file processes. I would like to find a way to load and export all files FIRST to HFM - and then when the last file is encountered (the 12th file), I would like to run a consolidate on the file to HFM so that the consolidation will consolidate all at once and help save some time. Here are the steps I would like to accomplish:
1. Import, Validate, and Export the first 11 files to HFM
2. Import, Validate, Export, and Consolidate the 12th file to HFM - the idea is that all previous 11 files will consolidate atone time instead of the out of the box way using the standard BatchLoader script.
Does anyone know HOW I can make this happen? Out of the box this is not possible without some major script customization. Could someone please give me some sort of idea where I can make this happen? I really appreciate the help. Below is the standard Batch Loader script I am using and I would like to somehow customize:
Sub webBatchStdParallel()
'Oracle Hyperion FDM CUSTOM Script:
'Parallel Processing
'STANDARD Batch Parallel Processing
'Declare Local Variables
Dim lngProcessLevel
Dim strDelimiter
Dim blnAutoMapCorrect
Dim lngParallelProcessCount
Dim strLoadBalanceServerName
Dim BATCHENG
Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
BATCHENG.mInitialize API, SCRIPTENG
'Initialize variables Variables
lngProcessLevel = 10                     'Up-To-Consolidate
strDelimiter = "_"                         'File Name Delimiter
blnAutoMapCorrect = True                    'Auto Map Correction is On
lngParallelProcessCount = 2                    'Number of Parallel Processes (Should equal # of Processors)
strLoadBalanceServerName = "Everest0555"     'Load balance server for parallel process
'Create the file collection
Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
'Execute a Standard Parallel batch
BATCHENG.mFileCollectionProcessParallel BATCHENG.PcolFiles, CLng(lngProcessLevel), CLng(lngParallelProcessCount), CStr(strLoadBalanceServerName), , CBool(blnAutoMapCorrect)
End Sub

Hi,
Thanks for all the input so far, I really appreciate it. I have made a lot of progress and added code to the batch loader script.
Again, What I am trying to do is load 12 forecasting files (Periodic) for each month through FDM and then load to HFM. After the load, I want to kick off the consolidation process to the target system (HFM) AFTER the data has been loaded through FDM to help speed up time by running the consolidation all at once in HFM instead of by each file one by one in FDM. Here is some more info:
1. I have 12 files loaded to the OpenBatch Folder - Each file is a monthly file.
2. The 12 files (Starting from November 2010 - Oct 2011) are exported and loaded to HFM. No consolidation takes place.
3. I want to add a procedure AFTER the load to run consolidation on the last file loaded (Oct. 2011) in HFM so the consolidation will kick off in HFM and consolidate the remaining months in HFM instead of in FDM. I tested manually and the time is increased 10-fold.
4. I have potentially identified the "ActConsolidate" Method could be used to run the consolidation in the target system. In my code you can see that I have added the ActConsolidate call AFTER the batch load. I was hoping this would run the consolidation directly in HFM by calling the consolidation in HFM. However, when I run the script I keep getting the following error:
"91 - Object variable or With block variable not set At Line: 52" Apparently I am not calling or setting the object up correctly. Am I missing something? I sincerely appreciate everyones help and will promise to give big kudos to anyone who can help me along. I am almost there. THis is very difficult for me and I know it's a tough scenario because no one seems to have a solution posted anywhere on this forum.
Below is my code:
Sub webBatchStdParallelFcst()
'Oracle Hyperion FDM Custom Script:
'Created By:     
'Date Created:     10/4/2010 9:27:32 AM
'Purpose:
'STANDARD Batch Parallel Processing and consolidation - Foresacting
'Declare Local Variables for Batch Processing
Dim lngProcessLevel
Dim strDelimiter
Dim blnAutoMapCorrect
Dim lngParallelProcessCount
Dim strLoadBalanceServerName
Dim BATCHENG
Set BATCHENG = CreateObject("upsWBatchLoaderDM.clsBatchLoader")
BATCHENG.mInitialize API, SCRIPTENG
'Declare Local Variables for consolidation
Dim strLoc
Dim strCat
Dim strStartPer
Dim strEndPer
Dim CONSOLENG
Set CONSOLENG = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
'Initialize variables for Batch Processing
lngProcessLevel = 8                     'Up-To-Load
strDelimiter = "_"                    'File Name Delimiter
blnAutoMapCorrect = True               'Auto Map Correction is On
lngParallelProcessCount = 2               'Number of Parallel Processes (Should equal # of Processors)
strLoadBalanceServerName = "everest3105"     'Load balance server for parallel process
'Initialize ActConsolidate Variables
strLoc = "FORECAST"
strCat = "FDMPLAN"
strStartPer = "Oct - 2011"
strEndPer = "Nov - 2011"
'Create the file collection
Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
'Execute a Standard Parallel batch
BATCHENG.mFileCollectionProcessParallel BATCHENG.PcolFiles, CLng(lngProcessLevel), CLng(lngParallelProcessCount), CStr(strLoadBalanceServerName), , CBool(blnAutoMapCorrect)
'Execute Consolidation on Target System
CONSOLENG.ActConsolidate strLoc, strCat, strStartPer, strEndPer
End Sub
However, I am getting the following error: "91 - Object variable or With block variable not set At Line: 52" I don't understand, the objects appear to be set up properly.

Similar Messages

  • How to update managed metadata column for all file in document library using powershell

    Hi,
    How to update managed metadata column for all file in document library using powershell?
    Any help on it.
    Thanks & REgards
    Poomani Sankaran

    Hi TanPart,
    I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation  Document Library.But i am getting below error in powershell.
    Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
    Could you tell me which is the issues in it?
    See the code below.
    $web = Get-SPWeb http://ntmoss2010:9090/Site
    $list = $web.Lists["DocLib"]
    $query = New-Object Microsoft.SharePoint.SPQuery
    $query.ViewAttributes = "Scope='Recursive'";
    $query.RowLimit = 2000
    $caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
            '<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
    $query.Query = $caml
    do
        $listItems = $list.GetItems($query)
        $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
        foreach($item in $listItems)
            #Cast to SPListItem to avoid ambiguous overload error
            $spItem = [Microsoft.SharePoint.SPListItem]$item;
            Write-Host $spItem.Title       
    while ($spQuery.ListItemCollectionPosition -ne $null)
    Thanks & Regards
    Poomani Sankaran

  • How to set selection in UIPickerView after view has loaded?

    I have a UIPickerView working just fine, and I can set the current selection when a button is clicked, but how can I set the current selection when the view appears?
    I've tried to set the selection in viewDidLoad, viewDidAppear and viewWillAppear to no avail, I've also tried to do it in initWithNibName. Again no joy.
    As far as I can tell, the sequence of events is that my nib gets loaded by the view, my UIPickerViewDelegate interface methods are called to configure the picker, but what message can I pick up after all that has occured to set the selection?

    Hey Paul-
    I use this in one of my apps and it works great. Once the view loads, the picker gets set to the value I want with a nice animation. Let's say you want to set it to row 3.
    - (void)viewWillAppear:(BOOL)animated {
    [myPicker selectRow:3 inComponent:0 animated:YES];
    Of note: If you have the function - (void)viewWillAppear without the :(BOOL)animated part, it won't throw an error on compile, nor will it get called. Yes, I learned that firsthand.
    Hope this is what you are looking for.

  • How can I create a array with all files from a directory

    How can I create a array of files or varchar with all files from a directory?

    I thought the example could be improved upon. I've posted a solution on my blog that doesn't require writing the directory list to a table. It simply returns it as a nested table of files as a SQL datatype. You can find it here:
    http://maclochlainn.wordpress.com/2008/06/05/how-you-can-read-an-external-directory-list-from-sql/

  • How to Password Protect a Directory so all Files are Protected?

    Hello CFers and Happy Holidays,
    I am moving a web site over from a Linux server over to a
    Windows 2000 server. The site was currently password protected via
    the oh so familiar .htaccess method on the Linux server. Now that
    the site is on IIS on Windows, the .htaccess files don't work.
    I have created a MSSQL database with a users table that
    contains all of the username and passwords that are allowed to
    access the site.
    Normally I would just log users in by querying the database,
    setting a session variable, and then using application.cfm to check
    to make sure the users is logged in. However, in this particualr
    site, most of the files are made up of .htm files which do not get
    processed by the ColdFusion application.cfm tag.
    Several posts indicated that I would need to disable
    anonymous access within IIS and then create the individual user
    accounts within Administrative Tools > Computer Management >
    Users and Groups. However, in this case, I don't want to create
    thousands of new users within windows.
    Is there a way for me to password protect all files within a
    directory while still using the accounts set up in my MSSQL
    database for authentication?
    Thanks,
    David Levin

    > Several posts indicated that I would need to disable
    anonymous access within
    > IIS and then create the individual user accounts within
    Administrative Tools >
    > Computer Management > Users and Groups. However, in
    this case, I don't want to
    > create thousands of new users within windows.
    How many users did you have in your .htaccess config? That's
    how many
    you'd need to set up in IIS. With IIS & file system
    permissions you're
    effecting the same thing you would with Apache's .htaccess
    authorisation.
    Except using GUI tools rather than text files; it's the same
    principle,
    though.
    Or... you could just install Apache and use that instead,
    sticking with the
    approach you're used to.
    Adam

  • How to make a category required for all files created within a folder

    I've defined a category. It has attributes which have been flagged as required.
    When I view the properies of a particular workspace (library), the category is shown as available to the workspace. However, the category is not shown as required. And the "required" checkbox is not clickable.
    So .. how, from the OCS DHTML applet, do I make a particular category a required category for all files in a folder?

    Perhaps the Category Attribute is not marked as "configurable" when it was created. You can check this by "switching into Admin Mode" and drilling down the Categories using "Manage Categories" link. Check if the category attribute is marked as configurable or not.
    Ravikiran

  • How Can I Find a Listing of ALL Files in a Particular Logic Pro 7.2 Song?

    Hello,
    Is there a quick and easy way to find a listing of all files that belong to a particular Logic Pro 7.2 song? I am trying to clean up my Logic folder that has no hierarchical order with files in their respective song folder. Just a littering of files that belong to various songs.
    Thanks
    Tony

    Project Manager
    Consolidate files of selected songs while using copy on all should do it all for you, but create a lot of redundant data if your sessions share many files. It's safer though.
    J

  • How is the iMac G4 performing after all this time?

    I have a 1TB hard drive connected to an AirPort Express which have 2 500GB partitions, one for downloads, my itunes library and the other for time machine backups. I use this itunes library on my macbook, and is not working as expected. Sometimes all the artworks disappears and is very slow to manage the library without an ethernet cable connecting the PORTABLE computer on the AirPort... it's really boring. So, i want to buy a computer to use as iTunes & print/scanning server, but i don’t want to pay much for this.
    The iMac G4 is an incredible beautiful machine which i wanted since i was 7 years old. I really want to buy a refurbished one, but i need to make sure that it can run iTunes 10 and OS X Leopard or the machine will be useless and a waste of money.

    Be aware that all the PowerMacs are pretty much dead in the water for many modern web pages. The technology in those pages abandoned the "G" series processor long ago. I keep my G4 Tower limping along on the Web by using TenFourFox. Web sites see it as a reasonably current version of FireFox--newer than any version of FF that will run on a G-series--so you don't get all the "this browser is not supported" messages, but current versions of TenFourFox do not support plug-ins so you can't run Flash player, meaning no videos will play that rely on Flash.
    http://www.floodgap.com/software/tenfourfox/
    If you go for a G4--they are indeed lovely to behold--I recommend going for the latest version with a 1.25Ghz processor. Theose also have USB 2.0 so are not so   sluggardly with backups to external drives. They can also    handle up to 2GB RAM with teh proper models.
    Here are my "big" caveats:
    1) The G4 iMac was never inteded to be user-serviceable. If you have to max the RAM, replace the hard drive or the optical drive, or even chenge a little $5 internal backup battery, it is a major teardown that is not one for the average user. Failing to reassemble to strict requirements can cause the computer to overheat and fail. If you are not up to the challenge and seek outsire help, be aware that Apple no longer will do any work on the G4 iMac.
    2) Software: Almost no new software will run on a G4 Mac. You will be searching for used packages contemporary with a 2004 computer. Office 2004 is the sweet spot for that one. However, Office 2008 will run on a G4, G5, or an Intel iMac.
    3) Check the chrome display arm carefully for proper movement and that it stays in place. After 10+ years, many are now rather "tired" and droop unattractively.

  • How can I consolidate owner permissions after transferring with MA

    I just transferred a ton of files over from my old imac (Tiger) to intel imac (leopard) and discovered that I have two sets of owners for my files. My new account owner is "A" but old owner is "B". Is there a way I can change the ownership of my moved files in a batch so I don't have to adjust file by file? This could be really time consuming. I don't want to have to login and logout depending upon my file needs...

    As opposed to using Terminal commands, you could have used BatChmod, but you must know what your doing, as it can cause more problems than fixes.
    http://www.macchampion.com/arbysoft/BatchMod/Welcome.html
    Good to hear the issue has been resolved.

  • How to Copy FrameMaker Master Pages to all files in a book?

    Newbie question.
    I've created a Master page template for a title page that I now want to apply to every file in my collection of books (~5 books, +30 files).  How do I do this?
    The page has a full page image and different margins.
    I would try to brute force (manually recreate it in every file) but it is nearly a fluke that I managed to get it right to begin with.
    I see there is a way to import reference pages--what about master pages?
    Thanks!
    Katherine

    Katherine, are you wanting to import just a single master page (e.g. one called "Title"), but not the Left/Right default pages,  to all the other docs?
    that's difficult to do in FM's dialogs because (as you may have found already) you can't choose specific master page(s)  to import, it's an all-or-nothing import.
    Also, it helps us if you specify what version of FM, including the "pxxx" numbers as shown in Help > About, that always helps folks answer more precisely if there are variations among versions.
    Sheila

  • How to batch rename with index/counter all files in a project?

    I have a project with files named with an index (I believe that is the correct term).  For example, the files are named XX1, XX2, and so on.  However, some files have the same name because I imported from two different memory cards, without thinking to set the starting number for the second import into the same project.  I would like to batch rename all of the files (masters and versions) with a consecutive index (1, 2, 3, and so on).  How can this be done?  I have found in the manual the way to do this on import, but not how to correct my mistake now.  Thanks!

    I would like to batch rename all of the files (masters and versions) with a consecutive index (1, 2, 3, and so on).
    Select the images in the project and then use ( from the main Aperture application menu)
         Matadata -> Batch Change (Shift-Command-B)
    Set the Version Name format to one of the "Custom with Index ..." or "Custom with Counter ..." formats and check "Apply to Master Files". Make sure you disable all other changes that you do not want, like Time Zone correction, or keywords.
    Regards
    Léonie

  • How Can I set QT to open ALL files in Full Screen Automatically?

    Am I missing something obvious here, or is this a major option missing in preferences of QT? I know that you can set this option for EACH movie in the Presentation tab in the movie's Properties, but I have 1000's of clips on my computer. I just want EVERY movie to automatically open up in full screen mode. This seems like it should be an obvious universal option for QT rather than handled individually for each file (with the option to over ride it per file if you wish for some reason).
    Plus setting the option per file is not even practical, because in order to save that option in a file that is not .mov file QT wants to convert it to .mov and save copy of the file...

    I am still pretty sure, say 95%, (do not recall perfectly - to many things on my mind... hihi) that the settings in Quicktime in the Preferences DID work before.
    QT Player "Preference" settings only control how the content is displayed in the "Full Screen" mode -- not how it is activated. Pop-up options include:
    1) Half Size,
    2) Actual Size,
    3) Double Size,
    4) Fit to Screen,
    5) Fill Screen,
    6) Panoramic, or
    7) Current Size
    The options are available individually for "widescreen", "standard", or "other" aspect movie formats. The only other method of I can think of using the QT Player to automatically open in the the "Full Screen" presentation mode would be using a QTL file linked to your original source file but it setting the "Full Screen" option is "boring" for you, then creating QTL files would be even more so.

  • How do I consolidate my music without duplicating files?

    I am a brand new Mac user.  I just copied my entire MUSIC folder from my PC to my new iMac. It is now in the Music folder next to the itunes folder. If I run a consolidate, should I first uncheck the 'copy files to itunes media folder when adding to library' to prevent duplicates?

    DrCynthia wrote:
    Great - Just did it.  Should take a million years, but it looks like it is working. Thanks!
    Should only take a few minutes.
    When you drag one folder to somewhere else on teh same hard drive, it simply moves them (by updating the directories), not copies them

  • How do I consolidate music files from all the locations on my laptop where they currently exist?

    My music files are located in at least four different places on my computer. I find them in c:/(user)/Music (all just stored in various folders outside the ITunes folder), in c:/(user)/Music/ITunes/ITunes Media/Music, in c:/(user)/ITunes/ITunes Music, and in c:/(user)/ITunes1/ITunes Media/Music. I think many are duplicated. How do I consolidate without painstakingly going through file by file? Win 8.1 brand new Dell laptop, 512 SSD.

    Check your media folder is properly set to C:\Users\<User>\Music\iTunes\iTunes Media and then use File > Library > Organize Library > Consolidate files. This will however create copies of any files current stored outside the media folder which may be a problem on a smallish SSD drive. I have two scripts that could help you, Unconsolidated and ConsolidateByMoving. The first can make a playlist of all unconsolidated tracks, the second can consolidate a selection of tracks by moving them instead of copying.
    tt2

  • How much space available in ipad air after all built in app in a 16 gb

    how much space is available in after all built in apps in ipad air in a16 gb model

    That's the iPad 4. The Air may vary.

Maybe you are looking for

  • Prob in decode function

    hi iam having prob with the following decode function declare c varchar2(20); begin select decode(deptno,      10, 'accounting',      20,'Research',      30 ,'sales',      40,'operations','UNKNOWN') into c from dept where loc='DALLAS'; dbms_output.pu

  • Processor upgrade on Satellite L300-1BV

    I've already upgraded the laptop from a T1600 (Celeron), to a T3200 (Pentium Dual Core). But does anyone know how far I can upgrade in the 478 P range of processors? If so, could you supply the processor numbers? +Message was edited: Model number cha

  • Goods Return Recipts

    Dear All when we make the customer goods return receipt with movement type 651 this movemet type is not creating any Accounting Document  on the document status when we click on the accounting button its giving the message material dose not inculding

  • How to calculate the real height of the text in RichEditableText control?

    Hello, I created a new component by extending the RichEditableText control. When I try to get the value of contentHeight propery of this class even after compositionComplete event has fired, I get incorrect content height (so called "estimated" heigh

  • My computer wont start!

    My computer wont start and i dont know why!