Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 214 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
BI Pub Bursting (for no result key need to send a custom message)

Summary
BI Pub Bursting (for no result key need to send a custom message)
Content
Hi,
I am using a bursting job using a bursting delivery table and bursting definition sql. It is working fantastic with Keys those have data it is creating an excel and sending it out as expected via email. If a key is null it doesn't produce the file which is normal. However, now I am posed with a challenge where the key is null for the day and no files generated, for those I need to send the delivery without the file attached but add a customized message in the email body. How would i tackle that?
My email body message is also stored in the bursting delivery table.
Thanks in advance!!
Bursting sql:
Select
t.employee_id as Key,
t.template as Template,
'en-US' as Locale,
t.output_format as Output_format,
'true' as SAVE_OUTPUT,
'EMAIL' as DEL_CHANNEL,
t.employee_id||'-'|| to_char (Current_Date, 'ddMONyyyy') as OUTPUT_NAME,
t.email as Parameter1,
t.cc as Parameter2,
t.reply_to as Parameter3,
to_char (Current_Date, 'ddMONyyyy') as Parameter4,
t.message_body as Parameter5,
'true' as Parameter6,
t.reply_to as Parameter7,
NULL as Parameter8
From
t_burst_delivery t
Where
t.active = 'Y'
and t.REPORT_NAME = 'burst_cmpl'
Answers
-
In your RTF template , you can put in a condition like
IF ROWCOUNT > 0
CURRENT TABLE
ELSE
MESSAGE
END IF
Samples for COUNT https://blogs.oracle.com/xmlpublisher/counting-distinctly
0