Quantcast
Channel: SCN : Popular Discussions - SAP Business Process Automation by Redwood
Viewing all 1466 articles
Browse latest View live

Job chain step maximum restart on error triggering additional step with skipped status

$
0
0

Hi All,

 

We have business requirement to restart the job step automatically if it errors 1's, So we have configured the Job chain with Final Status Handlers on Error "Restart Step" Action and also set the maximum restart to 2 (includes initial run). 

 

Auto restart on error of step is working fine, but its triggering total 3 runs of that same step with 1. Error, 2. Error and 3. Skipped status.

 

Ex.  Job chain Z_Test_Chain has 3 steps and if step 2 error's then we need this same step to be auto restarted only 1 time.

    

              Z_Test_Chain

                     Step 1-->Step 2-->Step3    

 

Out put status after run.

 

          Z_Test_Chain --    Error

          Step 1            ---   Completed

          Step 2            ---   Error

          Step 2            ---   Error

          Step 2            ---   Skipped

          Step 3            ---   Chained

 

Step 2 is getting restarted as we expected but every time we see additional step 2 with skipped status along with the auto restart.

 

let me know if any one experienced similar issue and why CPS triggering that additional step which is not required. Let me know if you need additional details on this issue.

 

Thanks

Nidhish.


Operating system job error

$
0
0

Hi Experts, We have installed agent for operating system jobs and after this scheduled one operating system job but getting below error .Could you please help on same .It looks some permission issue but not able to figure out which one .We are using BPA version 9 Error usr/sap/redwood/CPS09/output_joblog/jobs/14764/7515/run_KSH[122]: .[1]: /transfer/KSH/SAP/job_protection_on: cannot execute [Permission denied].. Regards Gurbakhsh

job failing in CPS

$
0
0

Hi,

 

Some of our jobs are failing in CPS, but successful when manually run in target system. Logs are not showing in target system as well.

 

We have tried re-importing the jobs but till failing. Pls advise, thanks.

 

- angelo

Overdue jobs

$
0
0

Hi All,

 

If a file is not present, we are putting the overdue job to 'held' status. But once the file arrives, when we try to release the job which is in 'held' state, the job still goes to held state. Is this the default behavior of overdue jobs?. Please advise. We are on M33.104.


Thanks,
Lohit

Spool Output script issue

$
0
0

Hi All,

 

Greetings..!!!

 

Recently we have upgraded from CPS to BPA. After migration we are facing issue with the script which sends the spool output of ABAP program from the job. Below is the script.


import com.redwood.scheduler.api.exception.ParameterDefaultValueUnavailableException;
import com.redwood.scheduler.api.exception.SchedulerAPIPersistenceException;
import com.redwood.scheduler.api.model.Job;
import com.redwood.scheduler.api.model.enumeration.JobStatus;
import com.redwood.scheduler.custom.Destination;
import com.redwood.scheduler.custom.libraries.destinations.DestinationCallback;
import com.redwood.scheduler.custom.libraries.destinations.FormatNotSupportedException;
import com.redwood.scheduler.custom.libraries.destinations.ObjectNotFoundException;

{
   Destination destination = new Destination(jcsSession, jcsJob, jcsErrLog, CallId, JobId, new DestinationCallback()
     {
       public void prepareDestinationJob(String srcJobFormatPartitionName, String srcJobFormatName, Destination dest)
         throws ObjectNotFoundException, ParameterDefaultValueUnavailableException, SchedulerAPIPersistenceException, FormatNotSupportedException
       {
         {
           Job destJob = dest.prepareJob("GLOBAL", "EMAIL_OUTPUT_DefineThis", PRIORITY, QUEUE_PARTITION, QUEUE_NAME, RECURRENCE_DATA, STARTTIME, STATUS_ON_SUBMIT, SUBMIT_FRAME_PARTITION, SUBMIT_FRAME_NAME, TIME_WINDOW_PARTITION, TIME_WINDOW_NAME);
           destJob.getJobParameterByName("P_TO").setInValueString(P_TO);
           destJob.getJobParameterByName("P_ATTACH_FILE").setInValueString(P_ATTACH_FILE);
         }
       }

       public boolean precondition(Destination dest)
       {
         return true;
       }
     });
   destination.execute();
}

The script EMAIL_OUTPUT_DefineThis  used in the above program is as below.

Job ${P_PARENT} SAP JOB ${pParentJobName} has finished

[Headers]
subject=Job ${P_PARENT} SAP JOB ${pParentJobName} has finished
[Attachments]
@{name}-@{index}.txt=Parent:?type=output

 

After running this below error we have received as exception.

 

Failed to set return code of current job

 

Constraint violation on Job of Process Definition EMAIL_OUTPUT_DefineThis

 

