# Calling job scheduler to process work object

**URL:** <https://forums.pega.com/t/calling-job-scheduler-to-process-work-object/1815>\
**Category:** General\
**Tags:** agent-desktop, insurance, 8-6, solutions-consultant\
**Created:** [October 16, 2021, 9:12am UTC](https://forums.pega.com/t/calling-job-scheduler-to-process-work-object/1815 "2021-10-16T09:12:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnkitGupta](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@AnkitGupta](https://forums.pega.com/u/AnkitGupta)\
**Post date:** [October 16, 2021, 9:12am UTC](https://forums.pega.com/t/calling-job-scheduler-to-process-work-object/1815/1 "2021-10-16T09:12:07Z")

</div>

HI there,

I am having activity which is creating work object for my case type and is working fine as expected while running standalone.

Now as per requirement i need to call this activity under job scheduler to automatically create cases, but when ever this is happening it is taking case to broken flow.

Error it is showing as :

Step

(AssignmentSF2)

Error

**Unable to open assignee’s Data-Admin-Operator-ID record System.**

Also I have noticed that update operator is **Job(RuleName).**

---

<div class="post-metadata">

**Author:** ![ArshadPashaMohammed](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/arshadpashamohammed/32/23790_2.png) [@ArshadPashaMohammed](https://forums.pega.com/u/ArshadPashaMohammed)\
**Post date:** [October 16, 2021, 12:36pm UTC](https://forums.pega.com/t/calling-job-scheduler-to-process-work-object/1815/2 "2021-10-16T12:36:05Z")

</div>

@AnkitG83

When the case is created directly through activity , first assignment after case creation may have current user and it is working fine.

When case is getting created through job scheduler , as the task is executing by backend requestor when it reaches the first assignment , it will not find the operator hence giving the error in this case.

Check the assignment routing . and provide the routing information as per business requirement.

let me know if any other details are needed.

---

<div class="post-metadata">

**Author:** ![Amit\_Deb](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/amit_deb/32/4514_2.png) [@Amit\_Deb](https://forums.pega.com/u/Amit_Deb)\
**Post date:** [October 16, 2021, 3:39pm UTC](https://forums.pega.com/t/calling-job-scheduler-to-process-work-object/1815/3 "2021-10-16T15:39:56Z")

</div>

@AnkitG83 Please provide the routing configuration used for the assignment, if it is current user, then it might fail for backend processing, because there is no physical operator present for the background processing requestor.

---

<div class="post-metadata">

**Author:** ![Avik\_Mitra](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/avik_mitra/32/12750_2.png) [@Avik\_Mitra](https://forums.pega.com/u/Avik_Mitra)\
**Post date:** [October 18, 2021, 4:10am UTC](https://forums.pega.com/t/calling-job-scheduler-to-process-work-object/1815/4 "2021-10-18T04:10:40Z")

</div>

@AnkitG83

try routing the first assignment to a workbasket and see if issue persists or not. If it resolves the issue, try defining a work party and route conditionally based on case creation source, JS/Manual/Any other service.
