REP-52251:
Windows XP
Oracle 9.2.0.1.0 Database
Oracle Developer Suite 10.1.0.4.0
I am calling Report from Form
using this code in when button press
Declare
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
RO_Report_ID := FIND_REPORT_OBJECT('SCH_A');
ADD_PARAMETER(pl_id,'DD1', text_parameter,:button.dd1);
ADD_PARAMETER(pl_id,'Bankcode', text_parameter,:Button.bankcode);
ADD_PARAMETER(pl_id,'Bankname', text_parameter,:Button.bankname);
ADD_PARAMETER(pl_id,'Balance', text_parameter,:Button.balance);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'F:\Reports');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
-- SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'html');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'my_server');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('my_server') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=my_server';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END;When report run and open report windows shows this error
REP-52251: Cannot get output of job ID 9 you requested on Sat Sep 17 09:58:14 GMT 2011.<P>REP-51026: No output for job 9how can I resolve this
regards
Hello,
"Execute" the URL : http://server:port/reports/rwservlet?server=<Reports Server Name>
Check if you can see the job number returned by RUN_REPORT_OBJECT
Refresh the page several times and check if the output is always the same.
(There is a known issue with the In-process Reports Servers and multicast)
Regards
Similar Messages
-
REP-52251: Cannot get output of job ID
Hi,
I am trying to call a report from oracle form and i am getting this error
REP-52251: Cannot get output of job ID 220 you requested on Mon Oct 16 11:19:12 EDT 2006.
REP-56033: Job 220 does not exist
please help, any Ideas.
Best regards,Have you tried to create an URL with all the parameters you're trying to run your report with?
Try to run the report that way first - just to make sure your report can actually be run with the parameters you're using.
If that works then try to use WEB.show_document from your form, passing the same URL you just built, if that works then you are only having problems with your RUN_REPORT_OBJECT (I am not sure if you're using rp2rro library for running your reports).
Try that -- another thing that might be happening is that your output is being generated but due to the parameters (I think there is some form of timeout in the reports server, when the files in your cache are deleted, not sure if this is the problem).
Try the run the report with an URL first - that should shed some light.
If you're still having problems, post it here, so we can review it. -
REP-52251: Cannot get output of job ID 69 you requested ....
OS: Oracle As 10.1.2.0.2 (rel 2 for Linux 86)
I have moved my forms and reports from windows XP (DS 9.04) to the Linux box.
I have compiled and run FORMS and most of the REPORTS succesfully.
I have compiled one report succesufully.
But when I run this report from the FORM, I got message as below:
Error
REP-52251: Cannot get output of job ID 69 you requested on Thu Sep 29 15:37:03 PDT 2005.<P>REP-56093: Cached output for job 69 is no longer valid
I have checked
http://abc:7778/reports/rwservlet/showjobs?
Status is as follows:
Error
Finished successfully but output is voided
Regards,
DNJust in case someone else too finds this thread with google. We had too REP-56093: Cached output for job 5429 is no longer valid. After checking reports cache dir we did see that the problematic reports have cache key with (broken)umlauds. So we disabled :DESNAME parameter and that got rid the umlauds in file names and that resolved the cache error. So if you get this error, you might check the cache directory if the problematic reports have some weird cache files/filenames.
-
Dear All,
I have calling report in oralce developer forms 10g using run report object. I have also call report server now there are problem that are coming for this regard is : -
*REP-52251: Cannot get output of job ID 31 you requested on Mon Oct 06 09:46:12 GMT+05:00 2008.
REP-51026: No output for job 31
Kindly any suggestion or help about this error.
Thanks and Best Regards,can you provide the url you called the report with?
-
Dear All,
I have calling report in oralce developer forms 10g using run report object. I have also call report server now there are problem that are coming for this regard is : -
*REP-52251: Cannot get output of job ID 31 you requested on Mon Oct 06 09:46:12 GMT+05:00 2008.
REP-51026: No output for job 31
Kindly any suggestion or help about this error.
Thanks and Best Regards,this is a good question for the Reports-Forum : Reports
-
Hi All,
I’ve made a detailed investigation, but haven’t fund solution, that works for me:
The goal is to show on the web html, and pdf reports.
My code is:
repid report_object;
v_rep varchar2(100);
rep_status varchar2(20);
pl_id paramlist;
BEGIN
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'HEADER_ID', TEXT_PARAMETER, :OFFER_HEADER_VIEW_MAIN.ID);
repid := find_report_object('RPT_OFFER');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_b-n1y9l73b6rmd4');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF'); -- for the pdf / ‘HTML’ for the html
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
WEB.SHOW_DOCUMENT('http://127.0.0.1:8889/reports/rwservlet/getjobid' || substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_b-n1y9l73b6rmd4','_blank');
I'va also updated uifont.ali:
[ PDF:Subset ]
Arial..Italic.Bold.. = "arialbi.ttf"
Arial...Bold.. = "arialbd.ttf"
Arial..Italic... = "ariali.ttf"
Arial..... = "arial.ttf"
1. Staring OC4J
2. I press button to show HTML – I get error message REP-52251
3. I press the button again – it works fine
1. Starting OC4J
2. I press button to show PDF – I get error message REP-52251
3. I press the button again – I get error message frm-41214
I’ll appreciate any kind of help.
Best Regards,
Bartek
Edited by: hrabiabw on 2009-03-16 04:23Hello,
In fact it is not as simple as I said in my previous update.
You have to start a "batch job" before calling the executable java
On Windows, you can use the command start .
The goal is to start a BAT file that will wait for a while (you can the utility sleep.exe ) and then , call the URL using curl.exe or wget
ex:
start startinprocess.bat
c:\DevSuiteHome_1\jdk\bin\java -Doracle.security.jazn.config=c:\DevSuiteHome_1\j2ee\DevSuite\config\jazn.xml -Doracle.home=c:\DevSuiteHome_1 -DORACLE_HOME=c:\DevSuiteHome_1 -jar c:\DevSuiteHome_1\j2ee\home\oc4j.jar -userThreads -config c:\DevSuiteHome_1\j2ee\DevSuite\config\server.xml
in startinprocess.bat :
sleep 15
curl.exe "http://127.0.0.1:8889/reports/rwservlet/getserverinfo" -o curl.out
Regards -
REP-52251 Cannot get output of job ID -2
When Trying to Run a Report Getting This Error and only one person is getting this error as there are around 1000 + customers for whom the application is
working fine and can generate the Report.
REP-52251: Cannot get output of job ID -2 you requested on Wed Nov 29 11:49:41 EST 2006.<P>REP-56033: Job -2 does not exist
Does somebody ever faced this kind of problem. if so pls share the idea of how to deal with this issue.
Thanks
Anil.Hi,
I am not sure about the error message!!. The possible case is the user might have change his oracle password... like with spaces or %20 (eg. emq K96 is kind of password In web automatically this will be turned into emq%k96,
. As per the report server the password is wrong while the user submit the job.This error won't occur while user connecting to the Oracle forms. But in the report server thru URL user trying to submitting the details.!!!).
One of my user have this kind problem!!!>
He is able to connect the forms but while he submit the job either he got the page cannot found error/ Report submission error.
This case is applicable only if you are using Oracle web forms/ reports.
This may be helpfull to you!!!
Cheers,
Nats -
dear all,
i'm calling a report from a form it first displays a message says: unable to run report:41214 then in the browser it says:
REP-52251 cannot get output of job id 0 ... <REP-56033>job does not exists..
any help will be appreciated cuz all the reports have same problem1) Are you able to run reports from servlet ?
http://host:port/reports/rwservlet?report=test.rdf .....server=server_name
(This is to take forms out of the picture)
2) Post the forms code which you are using to run report here. Let us see if there is anything wrong
3) What is the reports version you are using
6i, 9i, 10g ?
4) Ensure that the server is up
5) Refer the
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
There is a troubleshooting section here. Also check whether you are following all steps
[ All Docs for all versions ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
--------------------------------------------------------------------------------- -
REP-56093: Cached output for job 1058 is no longer valid.
When i run report, this error message showed up.
REP-52251: The output of job ID 1058 requested on Wed May 18 11:18:54 KST 2011 cannot be retrieved.
REP-56093: Cached output for job 1058 is no longer valid.
I tested like below.
When add rownum < 100 condition, the reports run well.
When no rownum condition, the reports failed to run.
Are there anyone to tell me the key point to solve this problem ???
I use weblogic and fussion middleware.
Edited by: backsulee on 2011. 5. 17 오후 7:31metalink note " REP-56093: Cached Output For Job <###> Is No Longer Valid Running Large Report [ID 305398.1]" maybe does give the answer for you
-
When i run a preview of a Rep Agent setting, I can see header info. When i go back and try to modify the header, by double clicking on the header page under Print Layout Tab, I dont see anything. What is going on??? I see this problem in every setting that i'm trying to modify.
Thanks
FranMoazam,
>
whenever im printing its giving downloading dialog box for that report job Id what should i do which i didnt get that download dialog box.
>
What is the report output format? Typically, if the format type has an associated application it should open automatically in the associated program (eg; pdf = Acrobat Reader, html = default browser). You might also have your browser configured to always download rather than open files. I don't recall the exact setting and it is different between browsers, but I know IE has a setting for this. You might want to check your browser settings...
and how can i get rid of the REP-52251 error prolbem always i have to restart my report service.As this issue is not completely related to your original post, it would be best to start a new thread. Can you please post the full error message as there are numerous possible causes of this error code. It could be Single Sign On (SSO); could be you have a Reports Server Cluster and you need to reference the specific server name in the cluster; just to name a few.
worked for me.
If someone's response is helpful or correct, please mark it accordingly.
Announcement: Forums Etiquette / Reward Points
Craig... -
Problem with displaying a report in browser
I have used this code to generate report but when the browser opens its gives me the message
REP-52251: Cannot get output of job ID 4260 you requested on Sat Mar 26 11:03:16 PKT 2005.<P>REP-56033: Job 4260 does not exist
here is the code that used
PROCEDURE RUN_REPORT_OBJECT_PROC (vc_reportoj Varchar2, vc_reportserver
varchar2, vc_runformat varchar2) IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
vjob_id VARCHAR2(100);
BEGIN
v_report_id:= FIND_REPORT_OBJECT(vc_reportoj);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,vc_runformat);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,vc_reportserver);
vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id);
vjob_id :=substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid4'|| vjob_id||'?server=' || vc_reportserver,'_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
END;
its the same as used in the doc at otn.
I have included the report in forms developer and passed its id to the function with the reports server name (in my case its 'rep')
Can any body help me?Hammad,
your code does hardcode a "4" as the first digut of all jobids. This seems to be a relict of a harcoded testing
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid4'|| vjob_id||'?server=' || vc_reportserver,'_blank');
Remove it and all should be fine.
Frank -
Need help to fix the Procedure
I found a procedure in the forum. I think Vikash posted this. I update and it is working for comma delimiter records but I want to work it for TAB delimiter. I edited many ways but no luck. If any body fix it, please help so.
Thanks,
Lubna
create or replace PACKAGE htmldb_tools
AS
PROCEDURE parse_textarea (
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
PROCEDURE parse_file(
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
create or replace PACKAGE BODY htmldb_tools
AS
TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
PROCEDURE delete_collection (
p_collection_name IN VARCHAR2
IS
BEGIN
IF (htmldb_collection.collection_exists(p_collection_name))
THEN
htmldb_collection.delete_collection(p_collection_name);
END IF;
END delete_collection;
PROCEDURE csv_to_array (
p_csv_string IN VARCHAR2,
p_array OUT wwv_flow_global.vc_arr2,
p_separator IN VARCHAR2 := 'chr(09)'
IS
l_start_separator PLS_INTEGER := 0;
l_stop_separator PLS_INTEGER := 0;
l_length PLS_INTEGER := 0;
l_idx BINARY_INTEGER := 0;
l_quote_enclosed BOOLEAN := FALSE;
l_offset PLS_INTEGER := 1;
BEGIN
l_length := NVL(LENGTH(p_csv_string),0);
IF (l_length <= 0)
THEN
RETURN;
END IF;
LOOP
l_idx := l_idx + 1;
l_quote_enclosed := FALSE;
IF SUBSTR(p_csv_string, l_start_separator + 1, 1) = '"'
THEN
l_quote_enclosed := TRUE;
l_offset := 2;
l_stop_separator := INSTR(p_csv_string, '"', l_start_separator + l_offset, 1);
ELSE
l_offset := 1;
l_stop_separator := INSTR(p_csv_string, p_separator, l_start_separator + l_offset, 1);
END IF;
IF l_stop_separator = 0
THEN
l_stop_separator := l_length + 1;
END IF;
p_array(l_idx) := (SUBSTR(p_csv_string, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
EXIT WHEN l_stop_separator >= l_length;
IF l_quote_enclosed
THEN
l_stop_separator := l_stop_separator + 1;
END IF;
l_start_separator := l_stop_separator;
END LOOP;
END csv_to_array; --}}}
PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
IS
l_record_separator VARCHAR2(2) := chr(13)||chr(10);
l_last INTEGER;
l_current INTEGER;
BEGIN
IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
THEN
l_record_separator := chr(10);
END IF;
l_last := 1;
LOOP
l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
EXIT WHEN (nvl(l_current,0) = 0);
p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
l_last := l_current+length(l_record_separator);
END LOOP;
END get_records;
PROCEDURE parse_textarea (
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
IS
l_index INTEGER;
l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(9)||chr(13)||chr(10)||' ,','@@@@');
l_element VARCHAR2(100);
BEGIN
l_string := l_string||'@';
htmldb_collection.create_or_truncate_collection(p_collection_name);
LOOP
l_index := instr(l_string,'@');
EXIT WHEN NVL(l_index,0)=0;
l_element := substr(l_string,1,l_index-1);
IF (trim(l_element) IS NOT NULL)
THEN
htmldb_collection.add_member(p_collection_name,l_element);
END IF;
l_string := substr(l_string,l_index+1);
END LOOP;
END parse_textarea;
PROCEDURE parse_file(
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
IS
l_blob blob;
l_records varchar2_t;
l_record wwv_flow_global.vc_arr2;
l_datatypes wwv_flow_global.vc_arr2;
l_headings VARCHAR2(4000);
l_columns VARCHAR2(4000);
l_seq_id NUMBER;
l_num_columns INTEGER;
l_ddl VARCHAR2(4000);
BEGIN
IF (p_table_name is not null)
THEN
l_ddl := 'insert into '||p_table_name||' '||
'select '||v(p_columns_item)||' '||
'from htmldb_collections '||
'where seq_id > 0 and collection_name='''||p_collection_name||'''';
htmldb_util.set_session_state('P149_DEBUG',v('P149_DEBUG')||'/'||l_ddl);
execute immediate l_ddl;
RETURN;
END IF;
BEGIN
select blob_content into l_blob from wwv_flow_files
where name=p_file_name;
EXCEPTION
WHEN NO_DATA_FOUND THEN
raise_application_error(-20000,'File not found, id='||p_file_name);
END;
get_records(l_blob,l_records);
IF (l_records.count < 2)
THEN
raise_application_error(-20000,'File must have at least 3 ROWS, id='||p_file_name);
END IF;
htmldb_collection.create_or_truncate_collection(p_collection_name);
csv_to_array(l_records(1),l_record);
l_num_columns := l_record.count;
if (l_num_columns > 900000) then
raise_application_error(-900000,'Max. of 9,000,00 columns allowed, id='||p_file_name);
end if;
FOR i IN 1..l_record.count
LOOP
l_headings := l_headings||':'||l_record(i);
l_columns := l_columns||',c'||lpad(i,3,'0');
END LOOP;
l_headings := ltrim(l_headings,':');
l_columns := ltrim(l_columns,',');
htmldb_util.set_session_state(p_headings_item,l_headings);
htmldb_util.set_session_state(p_columns_item,l_columns);
FOR i IN 2..l_records.count
LOOP
csv_to_array(l_records(i),l_record);
l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
FOR i IN 1..l_record.count
LOOP
htmldb_collection.update_member_attribute(
p_collection_name=> p_collection_name,
p_seq => l_seq_id,
p_attr_number => i,
p_attr_value => l_record(i)
END LOOP;
END LOOP;
DELETE FROM wwv_flow_files WHERE name=p_file_name;
END;
BEGIN
NULL;
END;sir manu,
i started the oracleAS report Server with the following command in command prompt : rwserver server=rep_myserver
and it successfully started.
i insert this code on my button :
DECLARE
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
PAUSE;
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
--RO_Report_ID := FIND_REPORT_OBJECT('REPORT_OBJ');
RO_Report_ID := FIND_REPORT_OBJECT('REPORT1');
ADD_PARAMETER(PL_ID, 's_sin_no', TEXT_PARAMETER,:scrap_delivery_request.sin_no);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'C:\New Forms\REF_SF_510.ref');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, cache);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_myserver');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_myserver') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=' || 'rep_myserver';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END;
after pressing the button this error come up in browser :
REP-52251: Cannot get output of job ID 3 you requested on SAt. jul 04 11:44...... <P> REP-51026 :No output for job b -
How to print report From Oracle form directly on printer
Hi,
I am running report from form and output should be directly printed on printer.
Database: 11g Release2
Forms version : 11.1.2
Report version : 11.1.2
OS: windows 7 professional 32 Bit
Written following code:
declare
pl_id ParamList;
varno number;
x VARCHAR2(150);
y NUMBER;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
repid := FIND_REPORT_OBJECT('SALEBILLNEW'); -- report object name
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'copies',TEXT_PARAMETER,'1');
Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'Character');
Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'YES');
Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.coname);
Add_Parameter(pl_id,'VCOde',TEXT_PARAMETER,:block50.code);
Add_Parameter(pl_id,'VOURBILLNO',TEXT_PARAMETER,:BLOCK50.FROMBILL);
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'PRINTER') ;
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'OKI MICROLINE 391 TURBO (COPY1) on NILESH-PC') ; --default printer name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_inorasrv-pc_asinst_3');
y := LENGTH ('rep_adminserver_inorasrv-pc_asinst_3') + 2;
x := RUN_REPORT_OBJECT (repid, pl_id);
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/rwservlet/getjobid'||SUBSTR(x,y)||'?server=rep_adminserver_inorasrv-pc_asinst_3&userid=scott/tiger@winorasr');
Destroy_parameter_list('tmpdata');
end;
Above code giving following error:
REP-52251: The output of job ID 111 requested on Thu Oct 18 18:37:20 IST 2012 cannot be retrieved.<P>REP-51026: No output is generated for job 111.
Need help..
Thanks in advance.Hi,
I have change the printer name to OKI
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, '\\Nilesh-pc\OKI') ;
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'dflt.prt');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\Nilesh-pc\OKI');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
code which i have posted above unable to reach at default printer and gives following error
The report generated successfully but distribution to destinations failed.
Modified above code to take default printer from registry.
Added below code
rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'rtn_defaultPrinter') ;
It is giving error
CLIENT_WIN_API_ENVIRONMENT.Read_Registry must be declare.
Edited by: parapr on Oct 20, 2012 10:47 PM -
Error in job execution in oracle reports
Hi,
The end user is getting the following error when executing a job in Oracle reports.
" RWCGI GET JOB OUTPUT
Cannot get output of Job ID 4 you requested on December ,08 2008 , 11:35:18
Job is not done yet .Try again later"
Can you please help .PLEASE !!!Hi
Metalink is reporting some similar errors, please see that:
Cause
SSO turned on for one component only, either Forms or Reports.
This problem has been reported and is documented in an unpublished bug.
Solution
To take advantage of SSO, out-of-the-box, the SINGLESIGNON parameter in the
rwservlet configuration file (rwservlet.properties) is set to YES to indicate
that you will use single sign-on to authenticate users. You may change this to
NO if you choose to not use single sign-on. If you choose NO, the Reports
Server will use its own authentication mechanism to authenticate users (i.e.,
the mechanism used in Reports6i). The rwservlet configuration file is usually
found in the ORACLE_HOME\reports\conf directory. This value is usually
commented out after installation however the default value is YES.
This is the expected behavior. For the Forms/Reports integration, Forms will send
to Reports thecurrent SSO user. However, with this particular configuration, you
still log into SSO to run Reports. Thus, nexttime you run the form, you are logged
into SSO and thus things work because Forms passes thatSSO user info to Reports.
The way to not have the report run the 2nd time would be to log off of SSO when the first
form was exited, but that defeats the purpose of SSO in the first place!
So enable for Forms and Reports SSO or disable SSO for both.
Read more on Doc ID: Note:289666.1
Subject: REP-52251: Cannot Get Output Of Job Id
Doc ID: Note:289666.1
Subject: Understanding Reports Execution from Forms Under High Availability
and
Note 367887.1 - Rep-52251: Cannot Get Output Of Job Id You Requested, When Calling Reports From Forms -
URGENT - Oracle Reports errors
Hi All,
I have two serious problems which are giving me a massive headache. We have a forms 10g application which calls Reports 10.1.2.0.2 reports in a pdf format.
1) When reports are called by say User A, the reports generated in the browser are for say User B who is in another location entirely. User A has to log out and retry several times before he gets the correct report generated for him/her.
2) The report Job IDs returned on some occasions are higher than the highest Job ID shown/displayed in the Reports Job Queue when viewed via Enterprise Manager. As a result the user gets an error REP-52251 followed by a REP-56033. This is so rampant and the intriguing thing about it all is that it is sporadic. One moment all seems fine and then all hell breaks loose. I have tried just about everything. I am at a loss as to how the Job ID retrieval call in the calling Oracle form will return a JOB ID which is HIGHER than the last JOB ID in the Reports Server Queue.
Any help will be much appreciated.
ThanksHello,
There is a know problem in this configuration (2 in-process reports server are started)
The easiest solution is to "convert" the in-process reports server into a standalone reports server .
Step 1 : Use addNewServerTarget.sh (UNIX) or addNewServerTarget.bat (Windows) to add a Reports Server target to targets.xml and opmn.xml.
(use the same name than the "in-process reports server")
Step 2 : edit the file rwservlet.properties and modify the line :
SERVER_IN_PROCESS=YES
into
SERVER_IN_PROCESS=NO
Step 3 : Then, restart OPMN for the change to take effect.
Regards
Maybe you are looking for
-
Need to Insert Records in target table.
Hi All, This is my first thread in this forum. My source table name is Emp and Target table name is Emp_Org. Given below is the structure of the source table Empno(p.key) deptno(p.key) empname currenttimestamp Target Table MetaData. Empno(p.key) coun
-
I just install a fresh Fedora 6. When I tried to install firefox 3.5.13, it crashed and automatically log out. Thanks
-
Hi, In one of the our production systems we are facing a problem with JMS Communication channels (both sender and receiver) for one of the synchronous interface. Though the messages are processing successfully we see the channel status in error(RED
-
How Could I Make Something Like This.
http://www.youtube.com/watch?v=vlRdjAwEzbU I Am Wondering How I could make something like this in AfterEffects CS4. Any Help Would Be Appreciated.
-
Open & attach word document on clients machine
I want to open & attach word document on client machine from Oracle Forms, all my trials failed. I am using Oracle 10G I want detailed steps to do so. Best Regards Message was edited by: user630033