I have a Webi report (XI 3.1)to be scheduled, based on the presence of latest data in a table in the database.
In short, if count(*)>0 then report has to be scheduled. please let me know how to achieve this.
There was a topic about this a while back but I wasn’t able to find it.
Create two reports – report #1 will trigger #2, so #2 will be the “real” report that you want to see when there is data
Set up Report #1 so that it generates a x/0 error when there is no data (essentailly, “select count(*)/0 from mytable”)
Create a Schedule Event; this will fire when report #1 finishes successfully.
Schedule #1 for whatever interval you want, and have it fire the Schedule Event when complete.
Schedule #2 to run when the Schedule Event fires.
Once this is done, Report #2 will only run when Report #1 has completed successfully. If there is no data, #1 will fail and not fire the Schedule Event.