cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data Upload Starter issue in SAC

raviv7
Explorer
0 Likes
1,137

Hi All,

In the Data upload starter button we have option in edit scripts 

1. On before Execute   2. On After Execute 

We are trying to run one data action after the upload job ran. So we wrote script On After Execute  and it's working perfectly. Now the issue is once you click the Upload starter button and click on cancel instead of Run (As shown in screenshot), still the Data action is executing.  Anybody faced this issue and Is there any way to stop the Data action running If we cancel the upload job.

raviv7_0-1749622072070.png

raviv7_1-1749622207586.png

@William_Yu1  @N1kh1l  Could you assist here ?

Thanks,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

William_Yu1
Product and Topic Expert
Product and Topic Expert
Probably you should try to check the status of this event, there is cancel status, check the help document. https://help.sap.com/doc/1639cb9ccaa54b2592224df577abe822/release/en-US/index.html#DataUploadExecuti...

Answers (1)

Answers (1)

N1kh1l
Active Contributor

@raviv7 

Within the On After Execute  event you should wrap your DA execution code within a IF block based on DataUploadExecutionResponseStatus = success. This way it will execute only when DA upload had a success message.

 

Hope this helps !!

Nikhil