Deleting Scheduled Instances

Hi,

We are using BOXIR2 with SP1 and SP2. Recently we have got a lot of scheduled objects and we want to reduce them to the needed ones only.

In doing so, I have made the changes in SETTINGS in CMC i.e.

SETTINGS>Limit>Delete excess instances when there are more than N instances of an object =1

Similar change has been made in the specific root folder where the reports are kept. I have restarted all the services and CMS but all the instance are still there. Aren’t the exesive instances supposed to be deleted. Whats the other way to delete these instances. We are rolling out so we donot need these current instances. At the same time I cannot use INSTANCE MANAGER as there are around 2 Million instances and its not feasible to delete the objects by selecting 100 objects everytime using instance manager.

Any Ideas?


ADM171 :pakistan: (BOB member since 2005-05-23)

Hi

can you please experiment with the instances of one particular document.
can you schedule it again so that it creates a new instance
From memory, I think the rules about instance limits only apply when the next instance is created ?


richmona :australia: (BOB member since 2003-04-15)

Also these settings are set wihin marix between groups and folders. How did you implement those limits?

Regards
Sebastien

This thread is quite old but still very relevant. I, too, am attempting to instill some order to the chaos of excessive instances. I want to set a general rule of no more than 5, 10, or 20 instances depending upon Group assignment.

  1. Almost all are Crystal Reports.
  2. I set global limits in the CMC under the Settings tab.
  3. I ran over 3000 report instances. Many were multiple instances of the same reports, but overall there were at least 1000 unique reports.
  4. Where I expected to see the limits honored, I still found many more. For one user alone, I found 155 excess instances in 4 reports. Of them, 2 reports had no recurring instances and accounted for over 100 of the instances but the other 2 did have them and did run but still had nearly 55 excess between them.

What else must I do? I have 45 users, each of which average 20+ reports. I am miserable at the prospect of manually reviewing and weeding out all of them.


MarcW :us: (BOB member since 2006-08-01)

Instance limit restriction picks up and you will notice the instance limit only after the report is ran on the scheduler. In other words this restriction is only applied after the report ran on the scheduler.


Mahi (BOB member since 2004-07-22)

I understand the limits will not automatically apply without a nudge by the scheduler but what would cause the limit to be ignored when a new instance is generated by it?

I have several examples of reports with histories going back over a year. I applied a global limit of 28 days (through CMC Settings > Limits) with the expectation that numerous histories would shrink dramatically as the scheduled instances began to run. It has been several days now, a good number of such reports have run, and still the histories are enormous. I can see no evidence that any instance was deleted.

I checked the report objects to ensure there were no specific limits that would override the global settings and found that was not the case.

I am looking at over 30,000 excess instances spread very unevenly across nearly 6,000 report objects (one offender has over 4,000 instances on its own). Trying to manually reduce the clutter will take days to complete.

What more must I do?

Thanks,
Marc


MarcW :us: (BOB member since 2006-08-01)

I’ve never tried this option of deleting instances after certain days. My wild guess is this option might only be applicable for certain users/groups specified there and the actual instance might never get deleted?


Mahi (BOB member since 2004-07-22)

I created a group and populated it with the bulk of my user base (excluding only Administrator type users) and applied the 28 day rule to it:

        Name: "Rpt-28days"
   Full Name: ""
      Object: "Group"
 Description: "Members of this group may retain instances of reports for up to 4 weeks."
Maximum Days: "28"

I did not check the box above that reads “Delete excess instances when there are more than N instances of an object” because I was not looking to limit to a specific number. I could check the box and leave it at the default of 100 - which aught to be enough to handle 28 days worth of almost all reports - if that check box is required to make the process work. But if it is, will it delete more instances than are required to maintain the 100 count if the date criteria calls for them to be deleted? What do you think?


MarcW :us: (BOB member since 2006-08-01)

It think it will delete any excess instances after 100 once this setting is on.


Mahi (BOB member since 2004-07-22)

I think I have hit upon a sad and troubling truth.

If the limits are set before the excess instances exist then those limits will apply. If, on the other hand, the limits are set after the excess instances exist then the limits are ignored.

I have experimented with two folders to prove the point. In one, I left the excess instances alone; but I deleted the excess from the other. The result was that the objects of the first folder continued to increase instances without regard to the limit, but the objects of the second reached the limit and did not exceed it.

I consider this to be a severe flaw in the implementation of limits. I believe Business Objects needs to review and revise the process to ensure limits are enforced regardless of the state of the objects (number of retained instances) before the limit was configured. I agree the limit should be evaluated and imposed when a new instance is generated - requiring a system-wide search and destroy process upon definition of a limit is impractical and unwarranted. I disagree that the limit should be disregarded if there are already too many instances - the process should automatically delete as many instances as necessary to conform to the limit.

Do you agree? Do you disagree? Why?


MarcW :us: (BOB member since 2006-08-01)

I don’t think what you just stated is true, as I’ve seen that it deletes instances in either case. One caveat being, if the # instances is too large than it might take some time to delete all those excess instances or might be insufficient memory.


Mahi (BOB member since 2004-07-22)

Instances are only DROPPED when the CMS is Idle, so it can take a while for your LIMIT rule to take effect.


MJRBIM :canada: (BOB member since 2007-03-23)

If the CMS must be idle before the drops are performed then it will be a very long time before I see results. My users are spread across the North American continent and schedule reports to run overnight per their time zone. I am lucky to see more than 30 minutes between transmission of report results (I know this because of my use of hMailServer as a store and forward E-Mail proxy - see What happens to SMTP delivery when Internet link goes down?).

In light of your explanation, it behooves me to spend the time manually weeding out the excess to start the process and rely upon the system to maintain it from then on.

Thanks for the help and the informative explanation.
Marc


MarcW :us: (BOB member since 2006-08-01)

We also use the APOS InstanceManager tool to do manual clean-ups when required…


MJRBIM :canada: (BOB member since 2007-03-23)

I use it and InfoScheduler on a regular basis. Thanks for the suggestion.


MarcW :us: (BOB member since 2006-08-01)

BOXI PROS!

When I came to this thread, I thought I would get some solution instead of sitting and deleting 60,000 Instances from our repository :cry:

So is it confirmed that even BOXI 3.1 too has no capability of Bulk deletion of instances? Atleast based on the status like “Success” or “Fail” ?

Please confirm if we are are bound to use 3rd party tool :hb:

Luckysoul


luckysoul30 (BOB member since 2006-07-13)

There is a built-in INSTANCE MANAGER in BOE-3.1, but it is not as robust as the 3rd Party or SDK self-written tools.


MJRBIM :canada: (BOB member since 2007-03-23)

@MJRBIM,

Well dont want to comment on the INSTANCE MANAGER being robust :cuss: but definitely I have not seen a dumb application like INSTANCE MANAGER!

Now I have around 200,000 instances in repsitory! and I can delete only 100 instances at a time :hb:

I Even tried changing the preferences to 500 items per page…but it seems loading 500 items is the most tedious job for INFOVIEW :wah: and on top of that when you select all 500 instances and select delete, You will never be able to click on OK button :crazy_face: Its really sick man!!!

Well I cannot use any 3rd Party tools… So if you could please give a small hint on the SDK side, I will be happy to try it out in my environment :smiley:

Thanks Again,
LuckySoul


luckysoul30 (BOB member since 2006-07-13)

@ ALL,

Well as I mentioned in my previous post above that it is not possible to delete the instances in bulk ex. delete 20,000 successful instances.

But recently I did set the Limits at at the folder level for the instances not to exceed “1”.

After that I restarted all the BO Services multiple times but all the 200,000 instances remained intact.

But suddenly today I saw that all the objects in the folders are having only 2 Instances i.e. 1) Recurring 2) Last successful instance.

I am still not sure how to trigger the LIMITS to delete the excess instances :shock:

Please please do let me know how the Limts get executed ?? Is there any special button which need to be pressed :roll_eyes:

Thanks,
Luckysoul


luckysoul30 (BOB member since 2006-07-13)

Lucky Soul,

This will only limit future instance generation.
If you had wanted to limit the generation, of all these isnatnces, you should have had it checked after installation.

Cheers,

Mark.


Mak 1 :uk: (BOB member since 2005-01-06)