Illustrator scripting with datasets & variables

I have a .ai file with 3 datasets containing 2 variables each. I am new to adobe scripting and am trying to write a script that will loop through the 3 datasets, swap out the variables, and save as 3 different .pdf files. I can loop and export, but don't know how to access the variables.
Here is a snipped from what I have:
for (var i=0; i< docRef.dataSets.length; i++){
var ds1 = docRef.dataSets.getByName('ABC'); // ABC is a client name, but numeric index is required
//var ds1 = docRef.dataSets.index(1); // this doesn't seem to work, but i need it to
docRef.activeDataset = ds1;
// I need to access the dataset variables here, where ClientName is a variable name within the dataset
client_name = ?????;
ds1.display();
app.redraw();
// ----- save changes
filepath = '/Users/me/Documents/clients/'+client_name+'.pdf';
saveInFile = new File( filepath );
pdfSaveOpts = getPDFOptions( );
docRef.saveAs( saveInFile, pdfSaveOpts );
Thanks for any help

markr34,
I have never done any dataset scripting, but my eyes tell me that at this line:
//var ds1 = docRef.dataSets.index(1); // this doesn't seem to work, but i need it to
you'd probably want to use square brackets [1] rather than parentheses to refer to array by index.
HTH

Similar Messages

  • Import Script with Temp Variable at Bottom of Load File - No Results

    I am running into an issue while trying to load an entity's financials using a Data Pump script to assign a temporary value for the entity number, which is located at the bottom of the report.  Here is how the import file is layed out:
    Account                Description                  Final Balance                                    
    All Accounts and information....
    Entidad: 93          A: 93
    I am trying to pull the 93 into PvarTemp1.  Is there something I need to do special in the scripting since the variable I am trying to extract is at the bottom of the data?  All examples I have been able to find on the forms show the temp variable at the top of the data that the temp vaiable is being applied.  I am very new to VB and would appreicate any help.
    Here are the scripts that I am running:
    GET:
    If Mid(strRecord, 23, 8) = "Entidad:" Then
    RES.PvarTemp1 = Mid(strRecord, 32, 2)
    End If
    GetMexicoEntity = strField
    End Function
    PUT:
    PutMexicoEntity = RES.PvarTemp1
    End Function
    Thanks in advance!

                                                               Saldo Inicial     Activ Período        Balance Final
    Cuenta                 Descripción                          06/01/13                                 06/30/13       Ajuste Balance
    12012                  PTU DIFERIDO                              -489.00                  .00              -489.00
    12018                  IETU DIFERIDO                          -13,100.00                  .00           -13,100.00
    13520                  CREDITO MERCANTIL                   13,682,407.05                  .00        13,682,407.05
    20819                  OTRAS RESERVAS                         445,751.35            86,957.38           532,708.73
    21402                  PASIVO NETO PROYECTADO                   4,887.65                  .00             4,887.65
    30101                  CAPITAL SOCIAL HISTORICO                25,791.04                  .00            25,791.04
    30151                  CAPITAL SOC. ACTUALIZADO                87,406.99                  .00            87,406.99
    30201                  RVA. LEGAL HISTORICO                  -210,712.72                  .00          -210,712.72
    30301                  UTIL/(PERD) AC. HISTORIC            -2,605,881.57                  .00        -2,605,881.57
    30501                  RESUL. ACUM. HIST.                 -10,969,131.88                  .00       -10,969,131.88
    30502                  OCI                                    -22,567.00                  .00           -22,567.00
    30721                  POSICION MONETARIA                     233,964.17                  .00           233,964.17
    30801                  CXREEXP.TRASP. DEL EJERC             1,164,673.76                  .00         1,164,673.76
    77403                  OTROS                                 -445,751.35           -86,957.38          -532,708.73
                                                                 1,377,248.49                  .00         1,377,248.49
                                                         ==================== ==================== ====================
    Criterio del Reporte:                   Reporte pedido por:        iochoa
                          Entidad: 93          A: 93
                   Fecha Efectiva: 06/01/13
                                A: 06/30/13
                 Sumar Subcuentas: S
              Sumar Centros Costo: N
                           Moneda: MN
             Suprimir Montos Cero: S
      Redondeo al Millar más Cerc: No
      Redondeo a Unid más Cercana: No
                  Moneda Reportes:                               Salida: Bal93
                                                               ID Batch:

  • Maxl Clear Script with Substitution Variables

    Hi,
    I am new to Maxl and I am trying to write a clear script with Maxl on an ASO Cube. The script should only clear data on a certain version and year that changes every month. I am using the following syntax and it doesn't work.
    alter database ASOSamp.Sample clear data in region '{[&SV_CurrentPeriod]}';
    What is the correct syntax here?
    thanks,

    alter database ASOSamp.Sample clear data in region '{[&Test]}';...with the subvar 'Test' set to Jan...works on my 11.1.2 test system.
    Incidentally, when you say "it doesn't work", do you mean you get a MaxL error, or it doesn't clear the expected region? I was assuming the former, but you don't say.

  • Writing Illustrator scripts with Java not javascript

    Hi all, I am an experienced Java developer, I want to ask about can I write scripts in Adobe Illustrator with Java rather than javascript, I mean Did Adobe make Java API for Illustrator?
    Thanks

    Hello,
    1) no, but c++, called plugin API ( Java Native Interface ? )
    2) maybe ask here for plain Java binding : http://scriptographer.org/news/a-new-release/  (written in java) ?
    chris

  • Example file, illustrator file with variables linked to xml

    CS5 – Where can i find an example of an illustrator files with variables, linked to an xml file. We want to export it immediately to .pdf format when the file is linked. Is this possible? The illustrator help files are not so clear about this matter.

    Follow the Help documentation's steps to create at least one of each of the four supported types of variable bound objects.
    Capture the DataSet.
    Edit the bound objects' content.
    Capture the DataSet.
    Save Variable Library. That's your XML file.
    JET

  • Open multi page pdf specific page in Illustrator CS4 with apple script

    I need to open multi page pdf specific page in Illustrator CS4 with apple script. Is it something like this:
    activate  (open file theTargetFolder as PDF with options …).
    Thank you.

    Carlos,
    Muchas Gracias por tu colaboración y excelente script, el que se abra el ESTK no tiene mayor importancia.
    El caso es que Adobe recomienda encarecidamente NO utilizar Illustrator para editar PDFs, por diversas razones, aunque cuando no hay otro remedio o herramienta disponible, o conocida ...
    Para llegar aquí, aparte de San Google, hay que ir a Adobe.es (en mi caso), pestaña de Ayuda,  ..... (hasta aqui bien),
    luego hay que bajar hasta el final y ver Comunidad y Foros...... (esto puede ser)
    al pulsar aparacen un montón de foros se supone de programas pero en inglés,
    y la última línea es de International Forums,  ya casi hemos llegado)
    pulsamos entonces, y por fin se abren cuatro palabras con idiomas, en una dice: español      (casi no me lo puede creer)
    pincho y llego por fin aquí.
    Muy poca gente sabe de la existencia de este pequeño refugio, si a esta dificultad añadimos la peculiar forma de ser de la gente, ....

  • Looking for professionals with Illustrator scripting experience near Nürnberg Germany

    I work for a large consumer products company with a large in-house design team working on Illustrator as a main platform. I'm looking for advice on where to find individuals with a lot of Illustrator scripting experience to help our team for a limited time duration. Any thoughts on other forums, job posting sites etc. where I could search for this would be greatly appreciated. Our company is located near the Nürnberg metro area in Germany and ideally are looking for on-site help. Thanks!

    I know at times it doesn't look like it but I do have a day job ( just about ) Carlos… Language would a problem too ( I just about do english as we brits do, pig ignorant bunch ) I've been to Hamburg and the beer was great thou…
    I don't know why but I have think Chris Gebab may be from that way…

  • Working with TimeZone variables in UCCx script

    Hi Team
    I'm wondering if you guys could help me to find out the best way to work with TZ variables in UCCx script.
    Because of different countries customer has a branches, I need to setup different TimeZones for each country handled by the same centralized UCCx.
    In this post they use Java to work with TZ, however, but I prefer another way to work with TZ variables:
    https://supportforums.cisco.com/discussion/11851751/how-make-uccx-holiday-script-timezone-aware
    My idea is to work with Time Zone variables in the script, so what I did was to create different TZ variables and each one of the them assigned the proper timezone based on the country, so depending of the Trigger involved (DNIS), I can find witch country this call came from and give the right timezone.
    The problem I have is that at the time I want to add or subtract two variables of TZ, I got an error because of the syntax. I've been trying different options, but until now, no luck.
    Would you mind you guys who had been working on this let me know what is the right syntax to add or subtract TimeZone variables un UCCx?
    Thanking you in advance
    Martin

    Hi
    I've been working on TZ's recently... see this post:
    https://supportforums.cisco.com/discussion/12474756/how-check-daylight-saving-within-uccx-script
    My approach in the scripts was that basically I allow the department to set their opening hours in the timezone of their choice.
    They have a management web page served from CCX that accepts start/end times each day, and a timezone. That all gets stored in XML.
    In the script, based on that information I get the current time in whatever timezone is set, and compare that to the XML open/close times.
    Similarly for holidays, I get the current date/time in the holiday TZ and compare the holidays to that.
    Aaron

  • Errors and more, my first illustrator script

    First, I should mention that I started scripting for Photoshop about a month ago and have had some really motivating successes there. It led me to this one task we have that is just incredibly repetitive and boring in Illustrator that I want to script.
    I haven't gotten all the pieces in here that I need so far, and any form of help would be greatly appreciated, whether just suggestion, or really whatever. I don't mind doing research and trying things out myself.
    The purpose of this script is to open a template file we have on our network drive, ask for a folder with a collection of files (these are files provided to us that contain the info we need to make labels), place one, save with a specific name, and start over, placing the next file, till they are all on the template. We do this before we can create labels for our products. There are weeks when it has to be done 50+ times and that's pretty mind-numbing.
    The steps I think I need are:
    ask where the provided files are that need to be placed
    open template file
    make sure the folder chosen has the right type of stuff in it (PDFs)
    place the first file at specified coordinates
    embed the link
    lock the embedded link
    ask user to proof information on screen (ok to continue, cancel to stop and let user interact with file on their own) (95% of the time, there are no errors)
    use the embedded link's name as the name of the file and save it to a specific network location
    repeat until all the files in the chosen folder have been done
    I've been lurking around here for a couple days, reading up on how Illustrator works with scripting and have broken off bits and pieces of different scripts to adapt for my purposes. So far, this is what I've come up with:
    function getLabelRequests() {
         return Folder.selectDialog('Please select the folder containing label requests:', Folder('~/Desktop'));
         function placeLabelRequests(selectedFolder) {
              var myDoc;
              if (selectedFolder) {
              var fileRef = File("/Volumes/myNetworkLocation/myTemplateFile.ai")
              open(fileRef);
              myDoc = app.activeDocument;
              var firstImageLayer = true;
              var thisPlacedItem;
              // create document list from files in selected folder
              var fileList = selectedFolder.getFiles();
              for (var i = 0; i < fileList.length; i++) {
              // open each document in file list
              if (fileList[i] instanceof File) {
              // get the file name
              var fName = fileList[i].name;
              // check for supported file formats
              if( (fName.indexOf(".pdf") == -1)) {
                   // skip unsupported formats
                   continue;
                   } else {
                        // Give the file the name of the image file
                        File.name = fName.substring(0, fName.indexOf(".") );
                        // Place the label request on the artboard
                        thisPlacedItem = myDoc.layers['Job Form'].placedItems.add();
                        thisPlacedItem.file = fileList[i];
                        thisPlacedItem.position = [15,-45];
                        thisPlacedItem.embed();
         if( firstImageLayer ) {
         // display error message
         alert("Sorry, but the designated folder does not contain any recognized image formats.\n\nPlease choose another folder.");
         myDoc.close();
         getLabelRequests (placeLabelRequests());
         else {
         // display error message
         alert("Rerun the script and choose a folder with label requests, if you please.");
    // Start the script off
    placeLabelRequests (getLabelRequests ());
    So obviously there's no loop in there, which is one of my problems at this point. I know what each of these chunks of code do, but can't necessarily understand all the syntax. Particularly things like
    for (var i = 0; i < fileList.length; i++) {
    I know it's saying that the variable i is zero, and while the list of files is greater than i, do whatever that last bit means, but I don't really know why it works or how it was constructed originally.
    I haven't specified the save either, which might be why I'm running another of my problems, but I don't know how to get the name of the link to be the name of the file when it's saved. I also haven't given it a confirm to let the user proof either.
    Here's my list of problems:
    Running the script returns the image format error, even though the folder selected contains PDFs (I suppose I don't need to confirm the files are PDFs, that could just be incumbent upon the user)
    Running the script places all the files into one iteration of the template (this may be because I haven't gotten the save or the loop in there, but I think it has more to do with the function being set up the way it is)
    Obviously, it doesn't save with the link name as the file name
    I don't seem to be able to figure out how to lock the link after it's embedded.
    I also wonder if there's a way to, rather than opening-placing-saving-closing-repeat, to open-place-save, delete-placenext-save, delete-placenext-save.
    Phew, sorry for the short novel.
    Here is a copy of the template … or not. Can I not embed files in the post that aren't images?
    Here's a JPG of the AI file that I use as a template
    This document has two layers in this order normally:
    Artwork
    Job Form
    And here are the blocks I'm using as placement for the information we are provided. These are taking the place of the files that need to be placed, and again, were PDF files, but I'm uploading as JPGs because I either don't know what I'm doing, or you can't upoad those file types.

    I worked around the place options for the PDF by adding in a function I found on this forum. It detects clipping masks and deletes them.
    There's one line in here that doesn't do anything, and I'm figuring out if it needs to be changed. After the clipScan function runs, I'm telling Illustrator to place a variable at a specific position, but because clipScan modifies the variable, it no longer recognizes that group of page items as the variable. Temporarily, I've used the original place position to make sure the link sits right where I want it to, but I have to make sure that the files we are provided never look any different.
    If they do, I'll need to asign a new variable and set the position after clipScan runs, I think. If it's necessary, I'll update with the fix, otherwise I think this is the final script.
    #target Illustrator
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    function getLabelRequests() {
        return Folder.selectDialog('Please select the folder containing label requests:', Folder('~/Desktop'));
    function placeLabelRequests(selectedFolder) {
        var myDoc;
        if (selectedFolder) {
            var fileRef = File("/Volumes/graphics/Standards/Job Forms/Label Job Form-5C.ai")
            var thisPlacedItem;
            // create document list from files in selected folder
            var fileList = selectedFolder.getFiles("*.pdf");
            for (var i = 0; i < fileList.length; i++) {
                // open each document in file list
                if (fileList[i] instanceof File) {
                    //open job form
                    open(fileRef);
                    myDoc = app.activeDocument;
                    // Place the label request on the artboard
                    thisPlacedItem = myDoc.layers['Job Form'].placedItems.add();
                    thisPlacedItem.file = fileList[i];
                    thisPlacedItem.position = [-50,10];
                    var myLinkName = myDoc.placedItems[0].file.name
                    thisPlacedItem.locked=true
                    thisPlacedItem.embed();
                    var clippingCount = 0
                    clipScan(myDoc)
                    thisPlacedItem.position = [15,-45];//this is the line that isn't doing anything right now.
                    redraw()               
                    //make sure the placed job form has the correct information
                    var proof = confirm ("Does the job form have the correct information?", true)//needs the redraw step above or nothing shows when the alert happens. Redraw forces Illustrator to display the actions performed so far.
                    if (proof) {
                        IllustratorSaveOptions = new IllustratorSaveOptions()
                        IllustratorSaveOptions.compatibility.ILLUSTRATOR15 //some of our printers have yet to upgrade
                        var onPO = Folder ('/Volumes/graphics/ •••Drafts•••/ • Draft Labels/ •On PO')
                        var saveFile = File(onPO + '/' + myLinkName);
                        myDoc.saveAs (saveFile, IllustratorSaveOptions)
                else alert ('Make note of the file with an error. This file will not be saved.')
                app.activeDocument.close (SaveOptions.DONOTSAVECHANGES)
        else {
            // if user cancels action, display message
            alert("Rerun the script and choose a folder with label requests.");
    // run the script
    placeLabelRequests (getLabelRequests ());
    //////////////////////////function to remove clipping paths from placed item, thanks to KennethWebb, Muppet Mark and CarlosCanto on the Adobe Illustrator Scripting forum.
    function clipScan (container) {
        for (i=container.pathItems.length-1;i>=0;i--) {
    var item = container.pathItems[i];
            if (item.clipping == true){ //screens for locked or hidden items (removed this after true:  && item.editable == true       so it no longer screens for locked or hidden items
                container.pathItems[i].remove();
                clippingCount++;

  • Problem with application-variables - CFLOCK?

    Hi,
    i have a problem with my application. It is a multi-user
    application with 100 parallel-users and CFMX 7.
    The problem wich occures is with application variables. These
    are mainly structs wich get filled onApplicationStart(). The
    problem is, that the variables suddenly disappear, they are empty.
    I have read about CFLock and found out, that it is necesseary
    to use cflock. And i found out, that onApplicationStart does
    correct locking automatically. That is where i do not understand
    the problem. The variables get intialized correctly and in further
    they only get read-access. Why can they be corrupted?
    My other question about that is, wheather i need cflock for
    all Read-Access to Application and Session-Variables, even if there
    happens no writing to the variables?
    Best Regards,
    Andreas

    > ?The element of position 2, of dimension 2, of an array
    object used as part of
    > an expression, cannot be found.?
    > The array is in this case the struct.
    Well, OK, that could be a problem. Arrays are not structs:
    they are two
    different things, are not interchangeable, and have
    completely different
    sets of functions to utilise them. You cannot treat a struct
    as an array.
    If CF is claiming your "struct" is an array, then it actually
    *is* an
    array, not a struct.
    What's the line of code which is generating that error?
    I suppose one could get this error if you have an array of
    structs thus:
    myArray
    .key1
    myArray.key2
    (etc)
    and you're trying to reference it with a numeric key rather
    than by key
    name, eg:
    myArray
    [n]
    When n is an integer value, rather than a string (which
    corresponds to the
    name of the key).
    > > Have you trapped the error, done a <cfdump>
    of the application scope and
    > > checked to see if it's the whole lot going awry, or
    just some values?
    > I have not used cfdump for it, because the server had to
    be immediately
    > restarted for our customers. But i think, that it is
    not completely empty,
    > because the index runs to pos2 of dimenstion2.
    So does this not happen in your dev / testing environment?
    > Will
    > onApplicationStart() be called before? Or only if
    onRequestStart() returns true?
    I would ***-u-me that the application one would be called
    before the
    request one. It's pretty easy for you to test this though, I
    should think?
    (Sorry: for reasons beyond the scope of this conversation,
    we're still
    forced to use Application.cfm in our software, so I've only a
    passing
    knowledge of how Application.cfc works).
    > Here is the code from onRequestStart()
    > <cffunction name="onRequestStart"
    returntype="boolean">
    > <cfargument name="Requestedpage" required="yes" />
    > <cfscript>
    > var lFile = "/cargorent/Login.cfm";
    > var iPosn = ListFindNoCase( lFile,
    Arguments.Requestedpage );
    > if( iPosn gt 0 )
    > return true;
    >
    > if( NOT IsDefined( "session.user.Loginname" ) or
    session.user.Loginname eq
    > "" )
    > {
    > WriteOutput( "<p><p> The current user is no
    longer valid, please log in
    > again.</p></p>" & chr(10) & chr(13)
    > WriteOutput( "<script
    language=""javascript"">parent.location = ""
    http://"
    > & CGI.HTTP_HOST &
    "/Login/Login.cfm"";</script>" );
    > return false;
    > }
    >
    > return true;
    > </cfscript>
    > </cffunction>
    One thing I will say here is that I really think you should
    be separating
    your processing from your display. A function should do
    processing. it
    should pass that processing back to a CFM template which
    should handle
    whatever needs to be displayed on the browser. Although
    that's nowt to do
    with your current issue.
    Adam

  • Runtime error in linking with static variables....

    Hi,
    I am building a shared library which includes a compiled object generated from a class containing the static variables only and also I have another version of same class with same & some new static variables in it and using that to generate another shared library. Now when I tried to run a program
    which links with both the library it core dumps when it tries to return from the program i.e when it finishes.
    Can someone please help me explain why my program is behaving like that?? Can duplicate inculsion of static variables in different scope can cause problem ?? How can this be avoided ?
    Also please be advised that the class with static variables gets generated at the compile time using a script which uses a DTD whose version (specification) can be different in both the libraries therefore I can't just seperate the common stuff into one class and specific into another.
    Thanks.
    Rajeev.

    Not to worry...found the answer in another post. Seems like patches need to applied to the OS.

  • Referencing Bridge folder from an Illustrator script... How?

    I need to access a file in the Bridge directory, from a script in Illustrator. I can do this for PC with a concrete reference like this:
    var loc = "C:/Program Files/Adobe/Adobe Bridge CS3/webaccesslib.dll"
    How do you construct a string to get at it on a Mac?
    thanks,
    -J

    Go to the scripting Forums and select the Illustrator Script forum and ask there.

  • Calling an rss script with rs.exe fails to result in a report pdf from VB6 w/ ShellEx.

    Sql 2008 R2
    Calling an rss script with rs.exe fails to result in a report pdf from VB6 w/ ShellEx. 
    If I call rs.exe with the various parameters from the command prompt I  have success(other than rs.exe using the temp folder, which is a different issue).  But when I try to execute the same process from a Visual Basic 6.0 application utilizing
    the ShellEx api call, the report creation and output to PDF format do not occur.   There is no error raised.
    Yes, I wish I could use a newer dev tool but that isn't an option right now. I think this should work.  Can ya'll tell me what I'm doing wrong?
    sArgs = "-i " & Chr(34) & "'C:\Program Files\Dura Supreme\OrderEntry\RunOrdReports.rss'" & Chr(34) & _
    " -s 'http://walnut/reportserver' -v 'DuraOrderNum=" & _
    Chr(34) & sOrdDuraID & Chr(34) & "' -e Exec2005 -t"
    ShellEx Chr(34) & "C:\Program Files\Dura Supreme\OrderEntry\rs.exe" & Chr(34), EShellShowConstants.essSW_SHOWNORMAL, sArgs
    TIA,
    Jim M.

    ShellEx Chr(34) & "C:\Program Files\Dura Supreme\OrderEntry\rs.exe" & ....
    Hello Jim,
    The path for rs.exe includes spaces, you should set it in hyphen, as you already did for file "RunOrdReports.rss" in variable "sArgs2
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Error in BatchLoad process - Object variable or with block variable not set

    Hi All,
    We are working on FDM version 11.1.1.3 with Essbase as a target system.
    To automate the data load process, we are loading the batch loader feature.
    I have taken the backload script from admin guide and it is working fine in our test environment.
    When, I am trying to use the same script in our QA environment, we are getting the below error message-
    Error: An error occurred running the script:
    *91 - Object variable or with block variable not set*
    At Line: 24
    QA environment has same version as Test environment (11.1.1.3). In QA, it the same script which I am using in Test environment.
    Please help us on this issue. Any help will be highly appreciated.
    Thanks & Regards,
    Mohit Jain

    Hi,
    As suggested by you, I have placed the code given by you and now my scripts looks like-
    'Declare Local Variables
    Dim lngProcessLevel
    Dim strDelimiter
    Dim blnAutoMapCorrect
    Dim BATCHENG
    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)
    But still, I am getting the same error.
    Have I placed the your given code at wrong place? please help me on this.
    Thanks a lot for your help!!
    Thanks & Regards,
    Mohit

  • Code 91 - Caused Error: (Object variable or With block variable not set)

    Hi,
    We are using FDM 9.3.1. We have enabled batch processing.
    We are having following process being followed
    - Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
    - Batch processing is set to serial and processlevel set to Up-To-Check
    - We had following five files created for Location - EMAFF100
    i. 1_EMAFF100_ACT_May-2011_RR.txt
    ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
    iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
    iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
    v. 1_EMAFF100_ACT_Sep-2011_RR.txt
    Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
    But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
    40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
    When we checked the view error log from tool menu we found following
    ** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
    ERROR:
    Code......................................... 91
    Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
    Procedure.................................... clsBatchLoader.mFileCollectionProcess
    Component.................................... upsWBatchLoaderDM
    Version...................................... 931
    Thread....................................... 5600
    IDENTIFICATION:
    User......................................... ncreighton
    Computer Name................................ HYAPSDEV1
    App Name..................................... EMATTEST
    Client App................................... WebClient
    CONNECTION:
    Provider..................................... ORAOLEDB.ORACLE
    Data Server..................................
    Database Name................................ hydev_serv
    Trusted Connect.............................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location..................................... EMAFF100
    Location ID.................................. 762
    Location Seg................................. 16
    Category..................................... ACT
    Category ID.................................. 13
    Period....................................... Jun - 2011
    Period ID.................................... 30/06/2011
    POV Local.................................... False
    Language..................................... 1033
    User Level................................... 1
    All Partitions............................... False
    Is Auditor................................... False
    We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
    Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
    Thanks in advance.

    Hi SAP collegues,
    At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
    It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
    This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes.  Please check the following.
    Note before doing the following, close all other open Excel and BPC sessions.
    Within Excel go to File à Options
    Select the Add-Ins option on the left
    Select the <<COM Add-ins >> option in the Manage drop down, and click Go
    Make sure that the Planning and Consolidation option is selected.  If not, mark this box and click OK.
    If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
    Let me know if you have any queries,
    Kind Regards,
    robert ten bosch

Maybe you are looking for