# Schedule not visible on UI

**URL:** https://community.temporal.io/t/schedule-not-visible-on-ui/12201
**Category:** Community Support
**Created:** [May 22, 2024, 9:52am UTC](https://community.temporal.io/t/schedule-not-visible-on-ui/12201 "2024-05-22T09:52:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nikunj\_Mehadia](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nikunj_mehadia/32/5366_2.png) [@Nikunj\_Mehadia](https://community.temporal.io/u/Nikunj_Mehadia)
#### Post date: [May 22, 2024, 9:52am UTC](https://community.temporal.io/t/schedule-not-visible-on-ui/12201/1 "2024-05-22T09:52:47Z")

</div>

I am trying to create multiple different schedules in java sdk, on a self hosted cluster  
Yesterday I created a schedule, then closed the java program, so the scheduled workflow was in the running state, waiting for workers. I terminated the workflow and deleted schedule from the ui.  
Later, without any code changes, I am now able to create more than one schedule, from backend java program, with same schedule ID, and not able to view any schedule on the ui.  
I even tried to suspend the cluster and restart it, but there was no change.  
More over, I am having 2 almost similar functions for scheduling, one is working fine but the other is not, it waas working yesterday though.

---

<div class="post-metadata">

### Author: ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)
#### Post date: [May 22, 2024, 11:32am UTC](https://community.temporal.io/t/schedule-not-visible-on-ui/12201/2 "2024-05-22T11:32:04Z")

</div>

Hi thanks,

Could you share the server version and steps to reproduce this? Including code snippets if possible

Thank you,  
Antonio

---

<div class="post-metadata">

### Author: ![Nikunj\_Mehadia](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nikunj_mehadia/32/5366_2.png) [@Nikunj\_Mehadia](https://community.temporal.io/u/Nikunj_Mehadia)
#### Post date: [May 22, 2024, 11:52am UTC](https://community.temporal.io/t/schedule-not-visible-on-ui/12201/3 "2024-05-22T11:52:09Z")

</div>

version: temporal version 0.11.0 (server 1.22.4) (ui 2.21.3)  
Steps:

1. new WorkflowServiceStubs
2. new ScheduleClient
3. create new schedule by setting arguments, WorkflowType, startAt, endAt, cronExpression, taskQueue, workflowId, scheduleId

I am not able to understand how, but I have two almost identical functions doing scheduling, for one it is visible on UI, but not for the other

---

<div class="post-metadata">

### Author: ![Nikunj\_Mehadia](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nikunj_mehadia/32/5366_2.png) [@Nikunj\_Mehadia](https://community.temporal.io/u/Nikunj_Mehadia)
#### Post date: [May 23, 2024, 8:40am UTC](https://community.temporal.io/t/schedule-not-visible-on-ui/12201/4 "2024-05-23T08:40:48Z")

</div>

The schedule was visible earlier, but suddenly it stopped appearing on the UI  
code: " ScheduleClient scheduleClient = ScheduleClient.newInstance(service.getService(),ScheduleClientOptions.newBuilder().setNamespace(temporalNamespace).build());  
"

The same scheduleClient creation command is working in one method, but not in other.

---

<div class="post-metadata">

### Author: ![Nick\_Purcell](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nick_purcell/32/5813_2.png) [@Nick\_Purcell](https://community.temporal.io/u/Nick_Purcell)
#### Post date: [September 5, 2024, 4:25pm UTC](https://community.temporal.io/t/schedule-not-visible-on-ui/12201/5 "2024-09-05T16:25:34Z")

</div>

I have run into a similar issue when creating a schedule via kotlin sdk, deleting it in the ui manually, and then I am unable to see create/see schedules via sdk anymore:

temporal-ui: 2.15.0  
io.tempora:temporal-kotlin:1.20.0  
io.temporal:temporal-sdk:1.20.0  
temporalio/server:1.20.3

```auto
fun createSchedule(
    options: WorkflowOptions,
    workflowInterface: Class<*>,
    scheduleId: String,
    cronSchedule: String
): ScheduleHandle {
    val service = workflowClient.workflowServiceStubs
    val scheduleClient = ScheduleClient.newInstance(service)
    val existing = scheduleClient.listSchedules().collect(Collectors.toList()).firstOrNull { it.scheduleId == scheduleId }
    if (existing != null) {
        return scheduleClient.getHandle(scheduleId)
    }
    val action = ScheduleActionStartWorkflow.newBuilder()
        .setWorkflowType(workflowInterface)
        .setOptions(options)
        .setArguments()
        .build()
    val spec = ScheduleSpec.newBuilder()
        .setCronExpressions(Collections.singletonList(cronSchedule))
        .build()
    val schedule = Schedule.newBuilder()
        .setAction(action)
        .setSpec(spec)
        .build()
    return scheduleClient.createSchedule(
        scheduleId,
        schedule,
        ScheduleOptions.newBuilder().build()
    )
}

```

Note: this is using the SQLite default db for temporal
