Problem : FRM-41211 Integration error

Problem : FRM-41211 Integration error

I got this error,

“Frm-41211 Integration error: SSL failure running another product.”,

when running reports from my form.

I’ve created the call procedure using PL/SQL library. Previously, when I need to run a set of reports, I programmed them individually in the library, each with a different procedure run_report_xxx01, run_report_xxx02…etc.. This run_report_xxx01 procedure will do all the get_parameter_list, destroy_parameter_list, create_parameter_list and add_parameter for the specific report.

After initiating all the parameters, in this procedure, it’ll call another procedure which will check for the print option. If the print option for the report is by ‘PDF’ (softcopy) & hardcopy, then it’ll call run_product two times, first time passing in parameter ‘destype’ as ‘PRINTER’, delete that parameter, pass in 2nd parameter as ‘FILE’.

This is not efficient as when I gradually add new reports, I need to add new procedures (eg: run_report_xxxnew) and recompile the library and also related forms which referenced to it. I decided to create 2 new tables, 1 storing the report name to be generated and another stores the parameters for the reports. I rearrange the codes so that I don’t need to create new procedure everytime but to loop the tables for the data.

After my changes, the codes which can be executed previously by separate procedure call for each report without any errors, now pop up a ‘FRM-41211’ error. The PDF Reports can be generated, but what’s the error all about and how to correct it?


Solution: FRM-41211 Integration error

I think you probably have hit a bug in reports.

Problem Explanation:
This bug does NOT affect all situations in which RUN_PRODUCT is used to call
Oracle Reports from Oracle Forms.  This bug occurs when you issue a second
ASYNCHRONOUS RUN_PRODUCT call to run a report, before the first report has
completed.

For example, if you want to get multiple reports based on the number
of check boxes checked in the form, you should execute RUN_PRODUCT in
SYNCHRONOUS mode.  This specifies that control returns to Oracle Forms only
after Oracle Reports has finished executing for the report specified.  If
ASYNCHRONOUS mode is used, control returns to Forms even though Reports has
not finished and then the FRM-41211 error occurs.

WOrkAround:
Use SYSNCHRONOUS CALL or make sure that your run_product does not get called before the first call finishes.