Apps To Fusion

.......Our Journey from Apps To Fusion

 
  • Increase font size
  • Default font size
  • Decrease font size



XMLP Concurrent Program- Revisited with Bursting

E-mail
User Rating: / 3
PoorBest 

 

Thanks to the wonderful XML Bursting article written by Prasad CP.
Following his explanations in this link, I have re-created the old tutorial for XML Publisher Concurrent Program that was written in Year 2006.
Old tutorial has now been further enhanced to burst the report output to each email address in the manager table.
This article simply shows the steps, however for detailed explanation of concepts bursting control file etc, please read Prasad CP's articles, where he has explained each node of the Bursting Control File.

You will also be able to download each of the component used in this demo.

 

Overview of steps in this article are

  1. Create table which will provide data for Bursting Report

  2. Create a report name XX_MANAGERS.rdf

  3. Run the report in preview mode in reports designer

  4. Add user parameters to this report and FTP to $AR_TOP/reports/US

  5. Register this report as concurrent program of type XML

  6. Add this report to Receivables group

  7. Run this report and save the xml file as xx_manager_output.xml

  8. Download & install XML Publisher desktop software latest version[as yet]

  9. Import xx_manager_output.xml in MS Word, and create default layout

  10. Save the default layout as rtf file MANAGER_XML_TEMPLATE.rtf

  11. Preview the report output within MS Word using XMLP Preview option

  12. Define data definition for the XMLP Report

  13. Prepare a simple bursting file, with help of XML xx_manager_output.xml

  14. Upload the bursting control file to data definition

  15. Create XMLP Template XX_MANAGERS, and upload MANAGER_XML_TEMPLATE.rtf to this template.

  16. Create pl/sql procedure xx_submit_bursting in apps schema, that submits fnd_request for XDOBURSTREP, with debug parameter= Y

  17. Call XDOBURSTREP from After report trigger, passing it current request_id

  18. Ensure that srw.user_exit('FND SRWINIT') has been called from before report trigger

  19. FTP the XX_MANAGERS.rdf againt to $AR_TOP/reports/US

  20. Run the report, and you will see the Bursted Output in mailbox.

Ensure that you have the desired patches, as per your EBS Level, as mentioned in Prasad's article.

select application_short_name, bug_number, to_char(creation_date,'DD-MON-YYYY HH24:MI:SS') dated
from apps.ad_bugs
where bug_number = '5968876';



Run the below in non-apps schema [but for demo I am using APPS]

--Create the tables as below
create table xx_managers ( manager_no integer, manager_name varchar2(200) ) ;
insert into xx_managers ( manager_no, manager_name ) values ( 1000, 'Anil Passi') ;
insert into xx_managers ( manager_no, manager_name ) values ( 1001, 'Martin') ;
commit;
--add email address column to the table

commit;
Note:- To each record in the table, we will Burst the output via Email.
Please note, the intention is just to show the steps, and not necessary the breakdown of data structure.

Hence only a simple single repeating frame based layout is being used.

In control file you need to specify the level at which data should be broken down while bursting.




Create a new report as shown below, and name it XX_MANAGERS


Add the user parameters[i.e. P_CONC_REQUEST_ID, P_RESPONSIBILITY_ID, P_USER_ID] as shown above.




Preview the report in reports builder itself, by running the same in Reports Builder





FTP XX_MANAGERS.rdf to $AR_TOP/reports/US
Silly it is, but for demo I will use standard Application [forgive me, but I am making it easier for you to run the source code].




Create Concurrent program executable for XMLP report, as if it is a normal report



Create a concurrent program for the executable. Note that I have kept the shortname and the program name both as XX_MANAGERS.
IMPORTANT:- Note that format is XML





Register this program with Receivables request group.
Now, make the report available to default request set of “Receivables Manager” responsibility.

DECLARE
BEGIN
fnd_program.add_to_group(program_short_name => 'XX_MANAGERS'
,program_application => 'AR'
,request_group => 'Receivables All'
,group_application => 'AR');
COMMIT;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Object already exists');
END;
/





Login to receivables Manager, and Run the report from Submit Request window, as a concurrent program submission.

Output will appear as shown below

IMPORTANT NOTE - Save the above XML outpur as xx_manager_output.xml on your PC.




Ensure that you have installed the latest version of XML Publisher desktop software

http://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=5887917


 

Open MS Word, you will see the menu’s as shown




Load the xml output of concurrent program into XMLP Desktop tool




Now, click on insert and click on Table/Form





Within Insert Table/Form, as shown below, drag the List G Manager No to Template section





The default Layout is created as below




You can preview the output as below from within MS Word, using XMLP Desktop Preview option





Preview is as shown below




Now, lets do the real bit in attaching the Concurrent Program definition to XML
Publisher
. Logon to responsibility “XML Publisher Administrator”.


