Killing Batch Processes

I've created a script that runs a ML batch process (up-to-load) for several periods via one location. However, I'm getting an error message on completion of the first period that it's failed to load due to a member not being avaialble in Essbase. This error will apply to all periods but as each period takes about 2 hours to complete I want to kill the batch process when the first error is known. I don't want the remaining periods to run through FDM (would take a further 6+ hours) as it would be a waste of time and delay any re-runs. Is there a way of killing a batch process safely?

Thanks for your continued help. Just so I fully understand, are you saying that the following steps occur when running any batch process e.g. Parallel ML Export/Load only for 2 periods:
1/ When the batch is submitted, a upsappsv.exe kicks off on the app server and TBATCH table creates a relevant BatchID and associated _P1 etc details.
In the event of a successful load upsappsv.exe completes and there are no error messages outputted. The TBATCH table throughout this would have shown a 50% PERCENTCOMPLETE status for period 1 and 100% for period 2.
In the event of the first part failing, the upsappsv.exe continues running the remaining periods and an error message is outputted accordingly. If you look at the TBATCH table it'll show 50% PERCENTAGECOMPLETE. The TBATCH table continues to show other periods and increases the associated percentage. We also continue to get output files created and error messages for later periods.
Apologies on my part as I wasn't looking at all Users in Task Manager and couldn't therefore see the upsappsv.exe tasks running originally. In the event of a failure, I can just end all these tasks and that'll kill the processing. I'm assuming the database table TBATCH won't get updated and will always show the % position at the time of killing. Also, any Temp tables would need to be dropped.
Once again, may I thank you for your continued help in this matter.
Edited by: malcolmbake on 08-Sep-2010 09:00

