cancel
Showing results for 
Search instead for 
Did you mean: 

SAC catch error from Planning Sequence

ERivetti
Newcomer
0 Kudos

Hi all,

I'm launching a planning sequence in SAC which throws an error if some conditions are met. The error is caught in SAC but the code after keeps running, even if the planning sequence raised the error. I need the code to stop, but do not know the instruction to use.

I need something like a try/catch statement, or a "On Error go to", to stop th code execution in SAC

Thanks

 

View Entire Topic
Susanne_Helbig
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear @ERivetti,

I'm using the following code to stop the execution of my function:

 

var DataActionResponse = DataAction.execute();
if (DataActionResponse.status !== DataActionExecutionResponseStatus.Success){
break;
} 

 

I hope this helps

Best regards
Susanne