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).
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.
@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.
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.