HR case is not getting close complete from work In progress & also giving error Error Message

Alex_3
Tera Contributor

Hello All,

when a we changes the HR Case state to Closed complete the case record shows as complete and state changes back to work in progress.

The state does not change to closed complete but 'Ready' when the we tries to close the case using the UI button or changing manually the state, completing the case closure box.

And we are not finding the case in Active=true filter even though the state is Ready.

This above scenario is not happening if we close case from Ready to close complete, but it is happening when we are closing case from Work In Progress to Close Complete.

Also displaying error msg Error Message

"Access to api 'setWorkflow' from scope 'sn_hr_core' has been refused due to the api's cross-scope access policy"
Need help to figure out this.
Thank you
1 ACCEPTED SOLUTION

Hello,

 

Just to be sure ready is the default state set for many of the HR templates:-

 

Saurav11_0-1669218091034.png

 

You can do one thing please use script tracer:-

 

Saurav11_1-1669218175463.png

 

Start the tracer while performing the action of closing the case and it will be set to ready, then you can check what all scripts ran during the action and identify the script causing the issue.

 

Please mark my answer as correct based on Impact.

View solution in original post

11 REPLIES 11

There is a BR which sets the state value to 10 which is the value for ready.

 

The name of the BR is "Unassigned"

 

Saurav11_0-1669215172053.png

 

Please mark my answer as correct based on Impact.

Alex_3
Tera Contributor

Made it inactive but still the issue is happening.  

hello,

 

What is the issue that is happening right now?

Alex_3
Tera Contributor

The BR which was affecting has nothing to do with Ready state still the state was setting to ready, as suggested by you  OOB BR unassigned is inactive still state changed to ready.

Hello,

 

So are you saying when the hr case is getting created why does it always set to ready?