Click on “Data Definition” menu as above…so that we can create the XMLs source data Definition. Effectively we are saying that output of the Concurrent program becomes the data definition for XMLP.



Lets create “Data Definition” with the values in below fields
Name : XX_MANAGERS
Application : Receivables
Code : XX_MANAGERS [Note: This is the short name of the Concurrent program]
Start Date : Leave it to default Sysdate
Click on “Apply”




As soon as you create a Data Definition, you will then be presented with Bursting Control File option as shown below.
Click on the button for uploading Bursting Control File




Ensure that a bursting file created as below has been uploaded

Sample definition of bursting control file is




Ensure that temp directory is set, for this, navigate to Administration in XML Publisher Administrator


In this case, I am setting the Temporary directory to /tmp




Ensure that the XML Template file is there on the server. It can be anywhere on server, we simply note down the path to use it in bursting control file.

In the above example, the RTF template file[MANAGER_XML_TEMPLATE.rtf] is in /tmp
Hence in bursting control file, we will mention the path /tmp/MANAGER_XML_TEMPLATE.rtf
VERY IMPORTANT NOTE- In real life, this rtf file will not be in /tmp directory
If your concurrent managers run on DB Tier itself, then ensure that rtf template file has been FTP’ed to /tmp on DB Tier.




Create template as below, by uploading the rtf file during template creation
Name : XX_MANAGERS [this is the name of the template]
Code : XX_MANAGERS [short name of conc program]
Application : Receivables
Data Definition : XX_MANAGERS [the one that we created in prior step 12]
Start Date : Leave this default.
Type : RTF
Click on browse and select the RTF file[MANAGER_XML_TEMPLATE.rtf] that you had saved using MS-Word/



Click on Apply, and you will get the below record.

Your template has now been created




Run the below procedure in APPS Schema

CREATE OR REPLACE PROCEDURE xx_submit_bursting(p_request_id IN INTEGER) AS
n_request_id NUMBER;
BEGIN
n_request_id := fnd_request.submit_request('XDO'
,'XDOBURSTREP'
,NULL
,NULL
,FALSE
,p_request_id
,'Y'
);
END xx_submit_bursting;
/


Ensure that the procedure has been created





Open report XX_MANAGERS in reports editor, and in the After Report Trigger & Before Report Triggers, write code below

FUNCTION afterreport RETURN BOOLEAN IS
BEGIN
xx_submit_bursting(:p_conc_request_id);
RETURN(TRUE);
END;


FUNCTION beforereport RETURN BOOLEAN IS
BEGIN
srw.user_exit('FND SRWINIT');
RETURN(TRUE);
END;


Next, ftp the file XX_MANAGERS.rdf again to the $AR_TOP/reports/US. This is so, because, now we are calling the bursting process from the After Report Trigger




Run the XX_MANAGERS as below, this will submit the Bursting process too.



I can now see the emails in my inbox, as below



First email is as shown below


Second email is as shown below



Downloads
The rdf file can be downloaded from here
Click here to download bursting control file in this example
Click here to download xml output of concurrent program
Click here to download rtf file used in this example
Comments (74)add
XMLP Concurrent Program- Revisited with Bursting
written by Srihari Balla , April 28, 2008
Anil,

Thanks for the wonderful article.

Sri
report abuse
vote down
vote up
Votes: +3
XML Publisher Report Bursting Program is erroring out
written by A. Swain , April 29, 2008
Hi Anil,

Thanks a lot for such beautiful article... smilies/smiley.gif
I am having some problem i.e. the standard 'XML Publisher Report Bursting Program' is erroring out . Can you please have a look at the bellow log message?

Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at oracle.apps.xdo.oa.cp.CPUtil.getSessionProperties(CPUtil.java:42)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:80)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine
Program exited with status 1

Regards,
Swain
report abuse
vote down
vote up
Votes: +1
...
written by Anil Passi , April 29, 2008
Hi Swan

This error might be related to your org_id not being set.
Are you on R12 using MOAC?
If so, raise SR with Oracle, this is a bug. They will give you a patch.

Thanks,
Anil Passi

report abuse
vote down
vote up
Votes: +0
...
written by A. Swain , April 29, 2008
Hi Anil,
Thanks you very much. yes I am in R12. Yes I will raise SR for it.

Regards,
Swain
report abuse
vote down
vote up
Votes: +0
...
written by TUAN , May 15, 2008
Hi Anil,
Our Check printing process is failing because of the character recognition test and its signal level as new regulation from the Bank industry for Canada
required a specific font and a higher level of iron in the toner. In order to meet this requirement, we need to send the check to our printer using RTF and NOT PDF so the printer can use its character set and increase the amount of iron on the check. (from the printer people). However, in 11i I do not know the style or type to set for the printer to print with RTF file. Our process is working fine when sending a PDF to the printer using PDF Publisher print type. CAn you give me some insight on format ( PDF, RTF...) as well as printer style and type.
report abuse
vote down
vote up
Votes: +0
...
written by TUAN , May 19, 2008
Anil,
any advise on this?
report abuse
vote down
vote up
Votes: +0
XML Publisher Report Bursting Program going into error...
written by Kamlesh , May 26, 2008
Hi ,
I follow the above mentioned procedure but the program going into error. Plz. help me.

