Professional Documents
Culture Documents
XML Brusting
XML Brusting
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
12/4/13
</group>
18
19
20
</dataStructure>
</dataTemplate>
Concurrentprogram registration
2/14
12/4/13
Registerdata definition
Atach the concurrentprogram to the requestgroup and execute the program to generate the XML output.
Concurrentrequest
----
3/14
12/4/13
Reportlayouttemplate
----
4/14
12/4/13
Registerlayouttemplate
----
5/14
12/4/13
XML reportoutput
There are 4 records for4 em ployees in the report.W e are displaying 2 em ployees forease.
Create the bursting tem plate
The m ostim portantaspectofXML bursting is the bursting controlfile.This is a XML file which contains
specifictags forbursting the XML outputgenerated earlier.
1 xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi= "http://xmlns.oracle.com/oxp/xapi" type="bursting">
3
<xapi:globalData location="stream">
4 xapi:globalData >
5
<xapi:request select="/XXEMPDET/LIST_G_EMP/G_EMP">
<xapi:delivery>
9
10
11
12
Dear ${EMPLOYEE_NAME},
Please find your details attached.
Regards,HR team
13 xapi:message>
14
xapi:email>
15
xapi:delivery>
16
17
18
xapi:template>
19
xapi:document>
20 xapi:request>
21 xapi:requestset>
22
----
6/14
12/4/13
Explanation
xapi:requestselect=
This tag in the controlfile indicates from which tag/node in the concurrentprogram outputXML should
separated forbursting
xapi:delivery
xapi:em ail
xapi:m essage
This node contains the atachm entdocum entand XML tem plate related tags and atributesThe
atributes in this tag are related to the em ailatachm ent
xapi:docum ent
xapi:tem plate
Id atribute in xapi:emailtag
2.
3.
Attach the bursting file to the Data Definition ofthe XML PublisherReport
Responsibility:XML PublisherAdm inistrator
Navigation:Data Defintions
----
7/14
12/4/13
----
8/14
12/4/13
In Unix,/tm p directoryhas write perm issions foralusers.Enter/tm p directoryas the tem porarydirectory.
This directorycan be anydirectoryon which Oracle apps has write perm issions.
After the report is generated, execute the program nam ed, XML Publisher Report Bursting
Program .This program is responsible forbursting the XML with the help ofthe bursting controlfile
atached to the concurrentprogram whose outputwilbe burst.Ensure thatthisprogram isatached to
the requestgroup ofthisresponsibility.
----
9/14
12/4/13
Concurrentrequestselected
----
10/14
12/4/13
W hen the bursting program ends,the program nam e in the SRS form changes as shown below
----
11/14
12/4/13
Emailbody
The em ailbody,atachm entnam e and atachm entfile type m atch with the bursting controlfile above.The
atachm entwilcontain the data from the XX Em ployee detailreport,
Attachment
RETURN
BOOLEAN
3 IS
4
v_req_id
NUMBER;
5 BEGIN
6
v_req_id :=
10
description
=> '',
---12/14
12/4/13
11
start_time
12
sub_request
13
14
15
16
--CHR(0),
17
--''
18
);
19
THEN
21
22
END IF;
23
25
26
=> FALSE,
IF v_req_id = 0
20
24
=> '',
27
en
9 Territory:
US
10 Output type:
---13/14
RTF
12/4/13
11
12
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15
at java.lang.reflect.Method.invoke(Method.java:597)
16
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:566)
17
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:231)
18
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
19
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
20
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
21
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
22
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
23
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
24
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
25
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
26
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
27
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:290)
28
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
29
Caused by: org.xml.sax.SAXParseException: : XML-20108: (Fatal Error) Start of root element expected.
30
at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
31
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
32
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:343)
33
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
34
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
35
... 17 more
36
37
38
[3/22/12 2:33:10 PM] [320381:RT19011756] Completed post-processing actions for request 19011756.
This error relates to the template in the server. It means that XML processor is unable to find the
39
The location specified as the XML layouttem plate directoryshould be valid and alperm issions m ustbe
available on this file as welas the directory.
----
14/14