Validation failed for parameter 'null': java.lang.NullPointerException:while trying to invoke the method com.redwood.scheduler.api.constraint.ConstraintJobParameter.getInValueString() of a null object loaded from local variable 'jp'

After update to BPA: System-Processes don't reschedule (JCS-102016)

$
0
0

Hi Guys,

 

after having successfully updated one of our Scheduler instances to V9, we did another update today on our Test-Machine.

 

For currently four "System"-processes, we get the following Error (in two OP-Messages):

 

1.

Rescheduling of new process for recurrence failed for process System_ProcessKeepClauses with latest process 6,213,248. The queue that it must be submitted to does not have a resource that is required to run it; fix this first. If already fixed, do you want to retry?

2.

Work failed because of exception when rescheduling job group for job 126338318
JCS-102016: Cannot prepare non-current copy of process definition: Process Definition System_ProcessKeepClauses (Copy from 2009/09/24 16:43:51,357 MET)
  at com.redwood.scheduler.model.method.impl.JobDefinitionMethodImpl.prepareInt(JobDefinitionMethodImpl.java:871)
  at com.redwood.scheduler.model.JobDefinitionImpl.prepareInt(JobDefinitionImpl.java:3008)
  at com.redwood.scheduler.model.method.impl.JobGroupMethodImpl.createJobInt(JobGroupMethodImpl.java:345)
  at com.redwood.scheduler.model.JobGroupImpl.createJobInt(JobGroupImpl.java:1296)
  at com.redwood.scheduler.core.JobGroupUpdater$PresubmitJobsIterator.getNext(JobGroupUpdater.java:638)
  at com.redwood.scheduler.core.JobGroupUpdater$PresubmitJobsIterator.<init>(JobGroupUpdater.java:355)
  at com.redwood.scheduler.core.JobGroupUpdater.rescheduleAll(JobGroupUpdater.java:1117)
  at com.redwood.scheduler.core.JobGroupUpdater.rescheduleJobGroup(JobGroupUpdater.java:856)
at com.redwood.scheduler.action.impl.RescheduleJobGroupActionProcessor.rescheduleJobGroup(RescheduleJobGroupActionProcessor.java:658)
  at com.redwood.scheduler.action.impl.RescheduleJobGroupActionProcessor.access$3(RescheduleJobGroupActionProcessor.java:648)
at com.redwood.scheduler.action.impl.RescheduleJobGroupActionProcessor$3.performWork(RescheduleJobGroupActionProcessor.java:460)
  at com.redwood.scheduler.apiint.model.UnitOfWorkManager.perform(UnitOfWorkManager.java:14)
  at com.redwood.scheduler.apiint.model.UnitOfWorkManager.perform(UnitOfWorkManager.java:30)
at com.redwood.scheduler.action.impl.RescheduleJobGroupActionProcessor.rescheduleJobGroup(RescheduleJobGroupActionProcessor.java:448)
  at com.redwood.scheduler.action.impl.RescheduleJobGroupActionProcessor.rescheduleJobGroupRetry(RescheduleJobGroupActionProcessor.java:325)
  at com.redwood.scheduler.action.impl.RescheduleJobGroupActionProcessor.execute(RescheduleJobGroupActionProcessor.java:172)
  at com.redwood.scheduler.action.ActionWorker.doWork(ActionWorker.java:87)
  at com.redwood.scheduler.action.ActionWorker.doWork(ActionWorker.java:54)
  at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:81)
  at java.lang.Thread.run(Thread.java:763)


The following Processes are affected:

  • System_UpdateJobStatistics
  • System_DeleteJobFiles
  • System_Ignored_Alert_Reporter
  • System_ProcessKeepClauses

 

The processes in the Monitor have an old ProcessDefinition, they all seem to have been updated by the "System_Upgrade" Process, after updating the Scheduler.

 

Since these are System-Processes, we cannot reschedule them, neither can we select the fitting SubmitFrame when trying to schedule them anew.

 

We tried rebooting the System several times, always with new OP-Messages, reading the Error above.

How can we solve this ASAP, we plan on updating our production system this Sunday, unless we can't fix this.

 

Thank you!

Jonas

 

Edit:

Our BPA-Version is 9.0.14.2

End of Free of Charge or OEM Version with BPA 9?

$
0
0

Hello,

We have CPS 8.0 with the license Free of Charge now called OEM.

We are trying to migrate from CPS 8.0 to BPA 9.0.

This is a excerpt from the SAP BPA Install Guide version 9.0.13.1.

---------------------

5.6 Installing a License

.....

A OEM license is only available for installations on SAP NetWeaver.

.....

You can also use the OEM license, which does not require you to request a license. On the licensing page, you

need to fill in your company name and choose Generate OEM License.