error---
XML/BI Publisher Version : 5.6.3
--Exception
null
java.lang.NullPointerException
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.getSystemTempDirectory(JCP4XDOBurstingEngine.java:413)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:106)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)


Regards,
Kamlesh Nikhade

report abuse
vote down
vote up
Votes: +1
...
written by Anil Passi- , May 26, 2008
Hi Kamlesh

Ensure that temp directory is set, for this, navigate to Administration in XML Publisher Administrator and set this up.
Also, ensure that this directory has write permissions for concurrent managers.

Thanks,
Anil Passi
report abuse
vote down
vote up
Votes: +1
XML Publisher Report Bursting Output going into error
written by Kamlesh , May 27, 2008
Hi , Anil

Thanx..it is done.

Now the program running fine. But when I select the range of employees for my payslip report the bursted output should email to the respective employee but it is going to the last employee from the range.And the attachment contains all employees data.

I confused , where I mistook.

Plz. help as asap.

Regards,
KamleshN.
report abuse
vote down
vote up
Votes: +1
...
written by Prasad-CP , May 28, 2008
Kamlesh ,
Could you please copy paste section of your report xml file and the control file ?
"request select "tag defines the group at which your report data should break , please check if its set to the employee group name as in the report .
report abuse
vote down
vote up
Votes: +0
...
written by Ivan , June 16, 2008
Anil, we have set up bursting in a test environment. The email can be sent with attachment only when we hard code the "to" email add***s. If we enter to = "${EMAIL_ADd***s}" the bursting fails with a no data in required field error. Also, the email subject and body are not being populated properly with the data in the report. Can you tell me what we need to do? It seems that the bursting is not picking up the xml data correctly. Here is the bursting file.






${DESCRIPTION} is a hard worker









report abuse
vote down
vote up
Votes: +0
...
written by Ivan , June 17, 2008
Sorry, I should have stripped the first line out. Here it is again:





${DESCRIPTION} is a hard worker







report abuse
vote down
vote up
Votes: +0
...
written by Ivan , June 17, 2008
Forgive me, trying again. This time I'm adding "--" to each line.

--
--
--
--
--${DESCRIPTION} is a hard worker
--
--
--
--
--
--
--
report abuse
vote down
vote up
Votes: +0
...
written by Ivan , June 17, 2008
Trying again, doubling up on the tag markers. I'm obviously not a programmer. =)






${DESCRIPTION} is a hard worker









report abuse
vote down
vote up
Votes: +0
...
written by Ivan , June 17, 2008
Enclosing in quotes this time. At least I'm adding to the comment count.
"





${DESCRIPTION} is a hard worker









"
report abuse
vote down
vote up
Votes: +0
...
written by Ivan , June 17, 2008
Okay. This should work. Terribly sorry for all the comments.

