Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.9K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 533 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.5K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.2K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 402 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
ORA-31011: XML parsing failed-SRW
Dear Team,
I am using oracle 12c, and I have configured "SRW" package in oracle database 12c to generate "PDF/SPREADSHEET" of oracle reports 12c. But getting error. If i use the "DISTRIBUTE" parameter then process successfully execute but no "pdf" generate? Please guide, any other work around for 12c?
Below is my procedure and debugger code :
Code :
declare
myPlist SRW_PARAMLIST;
myIdent SRW.JOB_IDENT;
V_REP_URL_PATH VARCHAR2(1024) := 'http://128.1.102.15:9002/reports/rwservlet';
V_REP_OBJ_PATH VARCHAR2(1024) := 'C:\NOOR\REPORTS\'; --Path of oracle application server (report source)
V_REP_GEN_PATH VARCHAR2(1024) := 'C:\NOOR\ILAS_REPORT_TEST\'; --Path of oracle applications server (path where .pdf need to generate)
V_CONN VARCHAR2(100);
P_REP_NAME varchar2(200) := 'report_name';
begin
srw.start_debugging;
utl_http.set_transfer_timeout(2400);
myPlist := SRW_PARAMLIST(SRW_PARAMETER('', ''));
srw.add_parameter(myPlist, 'GATEWAY', V_REP_URL_PATH);
srw.add_parameter(myPlist, 'CMDKEY', V_CONN);
srw.add_parameter(myPlist,
'REPORT',
V_REP_OBJ_PATH || P_REP_NAME || '.rep');
srw.add_parameter(myPlist, 'DESTYPE', 'FILE');
srw.add_parameter(myPlist, 'DESFORMAT', 'PDF');
srw.add_parameter(myPlist,
'DESNAME',
V_REP_GEN_PATH || P_REP_NAME || '.pdf');
srw.add_parameter(myplist, 'DATE_V', TO_CHAR(P_DATE_EQL, 'DDMMYYYY'));
myIdent := srw.run_report(myPlist);
srw.stop_debugging;
end;
Debugger code (with error) :
****************************************
* WELCOME TO EVENT-BASED-REPORTING API *
* API-Version : 9i *
* (C) Oracle Corporation, 2000 - 2002 *
*
* Debugging turned ON **************************
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://128.1.102.15:9002/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : CMDKEY=RPTCONN1
*** Length of Paramlist : 3
OK : Parameter added : REPORT=C:\NOOR\REPORTS\demand_list.rep
*** Length of Paramlist : 4
OK : Parameter added : DESTYPE=FILE
*** Length of Paramlist : 5
OK : Parameter added : DESFORMAT=PDF
*** Length of Paramlist : 6
OK : Parameter added : DESNAME=EMAIL_REP\demand_list.pdf
*** Length of Paramlist : 7
OK : Parameter added : P_COMP=01
*** Length of Paramlist : 8
OK : Parameter added : DATE_V=01022019
Starting run_report: building url
*** Building URL (RUN_REPORT)
*** Submitting HTTP Request
OK : Request submitted - Return stream : <html>
<head>
<base href="http://128.1.102.15:9002/reports/rwservlet/getfile/HW-YX+JkC1PhFv9Uw6XDyWLoNhy2sLqlzRi77aMm/K6LLPNC3.htm">
</head></html>
<html>
<body bgcolor="#ffffff">
<form method=post action="
OK : Request submitted - Length of stream : 3537
ORA-31011: XML parsing failed---31011 ---->> Reports Error11
Message was edited by: Hatim Ali
Answers
-
*** Moderator Note: Question now move to the Reports space. The "Getting Started" space where you posted your question is a great place to introduce yourself and to learn about using the community; however it's not the place to ask product related questions. In future, please search the community (or use the burger menu) to locate the product space most closely related to your question. Thanks.
***
-
Thanks for acknowledge. This was my first post here.
-
Hi,
Please check SRW: XML processing LPX-00217: invalid character (Doc ID 1593868.1)
Regards,
Dan
-
Dear Dan,
I have search this error and google suggest me to change CHARACTERSET=AL32UTF8. The current CHARACTERSET after executing below query is :
select *
from nls_database_parameters
where parameter in
('NLS_CHARACTERSET','NLS_LANGUAGE','NLS_NCHAR_CHARACTERSET','NLS_TERRITORY')
order by parameter;
RESULT :
Can you please suggest should i change the "character-set" as it also asking me to restart database? What will be the after effect?
-
Hi,
That is a database question. I can say that it is a tedious process - Changing Or Choosing the Database Character Set ( NLS_CHARACTERSET ) (Doc ID 225912.1) - which might result in data corruption.
Regards,
Dan
-
Ok. Thanks.