Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 54 Oracle Analytics and AI Sharing Center
- 26 Oracle Analytics and AI Lounge
- 311 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.7K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 117 Oracle Analytics and AI Trainings
- 24 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
How to avoid 'NO_DATA_TO_PROCESS' errors in BI Bursting schedule
Answers
-
This is actually possible to do in the Data Model SQL code directly. You can write your base query and then use a UNION to select the same number of fields as the base query with NULL values similar to the below:
i.e.
UNIONSELECT NULL CHECK_DATE,
NULL PAYMENT_NUMBER, NULL CONTEXT_ID,
NULL TRANSACTION_ID
FROM DUALThis guarantees that the query will fetch at least 1 (NULL) row of data to avoid the 'NO_DATA_TO_PROCESS' error.
Then in our Bursting query I just have logic in the WHERE clause to specify the CHECK_DATE column is between a certain range. If there is no other data to process from your main query then the NULL record from the UNION will be excluded here and no bursting output will occur.
Let me know if you want to see an exact example of this. Hope this helps!
0 -
Just being "picky" on @KDR solution: use a
UNION ALLinstead ofUNION.UNION will enforce a distinct constraint on the overall result to remove any possible duplicate, which is maybe not what you want. And even if your records are already unique and nothing will be lost, it does take quite some time based on how heavy is your query and the size of the dataset returned.
0 -
@Anjum H M Did you find a solution?
0 -
Hi guys did you found the solution for this or trigger code ?
0 -
The bursting sql can be enclosed in a trigger in the data model and in the Report -> Schedule -> Use Trigger has to be checked. When the scheduled report runs, and only when the trigger returns value, the report is run, otherwise it is 'Skipped', rather than 'Failed' which happens without using a trigger.
1 -
There is no specific code for a scheduled trigger. It will be similar to your main query but will return true/false to indicate if the data will be returned by main query or not.
Check below links for working examples:
Skip Schedule using Schedule Triggers in BI Publisher
Thanks.
0