(?xml version="1.0" encoding="UTF-8" ?)
(xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting")
(xapi:request select="/MODULE1/LIST_G_USER_NAME/G_USER_NAME")
(xapi:delivery)
(xapi:email id="email" server="[servername]" from=" This e-mail address is being protected from spambots. You need JavaScript enabled to view it " reply-to =" This e-mail address is being protected from spambots. You need JavaScript enabled to view it ")
(xapi:message id="email" to="${EMAIL_ADd***s}" content-type="text/html" attachment="true" subject="Things about ${USER_NAME}")${DESCRIPTION} is a hard worker
(/xapi:message)
(/xapi:email)
(/xapi:delivery)
(xapi:document output-type="pdf" delivery="email")
(xapi:template type="rtf" location="/usr/tmp/Test_Burst.rtf")
(/xapi:template)
(/xapi:document)
(/xapi:request)
(/xapi:requestset)
report abuse
vote down
vote up
Votes: +0
Software Engineer
written by Datta Padval , June 17, 2008
Hi Anil,
Thanks a ton for this awesome steps for bursting report.
Do we have to configure the mail server for bursting report?
Pls let me know if we can do the bursting without configuring mail server on apps server?
Thanks,
Datta
This e-mail address is being protected from spambots. You need JavaScript enabled to view it

report abuse
vote down
vote up
Votes: -1
...
written by Ivan , June 18, 2008
I figured out the problem. Something in Oracle, probably Reports 6i(?) is replacing the "MODULE1" in the XML data grouping ("/MODULE1/LIST_G_USER_NAME/G_USER_NAME") with a string of characters (like "T125930259").
report abuse
vote down
vote up
Votes: +0
...
written by Akash Jain , August 12, 2008
Hi Anil,
here you have referred of calling "After Report Trigger" for bursting to work
But in my case i am not generating XML with the help of RDF.Rather i am generating XML by usinf XMLGEN utility .
So how do i do the bursting?
Thanks,
Akash

report abuse
vote down
vote up
Votes: +0
...
written by Anil Passi , August 12, 2008
Hi Akash

at the end of that very pl/sql, i.e. after calling XMLGEN, you need to submit the Bursting concurrent request by passing the current concurrent request Id.

Hence you will
1. Define a PL/SQL or SQL Concurrent program that generates XML Output
2. Pass the request id of (1) to Bursting concurrent process.

Thanks,
Anil Passi
report abuse
vote down
vote up
Votes: +0
...
written by Akash Jain , August 14, 2008
Thats gr8 information.I will try it at my end.

Thanks again!!!
report abuse
vote down
vote up
Votes: +0
dev
written by Datta padval , September 02, 2008
Hi Anil - I am using R12, while running XML bursting report Pls suggest. I am getting the following error:


XML/BI Publisher Version : 5.6.3
--Exception
For input string: "Y"
java.lang.NumberFormatException: For input string: "Y"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4smilies/cool.gif
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:13smilies/cool.gif
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

report abuse
vote down
vote up
Votes: +2
Name for the Attachement
written by Raghavendra2587 , September 06, 2008
Hi Anil,

Thank you for Providing the Excellent article on Bursting.It helped me a lot in my Application's.

Can you please let me know how to change the name of the attachement.

When we are using the Bursting facility the mail attachement name will be like the rtf name.There is a facility for chenging the name of the attachement.Please let me know as soon as possible because we are sturk up at this stsage almost 2 week's


Thanks in Advance,
Raghav
report abuse
vote down
vote up
Votes: -1
Bursting attachment
written by Anil Passi- , September 06, 2008
Hi Raghvendra

First download and install Patch 5838650 if not already done so

You can define output attribute within Document Element in bursting control file
to override the auto generated file name.

replace * by < and > by #

*xapi:document output="${ENAME}" output-type="pdf" delivery="123"#
*xapi:template..../#
*/xapi:document#


*xapi:document output="${PO_NUMBER}" output-type="pdf" delivery="123"#
*xapi:template..../#
*/xapi:document#


*xapi:document output="${TRX_NUMBER}" output-type="pdf" delivery="123"#
*xapi:template type="rtf"
location="xdo://AR.RAXINV.${language}.${territory}/?getSource=true"/#
*/xapi:document#


or see image

Thanks
Anil passi

report abuse
vote down
vote up
Votes: +0
Name for attachement
written by Raghavendra2587 , September 06, 2008
Hi Anil,

Thank you for the Quick Responce.

Can you provide the sample control file for changing the name of the attachement.

Thanks in advcance,
Raghavendra.B
report abuse
vote down
vote up
Votes: +0
Adding multiple attachment whilw sending the mail
written by gsk_mysore , September 08, 2008
Hi Anil,

I am sending the PDF generated to a particular mail recipient using the bursting options.
There is requirement in which I have to attach another PDF (which is a common PDF file kept in e.g.: /tmp directory) to the mail. These multiple attachments should go in a single mail. Please let me know how we can achieve this.

Thanks in Advance,
Shashi

report abuse
vote down
vote up
Votes: +1
Nice article..
written by Kamlesh , September 12, 2008
It is very helful article...& really nice.
Thanks to all .
I will really appreciate if anyone..give me the link for any new articles published regarding performance tunning,xml publisher,report developing tools.

regards,
Kamlesh Nikhade
report abuse
vote down
vote up
Votes: +0
...
written by jay1602 , October 16, 2008
Hi I tried the bursting logic as mentioned but unfortunately the reqeust is not getting submitted. Any suggestions or ideas??

Thanks in advance.
Jay
report abuse
vote down
vote up
Votes: +1
...
written by jay1602 , October 17, 2008
Hi



just wanted to know what should be put in the location section above?

I tried /usr/tmp/RTF name , my local directory , etc...but dint work...any permissions or any thing other than need to be set up? is there any relation between this location and location that is specified in adminstrator tab general option ...?

Thanks for your time
Jay
report abuse
vote down
vote up
Votes: +1
Adding multiple attachments while sending email
written by TRamarao , November 11, 2008
Hi Shashi
Is there any way to attach multiple attachments while sending email by using XML bursting? Could you please let me know ASAP?
Regards,
Ramarao.

report abuse
vote down
vote up
Votes: +1
Print examlple?
written by Sarah , November 20, 2008
All of the examples I am finding for bursting are for sending e-mail. I am trying to print. I believe that I have a good bursting control file for printing, but I cannot get the output to go to the printer. I am receiving the following error:

Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..

However, there aren't any details in the log file. I'm sure I am missing a printer set-up step, but I have been unable to locate any information on it.

Please advise.


report abuse
vote down
vote up
Votes: +0
IPP Setup
written by Anil Passi- , November 20, 2008
Are you printing to FND_PRINTERS? If so, that will not work.

You need to install CUPS Service and PDF-To-PostScript driver on a machine/server
Your printers to be used in bursting must be registered on that server.
For printing from BI Publiisher, IPP is the only way forward.

Thanks
Anil passi
report abuse
vote down
vote up
Votes: +0
Can Bursting be used for Faxing PO's?
written by Kris , December 03, 2008
Hello,
I appreciate the helpful information provided. Do you know if the Bursting process can be used to break up an output file so that multiple PO's can be faxed to multiple fax numbers? If so, can you provide a sample bursting file for this and any other direction?
Thanks in advance for your help!
Kris
report abuse
vote down
vote up
Votes: +0
...
written by Anil Passi , December 04, 2008
You do not need to break the XML file.
Using bursting control file, you can apply filter based on conditions.
Effectlively, for each condition you can either send fax or email or print.
Also , for each condition/filter you can specify a different fax server if need be

Thanks
Anil Passi
report abuse
vote down
vote up
Votes: +0
Bursting Program printing two copies
written by KRISHNA36 , December 09, 2008
Hi Anil

Here we have an Issue. We are calling the Burting Xml Program for AR CUSTOMER REPORT.In the Control file we mentioned based on Customer Number. Whenever we submit that concurrent program it is printing two copies for the same customer. we set the printer name and copies as 1 in the control file. What I observed is the name of the RTF that is defined in the template is different from the name of the rtf that is called in the control file. But both has same layout Does this has any effect ?

Thanks
Krishna
report abuse
vote down
vote up
Votes: +0
Bursting program works great. but I get two attachements one is report (as expected) and the other is body of the message, coming as notepad attachment.
written by shona , February 12, 2009
Any ideas?

Thanks.
report abuse
vote down
vote up
Votes: +0
FAX BURSTING IS NOT GETTING TO THE FAX SERVER
written by Rayxml , February 16, 2009
Hi Anil

Great Site.
I am currently working on Bursting concept in XML.
I have succesfully created the control file and got the email to work.
However I am not able to get Fax functionality to work at all.
My Unix guy has installed CUPS and he is able to fax from the cups server to the fax machine but when I submit the concurrent request nothing happens with the fax. There is no activity at all.
My fax section in the control file is as follows:

${FAX_NUMBER}

Is there anything more I have to do from control file, oracle rdf , Oracle apps point of view.
Any help you can provide will be really appreciated.

Regards
Ray

report abuse
vote down
vote up
Votes: +0
...
written by Rayxml , February 16, 2009
sorry , here is the fax section from control file without spaces:
< (space) xapi : fax server="http://cfdcups01:631/printers/efax" (space) >
< (space) xapi:number id="FAX1" (space) > ${FAX_NUMBER} < (space) /xapi:number (space) >
< (space) /xapi:fax (space) >

report abuse
vote down
vote up
Votes: +0
...
written by Anil Passi-- , February 16, 2009
It looks fine to me, is there a firewall issue
can u telnet to cups server from your tier where conc mgr is running?
report abuse
vote down
vote up
Votes: +0
FAX BURSTING IS NOT GETTING TO THE FAX SERVER
written by Rayxml , February 16, 2009
Hi Anil
How will I know if there is a firewall issue?
We were able to fax directly from the fax server to a fax machine.
We also installed the cupserver on the instance from which we run concurrent request and ran the lp print command and it faxes fine from that instance too.
But when I run the concurrent request, email is sent but there is no fax recieved on the fax machine.
As mentioned above I have shown the syntax I used for fax in the control file.
In the rdf , I have defined a user parameter , fax_number and use select :p_fax_number from dual
In the concurrent program define I have defined the parameter fax_number with token p_fax_number.
So control file , rdf and conc. prog parameters are taken care of. Is there anything I am missing.
Anil can you please throw some light on this issue.
Thanks in Advance.

Regards
Ray
report abuse
vote down
vote up
Votes: +0
...
written by Anil Passi-- , February 17, 2009
The only thing different with what you are doing is that port number and server name are in same string

given that cups is installed locally, you can use localhost

xapi:email id="123" server="localhost" port="631" from="AnyNumber"
report abuse
vote down
vote up
Votes: +0
FAX BURSTING IS NOT GETTING TO THE FAX SERVER
written by Rayxml , February 17, 2009
Hi Anil
Thanks for the input but could you please help me out in how will the syntax be in the control file for fax if given "localhost" and as per my above fax information.

Thanks
Ray
report abuse
vote down
vote up
Votes: +0
FAX BURSTING IS NOT GETTING TO THE FAX SERVER
written by Rayxml , February 17, 2009
The following is what I had used and no luck:
< (space) xapi : fax server="localhost:631/printers/efax" (space) >
< (space) xapi:number id="FAX1" (space) > ${FAX_NUMBER} < (space) /xapi:number (space) >
< (space) /xapi:fax (space) >

report abuse
vote down
vote up
Votes: +0
Message Body comes as an Attachment
written by Sujay , June 11, 2009
Hi Anil,

Thanks for this very useful article Anil.

I am getting two attachements one is report (as expected)
and the other is body of the message. Below is the Control File.







Hello ${FULL_NAME},
Please review the attached Payslip for this month.
Regards,
Payroll










For the Printer URL, Is it necessary to have the printer registered in Apps ?

Thanks,
Sujay
report abuse
vote down
vote up
Votes: +0
How to get message in the email body on different lines
written by RayXML , June 16, 2009
Hi Anil

How do you get the message on different line in the email BOdy.
Is there any provision for a new line etc in the bursting control file.

Eg: In the control file : after subject...I type:

Hello XYZ

How are you?

Thanks.

And in the email body I exactly want the same way...3 different lines but instead I get :

Hello XYZ How are you? Thanks.


Please Help
report abuse
vote down
vote up
Votes: -1
...
written by Anil Passi- , June 17, 2009
You can embed any valid HTML contents into the Email Body, and hence you can use br command of html for line breaks
report abuse
vote down
vote up
Votes: +0
Line breaks in Bursting control file
written by RayXML , June 17, 2009
Hi Anil
I tried using the , also but it didn't work.
Can you give an example of how to insert line breaks in the message for the email body in the bursting control file.
Thanks in Advance.

Ray
report abuse
vote down
vote up
Votes: +0
Line breaks in Bursting control file
written by RayXML , June 17, 2009
I meant I used the following

< br >< / br > (without spaces)

< br / > (without spaces)


and some other combns...but message in email body comes in one line.
report abuse
vote down
vote up
Votes: +0
Line breaks in Bursting control file
written by RayXML , June 17, 2009
Oh I finally got it.
You have to add the whole html page syntax to use < br / >

Again Anil Thanks a lot.
Great website which I always visit for reference.

Regards
Ray


report abuse
vote down
vote up
Votes: +0
What determines the name of the output file that gets created?
written by Srini Vasu , August 30, 2009
Hi Anil, thanks for the excellent work and this is a really wonderful article. May I please ask you what determines the name of the pdf file that gets created? Is there a way you can manipulate the name of the pdf file that gets generated, say for the above example, can we have the files created in the name of .pdf?

Thanks for your input.
report abuse
vote down
vote up
Votes: +0
XML bursting report..
written by Rupdipt , December 29, 2009
Hi Anil - While running XML bursting report I am getting the following error:


XML/BI Publisher Version : 5.6.3
--Exception
For input string: "Y"
java.lang.NumberFormatException: For input string: "Y"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:4smilies/cool.gif
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

Please suggest ??.
report abuse
vote down
vote up
Votes: +2
Good yaaar!
written by Sarfraz R Ramay , January 26, 2010
Excellent description and explanation......could not have a better exposition or illustration. I have a question though how do you create a burst control file from your .rtf or .rdf?? Thanks a lot.
report abuse
vote down
vote up
Votes: +1
Same problem as rupdipt and datta padval
written by Sarfraz R Ramay , January 26, 2010
I am also having this problem. I am also using R12. Can you please suggest a solution. This is the last step and i am stuck. Please reply as soon as possible. Thanks once again.
report abuse
vote down
vote up
Votes: +1
Email not going..
written by Ashutosh , March 16, 2010
Hi,

I am new to XML, i followed the above steps, there is no error coming but email is also not going. Can you please tell me if i need to enable any thing in application side.

Regards
Ashu
report abuse
vote down
vote up
Votes: +0
Is it possible to get the bursting done for output type to XLS?
written by Satyajitm , April 07, 2010
Hi Prasad.

Thanks for the sharing a very nice document on XML bursting concepts.
In my case I have done XML bursting with RTF template.

Is it possible to get the bursting done for output type to XLS and template type to XSL-XML?
I tired with the above example but it didnt worked.

Your help will be appreciated.

Thanks
Satya
report abuse
vote down
vote up
Votes: +0
...
written by Harishnunna , April 19, 2010
Hi Anil/ Prasad,
Thanks a lot for sharing your knowledge here...

While running XML bursting report I am getting the following error:

XML/BI Publisher Version : 5.6.3
--Exception
For input string: ""
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4smilies/cool.gif
at java.lang.Integer.parseInt(Integer.java:510)
at java.lang.Integer.parseInt(Integer.java:539)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:142)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

