Command runs multiple times

I'm using CR 11.  I have a report with one command.  This command provides the data for the report detail, but it is also used as the source for 3 LOVs for filtering.
The issue I have is this:  The report takes to long to generate.  When I monitored the database activity, it looks like the command runs 4 times for each run of the report.  I would have expected that the command needs to run just once, since it returns the same data each time.
Is this behavior normal?  If not, is there a workaround?

As I said, LOV's are subreports and each subreport makes it's own connection. If you have BOE when saving a report with an LOV it saves the LOV as a subreport, you can then run the subreport to prepopulate the List.
Using a Cascading Parameter will do exactly what you are doing.... First parameter is the Country, which then filters the cities in that Country and then after selecting the City it filters the on the zipcode....
Actually you would want to add the State/Province in there also....
There is a sample report on your hard drive called Prompting or get if from here:
https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
It shows you how to use Cascading parameters
Don

Similar Messages

  • JOB in Sql Server Agent should run multiple times.

    Hi Guys,
    I have a ETL SSIS job in Sql Server Agent, Which should run multiple times.
     1. For Example : I scheduled a job at 10:00 PM, If the job fails at 10:00 PM it should run automatically again at 10:10 PM, if the job fails again at 10:10 PM then the job should run at 10:40 PM.
    If the job gets success at first attempt i.e 10:00 PM, then it should not run at 10:10 PM.
    Note : The time difference between jobs is 10 minutes and 30 minutes. And i know that we can run the job at regular intervals.
    Thanks in advance

    Just add retry attempts to whatever number you want (2 as per your original explanation) in Job step properties as below
    Have a logic to include a delay of 10 mins . You can make use of WAITFOR function for that
    see
    http://www.mssqltips.com/sqlservertip/1423/create-delays-in-sql-server-processes-to-mimic-user-input/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Stored proceadure is running  multiple times from crystal..Urgent...

    Hi friends,
    I am running the stored proceadure from crystal report. And it is executing two or three times. I can come to know through debug points which i placed in sotered proc.
    It is very urgent...any help is appreciated.
    Thanks,
    Vijay

    I am having the same issue.  I have a very simple XI crystal report that calls a stored procedure. I have checked the report option you mentioned - it is not checked and i have removed all subreports to take away any question about them.  It is still calling the procedure multiple times.
    My oracle stored procedure is getting executed THREE times in one run of my crystal report!
    I have created a crystal report based on a Oracle stored procedure and ODBC driver.  This report is published on a Business Objects Server XI Release 2. 
    In trying to figure out why the report was having efficiency issues, I have modified the procedure to write to another table so I can see what is happening in the report.  After executing the crystal report, I found that the procedure is called THREE times.  Here is the output from the table that I write to after the Crystal Report is executed from Enterprise:
               0 DEBUG - 28-JUL-2008:09:43:50: Starting STPR
             100 DEBUG - 28-JUL-2008:09:43:52: Done with 1
             240 DEBUG - 28-JUL-2008:09:43:52: End Program - Right after opening Cursor
             240 DEBUG - 28-JUL-2008:09:43:52: Right before opening Cursor
               0 DEBUG - 28-JUL-2008:09:43:53: Starting STPR
             100 DEBUG - 28-JUL-2008:09:43:55: Done with 1
             240 DEBUG - 28-JUL-2008:09:43:55: End Program - Right after opening Cursor
             240 DEBUG - 28-JUL-2008:09:43:55: Right before opening Cursor
               0 DEBUG - 28-JUL-2008:09:43:56: Starting STPR
             100 DEBUG - 28-JUL-2008:09:43:58: Done with 1
             240 DEBUG - 28-JUL-2008:09:43:58: End Program - Right after opening Cursor
             240 DEBUG - 28-JUL-2008:09:43:58: Right before opening Cursor
    When calling the report directly in Crystal, I get mixed results, sometimes it is the same, sometimes the procedure is called once but I see debug lines for the first two of the four rows in the second call and sometimes it is only called once. 
    Is there something that can make sure the procedure is called once and only once.  We are running into database efficiencies.
    Thanks!

  • Object serialized many times - code in finalizer runs multiple times

              Using on Solaris:
              Weblogic Version 5.1 sp 8
              JDK version: java full version "1.3.0-RC"
              Clustering with:
              weblogic.httpd.session.persistentStoreType=replicated
              I have an object that stores information in a linkedList member.
              The first time a user passes through a servlet, one of these
              objects is created for them. It is stored in session.
              The object implements serializeable. Upon finalization, this
              object is supposed to flush its data once and only once to a log file.
              The object's constructor runs once. It is set and retrieved once from HttpSession.
              As WebLogic shuts down, the object is then serialized and deserialized many times.
              The finalizer of this object then runs many times as weblogic shuts down (17 or
              so times), duplicating the logging of the information
              each time. Each time, doing a this.toString() in the finalizer prints out a different
              object reference.
              I tried setting and incrementing both a static and
              instance level variable and printing them out during finalization. The static
              class variable gets incremented as you would expect, the non-static instance variable
              is always incremented from 0 to 1 each time a finalizer runs. So there is no linkage
              between the instances at the non-static level.
              We are using clustering (though only one app server was running during the test),
              JSPs, servlets, etc.
              We need to have the finalizer for each original instance of the object execute
              its logging functionality once and only once regardless of serialization/deserialization.
              Any ideas as to how this can be done or another place to put the logging code
              so it will be executed after a user session ends?
              Thanks!
              Peter
              

    Using finalization is a very bad idea, both from the performance and program
              correctness points of view.
              I think you can look into using javax.servlet.http.SessionBindingListener
              (valueUnbound(event) will be called when object is unbound from the
              HttpSession) instead.
              Peter Gluck <[email protected]> wrote:
              > ---------------------------
              > Using on Solaris:
              > Weblogic Version 5.1 sp 8
              > JDK version: java full version "1.3.0-RC"
              > Clustering with:
              > weblogic.httpd.session.persistentStoreType=replicated
              > -------------------------
              > I have an object that stores information in a linkedList member.
              > The first time a user passes through a servlet, one of these
              > objects is created for them. It is stored in session.
              > The object implements serializeable. Upon finalization, this
              > object is supposed to flush its data once and only once to a log file.
              > The object's constructor runs once. It is set and retrieved once from HttpSession.
              > As WebLogic shuts down, the object is then serialized and deserialized many times.
              > The finalizer of this object then runs many times as weblogic shuts down (17 or
              > so times), duplicating the logging of the information
              > each time. Each time, doing a this.toString() in the finalizer prints out a different
              > object reference.
              > I tried setting and incrementing both a static and
              > instance level variable and printing them out during finalization. The static
              > class variable gets incremented as you would expect, the non-static instance variable
              > is always incremented from 0 to 1 each time a finalizer runs. So there is no linkage
              > between the instances at the non-static level.
              > We are using clustering (though only one app server was running during the test),
              > JSPs, servlets, etc.
              > We need to have the finalizer for each original instance of the object execute
              > its logging functionality once and only once regardless of serialization/deserialization.
              > Any ideas as to how this can be done or another place to put the logging code
              > so it will be executed after a user session ends?
              > Thanks!
              > Peter
              Dimitri
              

  • Cisco Agent Desktop software running multiple times in Task Manager

    Has anyone seen an issue with Cisco Agent Desktop v 6.6(1) where after closing the program completely it stays running in Windows Task Manager. We have the Agent software installed on 8 PCs and only one of them is having this happen to them. One time the PC had 15 instances of Agent.exe running in Task manager. A reboot of the PC corrected the issue, however when the issue does happen her chat box within the Agent software shows as Initializing and the agent's name appears and reappears on the Supervisor Desktop software.
    If anyone needs any other info as to the versions we're using or anything else please let me know. I have searched all over the net for a solution and haven't found anything. My next step is to do a TAC case, but I wanted to post something here to see what responses I got.
    Thanks,
    Nick

    Hi Nick,
    Check this bug:
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtd75811
    Multiple Agent.exe Instances Created Causing CAD Agent to Disappear.
    Regards
    Gurpreet

  • Processing Pattern task runs multiple times

    I am trying out the processing pattern with some long running tasks.
    The tasks are submitted by the first node in the cluster to start up. I seem to see multiple copies of my task running as I start up other nodes in the cluster. It would appear that as the new nodes join the cluster Coherence migrates the submission entry to another node and this causes the task to start again on that node. This is OK, but it does not stop the task that was already running on the original node.
    Am I doing something wrong or is the because my tasks are long running (actually they never end).
    JK

    Jonathan,
    With the current implementation you do get a rescheduling of the Task, but if it is already owned by another node it should not actually start executing (checked by the TaskRunner). This behavior doesn't really work reliably in both the failover and repartioning cases why we are revamping this in the next release. The JIRA for the revamping of this behavior is INC-262.
    Thanks,
    Christer

  • Report runs multiple times (from jsp) - on server

    Hi
    I have rdf reports deployed on the server and when i run them through the jsp, I see that it goes to rwservlet three times. Can anyone put a light into this as to what might be going on?
    Thx!

    what's your url?

  • How to prevent an application for running multiple times

    I have to prevent launching my java application more than once. i.e. if the application is launched and the user tries to launch again, it should simply display an error msg and quit.
    I tried using java.util.Prefs but it does not help the cleanup does not occur in case of an abnormal termination. (The Runtime.addShutdownHook does not help as well). Please help asap.

    Sir,
    Have you tried forum search feature?
    "One Application instance" problem has been asked and answered many many time here - and he is easily solved.
    Simple solution is to use resource which is cleaned up my operating system for you when application terminates.
    This way, resource is released whether application terminates nicely or from nasty crash.
    Mr ServerSocket is someone who could help you out here.
    When application starts, attempt to listen on a ServerSocket on a well-known port (e.g either hard coded in to, or configured for your app).
    Leave ServerSocket listening for duration of application.
    If another application instance tries to start on same box, it will not be able to listen on same ServerSocket port - and you can close the app.
    In general, try searching before posting: Most questions have been answered many times before - and you'll probably get an answer quicker by searching first than by posting straight out.

  • Running Ecatt script multiple times

    I have created a ecatt script for ME21N. I need the script to run multiple times.So,i have used Do Enddo statement and put the number of times to be executed.
    The script is running fine for the first time. then its not running. From the second time,its putting blank values into the fields and not saving the data.
    How can i run the script multiple times.
    Thanks,
    Aparna.

    Hello,
    When you run the script multiple time then you will have to pass different values to the fields so that every time the script is run with new set of values and the data is created.
    So in the script you will have to parameterize the fields and then handle the position of the fields so that when the script is run for the first loop counter the data is maintained in the first line of the transaction(for example) and the increament the counter for the second run so that the control moves to the second line for the second execution similarly for the multiple runs.
    Alternatively parameterize the fields with the table containing so many entries as the number of times you want to run the script and for each execution one set of entry from the table is picked and used in the execution for the next run the second set of values is used and so and so forth.
    Hope it answers your question.
    Thanks and Best regards,
    Ajay

  • FM RV_INVOICE_DOCUMENT_READ not getting KONV details when ran multiple times

    Hi, I'm calling the Function Module 'RV_INVOICE_DOCUMENT_READ' with the parameter KONV_READ as 'X' thru one of the Output type via Smartform driver program from VF02. I found that this FM was not returning KONV(XKOMV) details. When I debugged, I came to know that when this FM is run multiple times, only for the initial time it fetches KONV details. This FM was triggered by standard program first and later was called in my Smartform Driver program. Inside this FM, it was checking against an internal table 'TABGL' and was fetching KONV details if it is initial. For the first time this internal table(TABGL) will be initial and after fetching KONV details, it is filled with Condition record(KONV-KNUMV). So for the second time call of this FM, KONV details are not fetched. To confirm this I ran this FM from SE37. For the first time it fetched KONV details. In the same session I executed again. This time it didn't populate KONV details, whereas VBRK, VBRP, VBPA details were fetched even in the second run. Could you please let me know if we can use this FM for getting KONV details irrespective of number of times it has been called before. Thanks, Adithya M.

    Try to call RV_INVOICE_REFRESH before calling RV_INVOICE_DOCUMENT_READ again.
    Regards,
    Raymond

  • Photoshop CC 2014 Extension - CEP Event callback is triggered multiple times per single event

    Trying to make my extensions listen for bunch of events and it's turning out to be a real pain in the ***.
    I'm hoping there's someone here who has a bit more experience playing around with these.
    I used the example code from here ( Page 43 ): http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/CC14_Extension_S DK.pdf
    I've modified the code just a little. I removed some unnecessary things from it. I also added a counter, to try to visualize the issue.
    Every time I pasted the code here, the global variable seemed to duplicate. So, eeeeh...  the example code can be found here.
    The problem is:
    I close one document to trigger the event, but for some reason the callback seems to run multiple times.
    Even better, it doesn't seem to be super consistent about it. Sometimes it repeats only couple of times and sometimes it repeats 160 times.
    It seems like every time the extension panel is reopened, it comes up with a new number.
    Currently, if I close a document, it seems to trigger the callback 15 times
    Since this is screenshot, you'll have to take my word for it. I only closed a single document and the code ran 15 times.
    Am I doing something wrong by any chance?
    edit:
    I believe I just found out the reason and a way to recreate the issue.
    I've occasionally tested the extension by closing and opening the panel, which seems to have caused the issue.
    It looks like every time I close and then open the panel, it... adds one more run time to the stack.
    - Refreshing the panel from chrome doesn't seem to affect it.
    When I restart photoshop, it resets. So after the very first opening of the panel, the event triggers the callback only once.
    I forgot to mention that the host application events work just fine without these issues.
    In fact, I tried to use documentAfterActivate before, but as far as I could find, there is no way to kind of filter out specific events within host application events.
    For instance, I can't specify something different to happen when a new document is opened.
    As very much a side note:
    documentAfterActivate has its own side effect due to the way photoshop works.
    It is triggered when you:
    Create a new document
    Open a new document
    Switch to an open document
    It's the "Switch to an open document" part that makes this event listener also trigger when you close a document.
    Because when you close a document, photoshop switches back to the previous document and that in turn triggers the event listener when it shouldn't, I suppose.
    Of course it doesn't trigger the event when you close the last document as there is no document to switch to at that point.
    ...but this is beyond the scope of the original question.

    I was so tired last night that when I found out the cause of it, I never even thought about unregistering...
    I decided to unregister it when the panel is opened instead.
    This does indeed get rid of the issue.
    Thanks, cbuliarca.
    (function () {
      var csInterface = new CSInterface();
      function init() {
           themeManager.init();
           function registerPhotoshopEvent(in_eventId, register) {
                // Added the next line
                var register = register === "clear" ? "UnRegisterEvent" : "RegisterEvent";
                // Modified the next line
                var event = new CSEvent("com.adobe.Photoshop" + register, "APPLICATION");
                event.extensionId = csInterface.getExtensionID();
                event.appId = csInterface.getApplicationID();
                event.data = in_eventId
                csInterface.dispatchEvent(event);
           var number = 0;
           csInterface.addEventListener("PhotoshopCallback" , function(event) {
                number = number + 1;
                console.log( number );
           var closeEventid = "1131180832"
           // Added the next line
           registerPhotoshopEvent(closeEventid, "clear");
           registerPhotoshopEvent(closeEventid);
      init();

  • EO entity level validations being executed multiple times

    Hi,
    I'm using JDev 10.1.3.4, BC, JSF
    I have defined multiple entity level method validators in my entity object. On commit I get the desired results except for the fact that each of my method validators runs multiple times when they should only run once. So I end up with twice the method validator messages that I should. And if I put any additional messaging in in the validators themselves I end up with 10 times the desired messages.
    What are some of the reasons that would cause this looping through the validators. I assume I have done something to cause this but can not figure out what it is. Any ideas on what I should look for?
    Note : Also using JHeadstart but I don't think it should be a factor at the entity level.
    Thanks,
    Jim
    Edited by: 170412 on May 5, 2009 4:11 PM

    Hi,
    1) Set the Foreign key using setAttribute Methods ? When u create a VO based on Multiple EO's, there should be some relationship between those 8 EO's like Primary key & Foregin key. And when u perform Commit on this all the value from ur beans will get saved to the database. But the Foreign u need to set independently using setAttribute method becoz it wont get saved by its own.
    2) If i'm doing the validations at EO level, those setters and getters will be called before the Create(), Update() and Delete()
    methods in the EOImpl class. Is that true?Yes, you are right it will get called for create and update operation but not for Delete.
    Regards,
    Gyan

  • LogicalDeletePollingStrategy adapter running multiple updates and using CPU

    We have multiple SOA processes that poll tables in a database with a Logical delete polling strategy. After polling the table the db adapter does an update to flag the record as read.
    We have a production database and test database for the source system, and production and test SOA 11.1.1.4 systems. After cloning our production database to our test database, I will see the update statement for the adapter running multiple times in the test database. However, their are no records in the table that meet the criteria for the polling.
    The polling frequency is every 10 minutes, and if the update statement did anything it would take less than 1 second. However I will see 5-10 copies of the update statement running and using resources.
    Has anyone seen a db apapter do this?

    maybe unit of order and unit of work can help you on that, though i haven't any experience on both topics :
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms/uow.html
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms/uoo.html
    or the mediator supports some sort of sequencer, see : http://www.xenta.nl/blog/2010/05/14/oracle-soa-suite-11g-resequence-messages-in-mediator/

  • Issues when running multiple apps on same JRE?

    I've created an application that launches other Java applications, all running on the same JRE. I've noticed that this results in significant memory savings (60% or more). Performance doesn't seem to be measurably affected, but I've never run more than 4 applications at the same time on the same JRE.
    Does anyone know of any performance issues in situations like this? JRE limitations? Any information would be appreciated.

    "It's just not obvious from the 1.3 API docs that the classLoader is what's responsible for associating a set of classes with a set of threads."
    No, that's not what I was implying. The default classloader caches the definition of previously loaded classes (ie, bytecode, static variables). By default, there is no way to unload a class. Static variables will also retain their values -- which could confuse an application that is run multiple times.
    This is the suggested implementation defined in the JVM spec:
    http://java.sun.com/docs/books/vmspec/html/ConstantPool.doc.html
    Basically, if a class has already been loaded, it returns it. You can write your own custom classload to prevent this (as the link you found suggests) or use multiple classloaders.
    Imagine what happens when you write an application and then recompile a class WHILE running your application. Will the next instance of that class be updated? The answer depends on whether your classloader will reload the class from disk, or use a cached instance in memory (as the default one does).

  • For each loop container executing multiple times....

    Hi,
    We are using SQL SERVER version 2005.
    I am having a For each loop container and inside that container there are multiple Sequence containers and inside each sequence containers there are Execute SQL Tasks (which are just stored procedures).
    Now, when i run sequence containers individually they are running perfectly fine.
    But when I run the whole For each loop container, it is just running and running multiple times without ending the process.
    I really couldnt figure out what would be the issue?
    Any ideas????
    Thanks....

    Hi grk666,
    To check whether the values stored in the object type variable are correct, you can disable all the Sequence Containers within the Foreach Loop Container, and add a Script Task with the following code to display the string type variable value (supposing
    you use the string type variable StrVar to store the value retrieved from the object variable):
    MsgBox(Dts.Variables(“StrVar”).Value.ToString())
    It would be helpful if you could post a screenshot to show the package execution at runtime in BIDS.
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for