When trying to add an AutoSys scheduler to AAI there is an error: Caused by: java.lang.IllegalArgumentException: Conjunction has no components <JobName>
search cancel

When trying to add an AutoSys scheduler to AAI there is an error: Caused by: java.lang.IllegalArgumentException: Conjunction has no components <JobName>

book

Article ID: 370550

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

When trying to add an Autosys scheduler you may see an error like below:

INFO [AddScheduler] Error occurred; deleting partially-added scheduler: com.termalabs.common.JawsException: System error
    at com.termalabs.server.app.scheduler.AddScheduler.addScheduler(AddScheduler.java:262)
    at com.termalabs.server.app.scheduler.AddScheduler.addScheduler(AddScheduler.java:174)
    at com.termalabs.server.restapi.service.SchedulersService$1.run(SchedulersService.java:269)
Caused by: java.lang.IllegalArgumentException: Conjunction has no components: <JobName>
    at com.termalabs.server.cache.scheduler.ContextChecker.checkJobConditionStructure(ContextChecker.java:537)
    at com.termalabs.server.cache.scheduler.ContextChecker.checkJob(ContextChecker.java:459)
    at com.termalabs.server.cache.scheduler.SchedulerUpdateBuilderImpl.newJob(SchedulerUpdateBuilderImpl.java:377)
    at com.termalabs.server.autosys.converter.AutosysToJawsJobConverter.updateAutosysJobs(AutosysToJawsJobConverter.java:870)
    at com.termalabs.server.autosys.converter.AutosysToJawsJobConverter.convertJobs(AutosysToJawsJobConverter.java:487)
    at com.termalabs.server.app.scheduler.SchedulerHelper.runConverterFirstTime(SchedulerHelper.java:128)
    ... 2 in common

 

When searching for this job in Autosys WCC it was not showing up.

 

When querying the ujo_job table in the AutoSys database for the job name it did show up with multiple entries, one of which was marked active the others inactive.

 

When using "autorep -J <jobName> -q" the job did show up.

 

Environment

AAI with an Autosys scheduler

Resolution

It was found that there were some special characters within the job definition such as  (  ()  ()  () 

 

If this job is not needed you can try to delete it with with the delete_job or delete_box commands within JIL in AutoSys, then check to see if the job still shows up in the autorep command above.

 

If it is still showing up, please work with AutoSys Support in order to remove these jobs.