Please suggest further.

Harish.
report abuse
vote down
vote up
Votes: +1
Still getting all the message body as a continuous line
written by Kron , May 14, 2010
Hi,
I have followed all instructions here and still get the email body as one continuous line. XMLRay, when you say you have to include full html syntax, what exactly do you mean? I have tried all combinations of HTML XML but to no avail, including full html body and html syntax. Any help appreciated.
report abuse
vote down
vote up
Votes: +0
Hi All,

I have done everything according to the artile, bursting program completed successfully but i dint received any mail, did anyone faced this kind of problem, are there anything settings that need to be configured by DBA, pls suggest some solution.

Thanks
report abuse
vote down
vote up
Votes: +0
...
written by Theja , May 24, 2010
Please help me in fixing this solution
XML/BI Publisher Version : 5.6.3
--Exception
For input string: "Y"
java.lang.NumberFormatException: For input string: "Y"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4smilies/cool.gif
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:142)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

report abuse
vote down
vote up
Votes: +1
Hi am getting this error i followed all the same steps but am not getting this
written by Kiran Kumar Paspulate , July 20, 2010
XML/BI Publisher Version : 5.6.3
Request ID: 2950823
All Parameters: ReportRequestID=2950822smilies/cheesy.gifebugFlag=Y
Report Req ID: 2950822
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:OSLCOE04
Preparing parameters
null output =/u04/VISR11APP/visr11comn/admin/out/VISR11_oslcoe04/o2950823.out
inputfilename =/u04/VISR11APP/visr11comn/admin/out/VISR11_oslcoe04/o2950822.out
Data XML File:/u04/VISR11APP/visr11comn/admin/out/VISR11_oslcoe04/o2950822.out
Set Bursting parameters..
Temp. Directory:/tmp
[072010_050308153][][STATEMENT] Oracle XML Parser version ::: Oracle XDK Java 9.0.4.0.0 Production
Start bursting process..
[072010_050308160][][STATEMENT] /tmp
[072010_050308175][][STATEMENT] BurstingProcessor ::: Property Key ---> burstng-source
[072010_050308176][][STATEMENT] Inside burstingConfigParser
[072010_050308185][oracle.apps.xdo.batch.BurstingProcessorEngine][STATEMENT] ========================> startElement() ::: startDocument is entered startElement() ::: startDocument is entered
report abuse
vote down
vote up
Votes: +2
xml bursting email goes to the last data
written by balaorcl , July 22, 2010
Hi Anil,