--------------------

 

In our installation we can´t find "Generate OEM License" button like we did in CPS 8, so we decided to create an OSS ticket.

 

The answer was:

----------------------------

There is no OEM license available for SAP BPA Version9. If you are

interested in obtaining an enterprise license, please contact you

local SAP/Redwood Sales representative.

There does exist a free OEM license for SAP CPS Version8. You can

activate the OEM license in CPS 8 yourself at first logon.

---------------------------

 

Any of idea why the oficial documentation says one thing and the SAP Support the opposite?

 

Who is right?

 

Best regards,

Iñigo

Overdue jobs

$
0
0

Hi All,

 

If a file is not present, we are putting the overdue job to 'held' status. But once the file arrives, when we try to release the job which is in 'held' state, the job still goes to held state. Is this the default behavior of overdue jobs?. Please advise. We are on M33.104.


Thanks,
Lohit


jdbc drivers in sapcps custom_driver

$
0
0

Hi,

I need to create a redwood scrpit that access to a remote database using oracle_jdbc driver.

I managed to get the jdbc driver on a library an it connects to the database and it works ok

The question is

I have a custom library that where I have all my special functionalities

My redwood script will have to be related to that library and also the jdbc driver.

 

So the question is. do I have to add the jdbc jar file to  my library? i'm affraid it might cause overload on the system since that library is used on may jobs.

or is it posible to have two libraries related to a specific job. or to have one library linked to another library

 

Thanks for your answers.

Facing issues while creating a time window in Redwood

$
0
0

Hello All,

 

 

We have a new requirement wherein we need to run a job every month on every 4th Saturday of the month exception being December where it should run on 31st .

 

Please if we could get some suggestions .

 

Please let me know if more details are to be required .

 

Regards,

Ashish P

SAP CPS ui not accessible

$
0
0

Hello everyone,

 

I have recently started installing and configuring Job Request Management and SAP CPS 8.0 by Redwood on SAP Solution Manager 7.1

 

The Job Requesting has been configured succesfully.

 

Now I have installed the SAP CPS component on the Solution Manager Java-stack via SUM. But whenever I try to access the ui for CPS

I am faced with the following error:

 

cps.JPG

 

There are a couple of things we have already noticed that pop up whenever we try to access this page.

 

First of all in the log file: D:\usr\sap\<SID>\<instance>\j2ee\cluster\server0\log\applications.2.txt we notice the following errors on trying to connect to the page:

 

#1.5 #005056B0527201C70000025200001C3800052327F44CFD3C#1446029393392#/Applications/Scheduler#redwood.com/scheduler-ear#com.redwood.scheduler.security.filter.SecurityFilter#J2EE_GUEST#0##9EC89D537D6111E59393000000370FE6#9ec89d537d6111e59393000000370fe6-0#9ec89d537d6111e59393000000370fe6#SAPEngine_Application_Thread[impl:3]_62##0#0#Info#1#com.redwood.scheduler.security.filter.SecurityFilter#Plain#Denying access to /ui: no username###

 

#1.5 #005056B0527201C70000025300001C3800052327F44D1629#1446029393398#/Applications/Scheduler#redwood.com/scheduler-ear#com.redwood.scheduler.infrastructure.translation.TranslationLoader#J2EE_GUEST#0##9EC89D537D6111E59393000000370FE6#9ec89d537d6111e59393000000370fe6-0#9ec89d537d6111e59393000000370fe6#SAPEngine_Application_Thread[impl:3]_62##0#0#Info#1#com.redwood.scheduler.infrastructure.translation.TranslationLoader#Plain#Starting to load translations.###

 

Second of all. When we open the SAP MMC on the server and right-click the instance to analyse the developer trace. The next error shows up:

 

Time: 2015 10 28 10:13:16:018

Severity: Error

Filename: defaultTrace.6.trc

Details: SourceName: com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl

Application: redwood.com/scheduler-ear

Location: com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl

User: J2EE_GUEST

Session: 0

DSRComponent: 1F4697187D5411E58F600000003E4342

DSRUser: 1f4697187d5411e58f600000003e4342-0

DSRTransaction: 1f4697187d5411e58f600000003e4342

ThreadName: SAPEngine_Application_Thread[impl:3]_32

GroupLevel: 0

GroupIndent: 0

Relatives: /System/Server/WebRequests

Text: application [scheduler] Processing HTTP request to servlet [UI Controller Servlet] finished with error.

The error is: java.lang.RuntimeException: Error loading translations.

Exception id: [005056B06619005F000005DB00001ADC000523269AD1516E]

 

 

We have tried restarting the ICM, restarting the entire server, ... no help yet.

 

Any help would be much appreciated.

 

Kind regards

Difference between 'always' and 'only one' Autosubmit options in Wait event

$
0
0

Hi All,

 

 

I tested some jobs with  'always' and 'only one' Autosubmit options by placing some files. Whenever the file is placed, the instance of the job is getting submitted irrespective of the previous instance of the job is running or not.

Can one please explain is there any much difference between the two options 'always' and 'only one' Autosubmit options in Wait event tab.

 

 

Thanks,

Tinku

Unable to generate Report in CPS for finding out the frequency of jobs running in the system

$
0
0

Hi,

 

 

 

We are indeed to generate report which contain the details of job frequency of jobs(like every 5 mins, or once in every day) running in our system. I tried with available filter options but no use.

 

 

 

Can anyone give me clue on this.

 

Regards,

Renu

How to customize E-Mail Alerts to show the failed Step/Job names in SAP CPS?

$
0
0

Hi Expert,

 

I am using Advanced E-Mail Customization using Job Definition to send out Email alerts from CPS and it's  a copy of Definition System_Mail_Send  created as Job Type Mail.

 

I am receiving E-Mail Alerts with attachments but how do I get a Job Chain/Step Names in the E-Mail Body ?

 

The Scenario is, Job Chain (JC1) has two steps. Step 1 has 2 jobs (Job 1 & Job 2) and Step 2 has Job 3 to send email alert.

 

10-22-2015 9-15-41 PM.jpg

The Parameter ${jobname}:{jobid} is returning the name of Job 3 (The Job which triggered the notification) but we want to see the name of either Job 1 or Job 2 or Step 1 names.

 

If it's possible to define using parameters, please let me know the Constraint Data filed value.

 

Any help would be highly appreciated.

 

Thanks,

Shiva

Preventing jobs from over running in SAP CPS

$
0
0

Hi All,

 

We've got a business requirement that if a job over run after certain time (ex., 7 AM UK Time) it should automatically get cancelled. How can I go about doing this in CPS. Are Event Definitions helpful in this regard. If so how?

 

If not getting cancelled I can also configure a mail to be sent if a job is over running so that decision can be taken as to cancel the job or not. Is this possible?

 

Thanks & regards,

Harsha


Unable to generate Report in CPS for finding out the frequency of jobs running in the system

$
0
0

Hi,

 

 

 

We are indeed to generate report which contain the details of job frequency of jobs(like every 5 mins, or once in every day) running in our system. I tried with available filter options but no use.

 

 

 

Can anyone give me clue on this.

 

Regards,

Renu

Creating A Time Window in Redwood CPS

$
0
0

Looking for help in setting up a Time Window in Redwood CPS, and would like some suggestions.  Client is asking for a job to be scheduled at 1:00PM on the Last Workday of the month, and again at 1:00AM on the following day.  The last workday is set up, but having issues with the next day, as it can be any one of the following:  2nd to last day of the month, last day of the month, or the first day of the next month.  Any ideas on how this can be set up?

Daylight savings time

$
0
0

Hi All,

 

We are in US/EASTERN time zone.We are approaching our Go-Live date. Can you please explain how the scheduled jobs will be affected during day light savings time in March and November and also the actions to be taken.We are on M33.104.

 

 

Thanks,

Chandu

How to customize E-Mail Alerts to show the failed Step/Job names in SAP CPS?

$
0
0

Hi Expert,

 

I am using Advanced E-Mail Customization using Job Definition to send out Email alerts from CPS and it's  a copy of Definition System_Mail_Send  created as Job Type Mail.

 

I am receiving E-Mail Alerts with attachments but how do I get a Job Chain/Step Names in the E-Mail Body ?

 

The Scenario is, Job Chain (JC1) has two steps. Step 1 has 2 jobs (Job 1 & Job 2) and Step 2 has Job 3 to send email alert.

 

10-22-2015 9-15-41 PM.jpg

The Parameter ${jobname}:{jobid} is returning the name of Job 3 (The Job which triggered the notification) but we want to see the name of either Job 1 or Job 2 or Step 1 names.

 

If it's possible to define using parameters, please let me know the Constraint Data filed value.

 

Any help would be highly appreciated.

 

Thanks,

Shiva

jdbc drivers in sapcps custom_driver

$
0
0

Hi,

I need to create a redwood scrpit that access to a remote database using oracle_jdbc driver.

I managed to get the jdbc driver on a library an it connects to the database and it works ok

The question is

I have a custom library that where I have all my special functionalities

My redwood script will have to be related to that library and also the jdbc driver.

 

So the question is. do I have to add the jdbc jar file to  my library? i'm affraid it might cause overload on the system since that library is used on may jobs.

or is it posible to have two libraries related to a specific job. or to have one library linked to another library

 

Thanks for your answers.

Viewing all 1466 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>