How To Modify The End Of Batch Notification Report So Zero Records Is Not An Error

  Print

Question:

With the 'End Of Batch Notification Report', is it possible to NOT report an error when the job is cancelled due to zero records? When 'Cancel Output If 0 Records' is selected...

Answer:

Edit the 'End of Batch Notification Report' in Crystal Reports, and use this record selection:

(If {?ReportType} = "All" Then

{rptbatch_ttx.LastRunMsg} <> ""

Else

{rptbatch_ttx.LastRunMsg} <> "Success" and {rptbatch_ttx.LastRunMsg} <> "Off" and Left({rptbatch_ttx.LastRunMsg},25) <> "Job produced zero records")

and

{rptbatch_ttx.Notification} = "0"

 



Related Articles

Login

 
Forgot password?
Register now

Language