I tried the example but the mail is delivered only the last manager no and also the complete list.
Please suggest.

Best Regards,
Bala
report abuse
vote down
vote up
Votes: +0
xml bursting email delivered to the last manger email id
written by balaorcl , July 22, 2010
Hi Anil,

I tried the example, but the email delivered only to the last manger email id with the complete list as the attachment.
Please suggest.

Thanks,
Bala
report abuse
vote down
vote up
Votes: +0
Problem in xml bursting
written by surya Ch , November 09, 2010
Hi,

I have developed this example in R12 instance.
The request has been completed with status = 'Error'.
But i could not find any reason in the log file.
Please suggest me....
The log file is as below


XML/BI Publisher Version : 5.6.3
Updating request description
Retrieving XML request information
Preparing parameters
Set Bursting parameters..
Bursting propertes.....
{user-variable:cp:territory=US, user-variable:cp:ReportRequestID=586681, user-variable:cp:language=en, user-variable:cp:responsibility=50539, user-variable.OA_MEDIA=http:....com:8018/OA_MEDIA, burstng-source=EBS, user-variable:cpsmilies/cheesy.gifebugFlag=N, user-variable:cp:parent_request_id=586681, user-variable:cp:locale=en-US, user-variable:cp:user=MOHAPR, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=586682, user-variable:cpsmilies/shocked.gifrg_id=101, user-variable:cp:reportdescription=Bursting Test Demo, user-variable:cpsmilies/cheesy.gifummy for Data Security=Y}
Start bursting process..
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+


