File Does Not Begin with '%Pdf-' when Producing Pdf with SRW Package
(Doc ID 312831.1)
Last updated on OCTOBER 03, 2023
Applies to:
Oracle Reports Developer - Version 12.2.1.4.0 and laterOracle Forms for OCI - Version 12.2.1.4.0 and later
Information in this document applies to any platform.
Symptoms
When running a report via Event-Driven Publishing using the SRW packages and attempting to send it to PDF output, the resulting output does not open or errors out when attempting to open it.
Example of problematic code submitted to the SRW package:
DECLARE
myPlist SRW_PARAMLIST;
myIdent SRW.Job_Ident;
myStatus SRW.Status_Record;
BEGIN
utl_http.set_transfer_timeout(3600);
myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
SRW.add_parameter(myPlist,'GATEWAY','http://<host>:<port>/reports/rwservlet');
SRW.add_parameter(myPlist,'SERVER','rep_server_name');
SRW.add_parameter(myPlist,'REPORT','/<directory_location>/RPSTST.rdf');
SRW.add_parameter(myPlist,'USERID',<user>/<password>@<database>');
SRW.add_parameter(myPlist,'destype','file');
SRW.add_parameter(myPlist,'desname','/<direction_location>/test08834054.pdf');
SRW.add_parameter(myPlist,'jobname','test######');
SRW.add_parameter(myPlist,'P_Report_Description','Test');
myIdent := srw.run_report(myPlist);
myStatus := srw.report_status(myIdent);
DBMS_OUTPUT.put_line (to_char(myIdent.JobID));
END;
Error:
---------
File does not begin with '%PDF-' when opening the file in Internet Explorer.
The file cannot be opened directly in Acrobat Reader either.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |