cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete a job definition

nanda_kumar21
Active Contributor
0 Kudos

Hi everyone,

I've imported the process chain definition from BW system, say ZPC_XX_DAILY_LOAD.

I have used it in one of my job chains as a step. Later on, I made changes to the job chain, including changing its name and removing the ZPC_XX_DAILY_LOAD from it.

Now when I am trying to delete the job definition - ZPC_XX_DAILY_LOAD, it gives me the following error:

JCS-102090: Object 'Job Definition JOB_CHAIN_DAILY_LOAD (Copy from 2012/08/06 20:08:13,753 America/Los_Angeles)' of type Job Definition cannot be modified

the job chain doesn't exist, because I edited the same chain and saved it in a different name, and that job chain doesn’t event include that job definition.

I can’t find anything in the related objects either.

Can some one please let me know how to solve this?

Thanks

Nanda

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Nanda,

Can you help me on deleting job using script by their JobIDs?

Thanks!

Former Member
0 Kudos

Hi Nanda ,

You have to delete each and everything associated with that job. i.e.  chain, any dependent job & the import result also ( mentioned above... you have imported it into CPS)  ..in addition if you already ran that job even once delete that too.

Regards.

FG

Former Member
0 Kudos

Every job containing the timestamp from the error message needs to be deleted using the job monitor. Then, the job System_ProcessKeepClauses needs to run. There will be a line saying "Deleting unreferenced branched object copies" in the job log. Afterwards, the job definition should be deletable.

Former Member
0 Kudos

Creating Isolation Groups and Assigning them to Users

Use

With an isolation group, a user is limited to interacting with objects of the same isolation group as well as objects

from the GLOBAL isolation group. You assign users to isolation groups in the Security section in the navigation

bar. The user must either have the role scheduler-isolation-administrator or a custom role granted which has the

redwood.com/ManageSchedulerIsolation action to be able to add users to an isolation group. Users can have

multiple isolation groups; in this case, the user needs to choose an isolation group for the session during login.

(I cant find my own Isolation group - but maybe you can)

nanda_kumar21
Active Contributor
0 Kudos

hi Gregor,

Thanks for your input. I dont have any isolation groups at all. I just have the Global isolation group. What the error code actually tells is that the job is still being used by an another definition or chain. But in my case, it doesn't exist.

Please help me solve this issue.

Former Member
0 Kudos

Hi Nanda,

Unfortunately, I have the same issue with some jobs, that were wrong in my system.

Maybe you might consider raising an OSS note?

(to me, it's not really urgent to solve this issue - I have other more urgent ones)

Former Member
0 Kudos

Nanda,

Have you run the job before you changed the jobdefinition and name?

If you have run the job (even just once) and after that you renamed it and cant find it anymore, try to find in the job overview the old job(I had to do this once too - you can also search for this job in the job definitions overview(I mean the view you get, when enlarging that triangle symbol in the jobdefintion view).

CPS keeps a history of jobs - delete that and all other related jobs(-Logs), and then you can try to delete that jobdefintion.

as long as CPS has a history of that job, you cannot delete it.

Hope that works for you.

regards

Greg

nanda_kumar21
Active Contributor
0 Kudos

hi Gregor,

I have deleted all the job logs, and the only related objects i could find in the overview are self-referential (screenshot).

When i try to delete the job, i get only one error log, saying it is used in a job chain, which doesnt exist any more. (If there are any more related object i should have got them as extra errors, but i didnt)

this is the stack trace:

JCS-122035: Unable to persist: JCS-102090: Object 'Job Definition JOB_CHAIN_DAILY_LOAD (Copy from 2012/08/06 20:08:13,753 America/Los_Angeles)' of type Job Definition cannot be modified

          at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:882)

          at com.redwood.scheduler.model.SchedulerSessionImpl.persist(SchedulerSessionImpl.java:823)

          at com.redwood.scheduler.ui.model.impl.FormImpl.modelActions(FormImpl.java:729)

          at com.redwood.scheduler.ui.model.impl.LifeCycle.run(LifeCycle.java:224)

          at com.redwood.scheduler.ui.servlet.Servlet.handleRequest(Servlet.java:95)

          at com.redwood.scheduler.ui.servlet.Servlet.doPost(Servlet.java:52)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

          at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)

          at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)

          at com.redwood.scheduler.module.impl.ModuleFilter.doFilter(ModuleFilter.java:157)

          at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)

          at com.redwood.scheduler.security.filter.SecurityFilter.doFilter(SecurityFilter.java:674)

          at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)

          at com.redwood.scheduler.servlet.RequestCharsetFilter.doFilter(RequestCharsetFilter.java:197)

          at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)

          at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)

          at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

          at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)

          at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)

          at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)

          at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)

          at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

          at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

          at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

          at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

          at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

          at java.security.AccessController.doPrivileged(Native Method)

          at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)

          at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

