YP
Scout

k2 workflow exception

Jump to solution

Hi -

I am calling get user details method of AD smartobject in workflow. User is not present in active directory and workflow in throwing an exception and getting stuck.

How to ignore the exception and move to next user? I want workflow to continue even there is an error as I know it is known error to me.

I am using k2 5.4, in previous versions it seem to be ignoring the error and working was moving on to next step.

Labels: (1)
0 Kudos
Reply
3 Replies
paulk
Scout

Re: k2 workflow exception

Jump to solution

You can choose to continue on error in the options then handle that with logic in the workflow further down the line.

 

paulk_0-1650442896396.jpeg

Cheers

0 Kudos
Reply
YP
Scout

Re: k2 workflow exception

Jump to solution
I wonder same option is not available for set variable step.
0 Kudos
Reply
paulk
Scout

Re: k2 workflow exception

Jump to solution

Can't you read the value into the variable in its own SmartObject call like above then immediately after check to see if the field has a value in a decision and action as appropriate?

 

If you are populating other values in the set variables step, then pull this check out into its own step.

 

Cheers

0 Kudos
Reply