Similar Messages

  • How to : only one user in a branch can do the batch process at a time ?

    dear gurus,
    In ADF web application, accessed by multiple branch (20), there is a
    batch process to create invoices from orders. There are 3-5 users in a
    branch. one user can process about 30 - 50 orders to become
    invoices.
    Business rule is : In one batch process, each users must produce
    invoices with gapless invoice number. e.g : user_1 create 30 invoices
    no.001 - 030, user_2 create 40 invoices no.031-070 ... and so on...
    So we want to protect that at a time, in one branch, only one user can
    do the batch process. User_2 must wait until user_1 is done to start
    the process.
    We use the table below to maintain the latest invoice number created :
    CREATE TABLE doc_number
    DOC_TYPE VARCHAR2(6 BYTE) NOT NULL,
    BRANCH_CODE VARCHAR2(6 BYTE) NOT NULL,
    DOC_NBR NUMBER(12) DEFAULT 0,
    CONSTRAINT "DOC_NUMBER_PK" PRIMARY KEY (DOC_TYPE, BRANCH_CODE)
    The question is :
    I think of locking a spicific row of the doc_number table (select ...
    for update wait 10) at the beginning of the batch process stored
    procedure.
    But what if the session/connection left orphan and the row is lockde
    forever before the dba kill it ?
    So is there a better approach to limit the user execution of the
    process ?
    Thank you very much for your help,
    Krist

    Forget it. See http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4343369880986.
    However, if you are dead set on doing this old fashioned thing of trying to emulate paper invoices from a numbered tablet, you could always just let everyone generate all of their invoices with no invoice number whenever they want, then at some time ( say 21:00 every day), take a lock on the table and apply invoice numbers to all of the records with a null invoice number -- which will take only a few centiseconds at most. And let the users/system print only invoices that have numbers assigned. This way, you pretty much eliminate the concurrency issue of various branches generating invoices only in their time window -- yuk, what an awful way to have to do business.
    And completely forget about users or branches having their own range of numbers. That is completely nuts. Your database already knows which branch owns which invoice, right??

  • Batch process does not work in one service, but worked in another.

    Hi Fellows,
    We have here a batch process with a code encrypted, that runs daily in a production environment.
    Tonight this batch process did not work.
    It is expected that this process runs in about 20 seconds, but tonight this process used about 3 hours and did not finished.
    We checked if it was concurrency, killed some sessions and tried again, and nothing has changed.
    And then someone changed the service that this process uses, it was 'bat' and changed to 'dba'. And it worked succesfully in 11 seconds.
    Here is the tnsnames that the batch process uses:
    bat =
    (DESCRIPTION =
    (LOAD_BALANCE = OFF)
    (FAILOVER=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bat)
    (FAILOVER_MODE =
    (BACKUP = dba)
    (TYPE = NONE)
    (METHOD = BASIC)
    (RETRIES = 20)
    (DELAY = 5)
    dba =
    (DESCRIPTION =
    (LOAD_BALANCE = OFF)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.x.x3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dba)
    Do you guys know what could be the reason?
    Thanks in advance.

    We set the service which the app should connect.
    These services are set in srvctl:
    ora.cms.bat.cms1.srv ONLINE ONLINE on fastora1
    ora.cms.bat.cms2.srv ONLINE ONLINE on fastora2
    ora.cms.bat.cms3.srv ONLINE ONLINE on fastora3
    ora.cms.bat.cs ONLINE ONLINE on fastora1
    ora.cms.cms1.inst ONLINE ONLINE on fastora1
    ora.cms.cms2.inst ONLINE ONLINE on fastora2
    ora.cms.cms3.inst ONLINE ONLINE on fastora3
    ora.cms.cmsuser.cms1.srv ONLINE ONLINE on fastora1
    ora.cms.cmsuser.cms3.srv ONLINE ONLINE on fastora3
    ora.cms.cmsuser.cs ONLINE ONLINE on fastora1
    ora.cms.db ONLINE ONLINE on fastora1
    ora.cms.dba.cms1.srv ONLINE ONLINE on fastora1
    ora.cms.dba.cms2.srv ONLINE ONLINE on fastora2
    ora.cms.dba.cms3.srv ONLINE ONLINE on fastora3
    The batch process connects to a service [ bat ], but it hangs and don't finish. But when we change the service do dba is just pass in some seconds and finish succesfully.
    Connected to DB [issr@bat  ]
    PAYware CMS Version 8.0 - Module : E352 Release : 000000002
    Program: /cms/cmsissr/CMS/bin/issuer/mepcs352
    Release: 2
    PARAMETERS OK !!!
    NUMBER OF PROC.: 000001
    Number of transactions : +000047570
    Number of parallel processes: 000001
    Transactions by process: 000000000000047570
    Transactions Processed: 000010000

  • Batch process 1000 images.

    I have a batch of 1000 images that all need to be processed with the exact same levels adjustments and the exact same crop command. I recorded the necssary actions in photoshop, and I can now open up approximately 20 of my images and batch apply the actions to all 20 images automatically. The trouble is that I have 1000 images to process like this, and I can't open all 1000 in photoshop at once; it just kills my machine. I don't want to do the whole 1000 in little batches of 20 either. I'll be getting a new pile of 1000 images to process like this every day or two, so I need a way to do the whole 1000 automatically without user intervention.
    Is such a thing possible?
    I'm a software develoeper by profession, so if doing this sort of massive batch processing requires any command line work or scripting then I would totally be up for that.
    Many thanks,
    -Patrick

    I think the work's already been done for you.
    Check out File - Scripts - Image Processor.  I think it's in that submenu (can't check at this moment, my Photoshop's busy with a 3D render).  If it's not there, look in File - Automate.
    -Noel

  • In Bridge CS6, the "Tools" tab is missing the "Photoshop" option to batch process image

    Hello!
    Does anyone know why in Bridge cs6 under the "Tools" tab, my "Photoshop" option is missing?  That is how I have always batch processed images.  In Bridge, I choose the images to process, go to the "Tools" tab, down to the "Photoshop" option then to "Image Processor" and process.  Now when I go into my "Tools" tab it only has the options: Batch Rename, 4 kinds of Metadata related options and Cache.  Can someone tell me why this has happened and how to fix it?  Thank you!!!
    Eric

    Hello Omke,
    This problem lasted for two days.  I tried many suggestions but nothing worked immediately.  Suddenly I turned my computer on last night and it was fixed...inexplicably.  Not sure what worked but something did.  I appreciate you taking the time to offer advice. 
    Best,
    Eric

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

  • Batch process to add Javascript to PDF files

    Hi All,
    I have written a small piece of Javascript for my PDF files. The idea is to add a date stamp to each page of the document before printing. To do this, I have added the following code to the "Document Will Print" action:
    for (var pageNumber = 0; pageNumber < this.numPages; pageNumber++)
    var dateStamp = this.addField("Date","text",pageNumber,[700,10,500,40]);
    dateStamp.textSize=8;
    dateStamp.value = "Date Printed: " + util.printd("dd/mmm/yyyy",new Date());
    My question is this: Does anyone know of a way to batch process a whole directory (of around 600 PDF's) to insert my Javascript into the "Document Will Print" action of each file?
    Many thanks for any information you may have.
    Kind regards,
    Aaron

    > Can I just confirm a few things please? Firstly, should I be going into "Batch Sequences" -> "New Sequence" and selecting "Execute JavaScript" as my sequence type?
    Yes, you are creating new batch sequence that will use JavaScript.
    > My second question is, how can I insert my body of script into the variable "cScript"? I have quotation marks and other symbols that I imagine I will have to escape if I wish to do this?
    You ca either use different quotation marks or us the JavaScript escape character '\' to insert quotation marks
    Your will print code will only work for a full version of Acrobat and not Reader, because Reader will not allow the addition of fields. Also each time you print you will be creating duplicate copies of the field. So it might be better to add the form field only in the batch process and then just add the script to populate the date field in the WillPrint action.
    // add form field to each page of the PDF
    for (var pageNumber = 0; pageNumber < this.numPages; pageNumber++)
    var dateStamp = this.addField("Date","text",pageNumber,[700,10,500,40]);
    dateStamp.textSize=8;
    this.setAction("WillPrint", "dateStamp.value = \"Date Printed: \" + util.printd(\"dd/mmm/yyyy\",\new Date());");

  • Why it is taking too much time to kill the process?

    Hi All,
    Today,one of my user ran the calc script and the process is taking too much time, then i kill the process. I am wondering about one thing here even it is taking too long to kill the process, generally it will not take more than 2 sec. I did this through EAS.
    After that I ran Maxl statement
    alter system kill request 552599515;
    there is no use at all.
    Please reply if you have any solutions to kill this process.
    Thanks in advance.
    Ram.

    Hi Ram,
    1. Firstly, How much time does your calculation scripts normally run.
    2. While it was running, you can go to the logs and monitor where exactly the script is taking time .
    3. Sometimes, it does take time to cancel a transaction ( as it might be in between).
    4. Maxl is always good to kill ,as you did . It should be succesful . Check the logs what it says ,and also the "sessions" which might say "terminating" and finish it off.
    5. If nothing works ,and in the worst case scenarion , if its taking time without doing anything. Then log off all the users and stop the databas and start it .
    6. Do log off all the users, so that you dont corrupt any filter related sec file.
    Be very careful , if its production ( and I assume you have latest backups)
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • Opening and closing files very slowly -MAC - Batch processing broke illustrator...

    I have been batch processing between 15 and 30 thousand svg files over the past few days(simply centreing the orbjects on the art board mergring overlapping objects and saving as AI's) - the individual files are very small 20kb max. this was working fine for a while but suddenly illustrator now takes nearly 30 seconds to open any one individual file - svg or otherwise - and also when I look at illustrator in activity monitor as files are opened illustrator uses 100% of the CPU.
    I have no Idea if this is related to all of the batch processing Ive been doing lately but Its the last thing Ive done so...
    Also I have run disk utility on my machine uninstalled and reinstalled illustrator with no success..
    Anyone have any thoughts?
    Thanks!!

    Have you tried at least restarting AI or rebooting the computer?

  • Please Help, Issues when batch processing Multi Frame images in Fireworks

    I hope someone will know how to do this and tell me where I am going wrong.
    Objective 1
    I have a large number of images that all have the exact same number of frames (4) and are all exactly the same size that I want to get resized, cropped and water marked (when I say 'watermarked I mean have my websites logo pasted in a specificlocation on each frame, I have my websites logo as a seperate .png file which I copy from).
    Current Process
    I create a command which will crop the image then paste my companys url/log onto the first frame, move it to the correct location on the frame then copy it again and then paste it onto each of the other frames, the command then resizes the image tot he exact proportions I want.
    I start a batch process and use my command, making sure that I also export from the .png to animated gif (and I edit the settings to make it 256 animated gif).
    Error 1
    The process described above resizes and crops my images however it does NOT put the watermark in the correct place, it seems to put it int he right place on the first frame and then in a different place on all the followingn frames thus giving the effect of the watermark jumping around. Which is obviously NOT what I want.
    Question 1
    Please let me know what process I should be following to correct the Error 1 above.
    Objective & Question 2
    I want to do exactly the same thing as shown above but this time the files have a varying number of frames (from 2 to 45 frames (or instances as CS4 seems to call them)). Is there a way to paste my logo to the to the exact same location on ALL frames?
    Other information
    I have tried WHXY Paste extension and I can not see how to use that to solve the issue. I have also tried 'Paste in Place' however I can not see how to use the Paste In Place extension as it is not appering in my list of commands.
    Many thanks in advance for your help.
    Andy

    Andy, you could start a batch process which will do most of the things you are asking for. THe batch process can be done using Fireworks. The right way to start is going to Archivo / Procesar por Lotes and then follow all the different option this tool has to offer.  Yes, I know I gave you the names in Spanish but that is the way I use Adobe Fireworks.
    I hope this was usefull for you!
    Best regards,
    Frank Meier | Curso Arreglos Florales

  • How to extract data from offline PDF files as batch processing

    Hello.
    I want to use Adobe Interactive forms as batch processing.
    For instances,
    1. Users download offline PDF files.
    2. Users inputs data on their local PCs.
    3. Users upload these PDF files in one folder.
    4. Program can read data form PDF files on that folder. and put data to ERP at night.
    I' d like to know how to implement a program with Java or ABAP.
    Regards.
    Koji.

    Hi,
    It's possible to do it but first be sure that the SAP system can read the directory while your program is executed in background .
    Then you have to read the content of the directory and process each file you found.
    Look at this standard ABAP object cl_gui_frontend_services , you will find method for browsing a directory and retrieve list of file .
    Afterwards you have to process each file , for this have a look at this wiki code sample i wrote for processing inbound mail with adobe interactive form, it should help you [Sample Code for processing Inbound Mail with Adobe Interactive Forms|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCodeforprocessingInboundMailwithAdobeInteractive+Forms]
    Hope this help you .
    Best regards.

  • Report as batch process?

    Can we run a Z program or report as background process or batch process? if yes, how?

    Hi,
    1.  Go to SE38 give the program name and then from Menu path Program->Execute->Background. You need create the variant for selection screen
    2. Go to SE38 give the program name and then execute on the selection screen goto Menu path Program->Execute->Background.

  • Need help with batch processing picture packages

    Hi, I am having trouble batch processing picture packages is CS2.  (Windows).
    I have hundreds of images that need to be processed into picture packages and would love to find a speedier way to do this.
    I know how to create an action.  I know how to batch process from this action.  I also know how to create picture packages, but I cannot get the final result I am after - please read on....
    I have seperated all the images into their seperate folders for each style of picture package required.
    I can create an action for the picture package required and then do a batch process on the particular folder, but this leaves all the picture packages open on the desktop - as when you chose the close and save in the batch process - this only closes and saves the original image - the picture package has been created as a new document and is on the desktop still open - named Picture Package 1, Picture Package 2 - etc etc.
    I hope I am making some kind of sense here... (??!!)
    What I would like to happen is that the picture package will be saved over the original file (or to a new folder) with the original file name of the original image or maybe even with an adjustment to file name (e.g - orignal file name sc1234.jpeg - new file name sc1234packA.jpeg)
    So is this possible to do??  I'm thinking there must be a way.... i'm sure there are many group photographers out there who come across this everyday??
    Otherwise I have to save each picture package manually to original file name (via searching though files to match the original image to the picture package....) Very time consuming.
    Thanks for your help (in anticipation)...
    Jodie

    hmm - thanks for that - sounds like I will have to try and find some info and assistance regarding the scripting - it may be something I need to look into at a later time in the future....
    At the moment though I will have to plod along with this method I guess!
    Thanks for your assistance...
    Jodie

  • Can I use Organizer to change the .jpg size of all photos in a folder in one batch process?

    We're using wa-a-ay too much disk space for a growing photo collection.   My daughter is a camera freak with four kids -- need I say more? 
    In my current test folder the sizes of the original photos range from 2.3 MB to 4.2 MB.  I picked one photo at random and printed the original and then three more, saved by PSE9 as .jpg files at maximum, middle, and minimum quality settings on plain letter-size paper, and again on 4x6 photo paper.  It takes a magnifying glass and a calibrated eyeball to detect a difference on the plain paper, and it's even more difficult on the photo paper.  I think I should relieve the pressure on the hard drive's capacity by reducing everything to a more reasonable size; after all, the minimum-quality print takes up less than one percent of the disk space as does the maximum-quality print.
    I have a hunch that I can accomplish this in a batch process with Organizer, but that's all I have is the hunch -- not the know-how.   I would like someone to step me through the process.
    I also expect a lecture on why I shouldn't do this.  Go for it; I'll listen.
    Thanks,  Bud

    Bud,
    BudV a écrit:
    I also expect a lecture on why I shouldn't do this.  Go for it; I'll listen.
    You are the one to judge... Will you regret it if you want to use some pictures with the original size and resolution at a later time?
    Yes, you can use either the organizer or the 'process multiple files' command of the editor. But first you should think about two questions:
    - Are you ready to backup the full resolution and size files before the 'shrinking'? External USB drives with big capacities are available and affordable.
    - From what you are saying, the optimal size would be for files resized for 4" x 6" format at 300 ppi in jpeg quality 8 to 10.
    Resizing from the Editor: Use the 'process multiple files' command and click the 'Same as source' button. I would not do it without a sound backup first... This can be done folder by folder.
    Resizing from the Organizer : Use the 'Export' command. That command leaves the original and puts the resulting files in a new folder. The resulting files are NOT included in the catalog.This means that keeping your organization (categories, albums, tags...) will be tricky; same if you are using a folder organization system.
    Another solution with a third party software such as Faststone photo resizer:
    - Absolutely do a full backup before
    - run the resizing options in the external software so that the files are resized without being moved. That replaces the originals.
    - If you are using the organizer, your organization will be kept, but the file sizes in the catalog and thumbnail databases will be wrong. You can regenerate the thumbnail cache by deleting the thumbs.5.cache file in your catalog folder; it will be automatically rebuilt.
    That has worked for me in the past... no guarantee for you!

  • How to use the same (selection) paths in multiple images for batch processing?

    I have a whole bunch of photos I need to batch process, but, when creating an action for this, I stumbled upon the problem that the paths I selected with the pen tool, and saved under the "Paths" tab need to be in every image for to be used in the action. I did try to solve it for some time, but couldn't figure out. Any ideas?
    Many Thanks
    Carlos

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

Maybe you are looking for

  • Sharing Interactive Reports

    Once a person has created an interactive report (not the working report). The new report will only appear for the user who created it. Is it possible to shate the report with other users. Gus

  • Exporting HTML5 from Flash CC is WORSE then in CS6!!!

    Maybe the new way of "Convert to HTML5 canvas" is better for some people -- but for me its a total joke! I used to be able to have 1 fla file -- and in that - I'd have my as3 code - and my JS code - in one file. Now - I've got to have one myGame-swf.

  • Replace PS CS3 with PS CS4

    A simple question (sorry to be a bother):  my civic organization has Adobe CS3 running on a Mac intel system, OS-X 10.5.  We want to do a full install (not an upgrade) of Photoshop CS4, but we will replace only Photoshop CS3 and none of the other CS3

  • Cannot open CS4 file in Premier Pro CS5

    I have a composition I made in Premiere Pro CS4 last week. CS5 arrived yesterday and I have just started trying to use. My version has been updated to 5.0.2 seemingly without issue by the Adobe Updater. I'm on Windows 7 64-bit Premium Edition. My CS5

  • Acrobat 8 Freezes can't no longer save pdf files or do anything else

    Mac OS X 10.5.6 - Acrobat 8 Prof 8.1.4 I can no longer do anything on this application, I've been using this app for months already and I was able to save, save as, print, convert existing PDF as form. Everytime I open a PDF file and create a form fr