+---------------------------------------------------------------------------+
Executing request completion options...


Finished executing request completion options.

+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 09-NOV-2010 12:51:15

+---------------------------------------------------------------------------+
report abuse
vote down
vote up
Votes: +0
developer
written by Dee181 , December 01, 2010
I am also receiving status error but my bursting file is generateing yours is not try modifying your bursting file to contain the following towards the bottom





PA.XXX_XXXPBSRA.en.US ==== hint: application.data definition short name.en.US

Now my error is that somehow the xml bursting file is appending the date and other info to the temporary directory path and causing my error, How do I get around this?
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
/u04/app/xxxdevl/admin/out/DEVL/120110_015558817/Remit_Advice_.pdf (No such file or directory)
java.io.FileNotFoundException: /u04/app/xxxdevl/admin/out/DEVL/120110_015558817/Remit_Advice_.pdf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:523)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
report abuse
vote down
vote up
Votes: +0
reply to Problem in xml bursting
written by Dee181 , December 01, 2010
Sorry change to this toward bottom of file





report abuse
vote down
vote up
Votes: +0
Bursting error
written by Jaig , January 28, 2011
I get an error sayin
"[012811_063157571][][EXCEPTION] java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at oracle.apps.xdo.oa.cp.CPUtil.setProperty(CPUtil.java:67)
at oracle.apps.xdo.oa.cp.CPUtil.getSessionProperties(CPUtil.java:45)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:84)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