Caused by: com.redwood.scheduler.model.exception.NonModifiableObjectException: JCS-102090: Object 'Job Definition JOB_CHAIN_DAILY_LOAD (Copy from 2012/08/06 20:08:13,753 America/Los_Angeles)' of type Job Definition cannot be modified

          at com.redwood.scheduler.model.method.impl.BranchedUniqueNamedApplicationObjectMethodImpl.vetoPhaseHandler(BranchedUniqueNamedApplicationObjectMethodImpl.java:153)

          at com.redwood.scheduler.model.method.impl.JobDefinitionMethodImpl.vetoPhaseHandler(JobDefinitionMethodImpl.java:771)

          at com.redwood.scheduler.model.BaseSchedulerEntityImpl.vetoPhaseHandler(BaseSchedulerEntityImpl.java:981)

          at com.redwood.scheduler.model.SchedulerEntityImpl.vetoPhaseHandler(SchedulerEntityImpl.java:409)

          at com.redwood.scheduler.model.RootImpl.vetoPhaseHandler(RootImpl.java:759)

          at com.redwood.scheduler.model.NamedRootObjectImpl.vetoPhaseHandler(NamedRootObjectImpl.java:316)

          at com.redwood.scheduler.model.PartitionableObjectImpl.vetoPhaseHandler(PartitionableObjectImpl.java:403)

          at com.redwood.scheduler.model.ApplicationObjectImpl.vetoPhaseHandler(ApplicationObjectImpl.java:392)

          at com.redwood.scheduler.model.BranchedUniqueNamedApplicationObjectImpl.vetoPhaseHandler(BranchedUniqueNamedApplicationObjectImpl.java:299)

          at com.redwood.scheduler.model.JobDefinitionImpl.vetoPhaseHandler(JobDefinitionImpl.java:7085)

          at com.redwood.scheduler.model.listeners.ConstraintCheckVetoListener.modelModified(ConstraintCheckVetoListener.java:39)

          at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.informListeners(LowLevelPersistenceImpl.java:956)

          at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectListRetry(LowLevelPersistenceImpl.java:246)

          at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.access$0(LowLevelPersistenceImpl.java:162)

          at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl$WriteDirtyObjectListUnitOfWork.execute(LowLevelPersistenceImpl.java:101)

          at com.redwood.scheduler.persistence.impl.OuterPersistenceUnitOfWorkManager.execute(OuterPersistenceUnitOfWorkManager.java:38)

          at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectList(LowLevelPersistenceImpl.java:158)

          at com.redwood.scheduler.cluster.persistence.ClusteredLowLevelPersistence.writeDirtyObjectList(ClusteredLowLevelPersistence.java:90)

          at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:861)

          ... 29 more

Please help me solve this issue.

Former Member
0 Kudos

Hi Nanda,

Well, now it gets tricky.....and you're stuck at the same thing as I found myself to be stuck too...

I have found a special reference guide.....and I'v searched for the errormessage:

JCS-102090    An object refers to another object that is not allowed due to isolation.

Now....that Isolation thing might point us to a solution.

But I do not know how to access isolation groups.....

Maybe it's worth a try to stop the process server on which that job was defined(or the queue) and then try to delete that job?

maybe this helps?

BR

Greg

nanda_kumar21
Active Contributor
0 Kudos

i am using M33.7 - licensed version, if that matters.