"
Any help would be much appreciated.
report abuse
vote down
vote up
Votes: +0
PDF File Output
written by Nuwan , February 24, 2011
Hello -

Is it possible to rename the output file dynamically? I know by default it has the following format - {REPORTNAME}_{REQUEST_ID}_{COUNT}.PDF|RTF|EXCEL|HTML

Thanks!
report abuse
vote down
vote up
Votes: +1
temp file / template file
written by Phil Woods , April 06, 2011
Hi,
If the template file is in the system already (loaded into the Template page), why do we also have to have a copy in the file system in a temp folder.

Can we not reference the Template setup in the system?
Ta
Phil
PS: Getting into this big sytle and your entries are just about the only help i've found - thanks.
report abuse
vote down
vote up
Votes: +0
Bursting error
written by B , May 12, 2011
Hi Anil

I followed the above steps, i am getting the below error

Generating Bursting Status Report..
--Exception
/dbab3i/applmgr/common/temp/051211_124836457/Remit_Advice_123.pdf (No such file or directory)
java.io.FileNotFoundException: /dbab3i/applmgr/common/temp/051211_124836457/Remit_Advice_123.pdf (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:523)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)

java.util.logging.ErrorManager: 1:
oracle.core.ojdl.LoggingException: oracle.core.ojdl.LoggingException: Attempt to write to a closed LogWriter
at oracle.core.ojdl.ExceptionHandler.onException(Unknown Source)
at oracle.core.ojdl.BufferedLogWriter.handleException(Unknown Source)
at oracle.core.ojdl.BufferedLogWriter.write(Unknown Source)
at oracle.core.ojdl.logging.ODLHandler.publish(Unknown Source)
at java.util.logging.Logger.log(Logger.java:472)
at java.util.logging.Logger.doLog(Logger.java:494)
at java.util.logging.Logger.log(Logger.java:517)
at oracle.ias.cache.CacheInternal.logLifecycleEvent(Unknown Source)
at oracle.ias.cache.CacheInternal.close(Unknown Source)
at oracle.ias.cache.Cache.close(Unknown Source)
at oracle.apps.jtf.cache.IASCacheProvider$CacheStopperThread.run(IASCacheProvider.java:1480)
Caused by: oracle.core.ojdl.LoggingException: Attempt to write to a closed LogWriter

Pls advise
report abuse
vote down
vote up
Votes: +3
...
written by Ken Allen , July 06, 2011
Anil,

I wanted to offer another possible solution for the dreaded "Delivery channel:null" error that we were able to overcome. We are running in an Oracle On Demand environment that has strict security. We had existing code that sent emails using UTL_SMTP. Our incorrect assumption was that the email server used for UTL_SMTP was the email server to use for BI Publisher. Not so. Use the database server as the email server for pl/sql code executing utl_smtp commands. Use the apps server as the email server for BI Publisher Bursting.

Problem:
Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..

One solution in addition to checking port, to, etc parameters in the delivery tag:
Try using the apps server as the server attribute in the bursting control file for BI Publisher. Better still, use localhost.
eg. server="localhost" port="25"

Thanks,
Ken
report abuse
vote down
vote up
Votes: +0
Duplex printing
written by pavanchand , August 12, 2011
Hi Anil,

The problem is we are calling this terms and conditions into another template in that it was printing fine but that was printing on the last page.but our requirement is to print for every page.For me the if one invoice is for the four pages the requirement is if it was print then it has to print on each and every page and if it was sending through email then it has to printon the last page.Can u please help me out in this?
report abuse
vote down
vote up
Votes: +1
FTP Report Output using XML Bursting
written by Simran , January 15, 2012
Hi Anil,

We have a requirement to Email Report Output along with FTP to some Server.

So far i am able to achieve email feature using XML Bursting, Can you please provide details on How to FTP Report Output to some Server using xml bursting.

Also, i need to check if file is empty then do not FTP.

Thanks in Advance..
report abuse
vote down
vote up
Votes: +0
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security image
Write the displayed characters


busy
Last Updated ( Monday, 28 April 2008 11:33 )